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()VkRectLayerKHR.Bufferextent(java.util.function.Consumer<VkExtent2D> consumer)Passes theVkRectLayerKHR.extent()field to the specifiedConsumer.VkRectLayerKHR.Bufferextent(VkExtent2D value)Copies the specifiedVkExtent2Dto theVkRectLayerKHR.extent()field.intlayer()VkRectLayerKHR.Bufferlayer(int value)Sets the specified value to theVkRectLayerKHR.layer()field.VkOffset2Doffset()VkRectLayerKHR.Bufferoffset(java.util.function.Consumer<VkOffset2D> consumer)Passes theVkRectLayerKHR.offset()field to the specifiedConsumer.VkRectLayerKHR.Bufferoffset(VkOffset2D value)Copies the specifiedVkOffset2Dto theVkRectLayerKHR.offset()field.
-
-
-
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:
- a
VkOffset2Dview of theVkRectLayerKHR.offset()field.
-
extent
public VkExtent2D extent()
- Returns:
- a
VkExtent2Dview of theVkRectLayerKHR.extent()field.
-
layer
public int layer()
- Returns:
- the value of the
VkRectLayerKHR.layer()field.
-
offset
public VkRectLayerKHR.Buffer offset(VkOffset2D value)
Copies the specifiedVkOffset2Dto theVkRectLayerKHR.offset()field.
-
offset
public VkRectLayerKHR.Buffer offset(java.util.function.Consumer<VkOffset2D> consumer)
Passes theVkRectLayerKHR.offset()field to the specifiedConsumer.
-
extent
public VkRectLayerKHR.Buffer extent(VkExtent2D value)
Copies the specifiedVkExtent2Dto theVkRectLayerKHR.extent()field.
-
extent
public VkRectLayerKHR.Buffer extent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theVkRectLayerKHR.extent()field to the specifiedConsumer.
-
layer
public VkRectLayerKHR.Buffer layer(int value)
Sets the specified value to theVkRectLayerKHR.layer()field.
-
-