Package org.lwjgl.vulkan
Class VkRect2D.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkRect2D,VkRect2D.Buffer>
-
- org.lwjgl.vulkan.VkRect2D.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkRect2D>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VkRect2D
public static class VkRect2D.Buffer extends org.lwjgl.system.StructBuffer<VkRect2D,VkRect2D.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkRect2Dstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VkExtent2Dextent()Returns aVkExtent2Dview of theextentfield.VkRect2D.Bufferextent(java.util.function.Consumer<VkExtent2D> consumer)Passes theextentfield to the specifiedConsumer.VkRect2D.Bufferextent(VkExtent2D value)Copies the specifiedVkExtent2Dto theextentfield.VkOffset2Doffset()Returns aVkOffset2Dview of theoffsetfield.VkRect2D.Bufferoffset(java.util.function.Consumer<VkOffset2D> consumer)Passes theoffsetfield to the specifiedConsumer.VkRect2D.Bufferoffset(VkOffset2D value)Copies the specifiedVkOffset2Dto theoffsetfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkRect2D.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 byVkRect2D.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.
-
offset
public VkRect2D.Buffer offset(VkOffset2D value)
Copies the specifiedVkOffset2Dto theoffsetfield.
-
offset
public VkRect2D.Buffer offset(java.util.function.Consumer<VkOffset2D> consumer)
Passes theoffsetfield to the specifiedConsumer.
-
extent
public VkRect2D.Buffer extent(VkExtent2D value)
Copies the specifiedVkExtent2Dto theextentfield.
-
extent
public VkRect2D.Buffer extent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theextentfield to the specifiedConsumer.
-
-