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