Package org.lwjgl.vulkan
Class VkRectLayerKHR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkRectLayerKHR,VkRectLayerKHR.Buffer>
-
- org.lwjgl.vulkan.VkRectLayerKHR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkRectLayerKHR>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VkRectLayerKHR
public static class VkRectLayerKHR.Buffer extends org.lwjgl.system.StructBuffer<VkRectLayerKHR,VkRectLayerKHR.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkRectLayerKHRstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VkExtent2Dextent()Returns aVkExtent2Dview of theextentfield.VkRectLayerKHR.Bufferextent(java.util.function.Consumer<VkExtent2D> consumer)Passes theextentfield to the specifiedConsumer.VkRectLayerKHR.Bufferextent(VkExtent2D value)Copies the specifiedVkExtent2Dto theextentfield.intlayer()Returns the value of thelayerfield.VkRectLayerKHR.Bufferlayer(int value)Sets the specified value to thelayerfield.VkOffset2Doffset()Returns aVkOffset2Dview of theoffsetfield.VkRectLayerKHR.Bufferoffset(java.util.function.Consumer<VkOffset2D> consumer)Passes theoffsetfield to the specifiedConsumer.VkRectLayerKHR.Bufferoffset(VkOffset2D value)Copies the specifiedVkOffset2Dto theoffsetfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkRectLayerKHR.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byVkRectLayerKHR.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
offset
public VkOffset2D offset()
Returns aVkOffset2Dview of theoffsetfield.
-
extent
public VkExtent2D extent()
Returns aVkExtent2Dview of theextentfield.
-
layer
public int layer()
Returns the value of thelayerfield.
-
offset
public VkRectLayerKHR.Buffer offset(VkOffset2D value)
Copies the specifiedVkOffset2Dto theoffsetfield.
-
offset
public VkRectLayerKHR.Buffer offset(java.util.function.Consumer<VkOffset2D> consumer)
Passes theoffsetfield to the specifiedConsumer.
-
extent
public VkRectLayerKHR.Buffer extent(VkExtent2D value)
Copies the specifiedVkExtent2Dto theextentfield.
-
extent
public VkRectLayerKHR.Buffer extent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theextentfield to the specifiedConsumer.
-
layer
public VkRectLayerKHR.Buffer layer(int value)
Sets the specified value to thelayerfield.
-
-