public static class VkRect2D.Buffer extends org.lwjgl.system.StructBuffer<VkRect2D,VkRect2D.Buffer> implements org.lwjgl.system.NativeResource
VkRect2D structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
VkRect2D.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
VkExtent2D |
extent()
Returns a
VkExtent2D view of the extent field. |
VkRect2D.Buffer |
extent(java.util.function.Consumer<VkExtent2D> consumer)
Passes the
extent field to the specified Consumer. |
VkRect2D.Buffer |
extent(VkExtent2D value)
Copies the specified
VkExtent2D to the extent field. |
VkOffset2D |
offset()
Returns a
VkOffset2D view of the offset field. |
VkRect2D.Buffer |
offset(java.util.function.Consumer<VkOffset2D> consumer)
Passes the
offset field to the specified Consumer. |
VkRect2D.Buffer |
offset(VkOffset2D value)
Copies the specified
VkOffset2D to the offset field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
VkRect2D.Buffer instance 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
by VkRect2D.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public VkOffset2D offset()
VkOffset2D view of the offset field.public VkExtent2D extent()
VkExtent2D view of the extent field.public VkRect2D.Buffer offset(VkOffset2D value)
VkOffset2D to the offset field.public VkRect2D.Buffer offset(java.util.function.Consumer<VkOffset2D> consumer)
offset field to the specified Consumer.public VkRect2D.Buffer extent(VkExtent2D value)
VkExtent2D to the extent field.public VkRect2D.Buffer extent(java.util.function.Consumer<VkExtent2D> consumer)
extent field to the specified Consumer.Copyright LWJGL. All Rights Reserved. License terms.