public static class VkRectLayerKHR.Buffer extends org.lwjgl.system.StructBuffer<VkRectLayerKHR,VkRectLayerKHR.Buffer> implements org.lwjgl.system.NativeResource
VkRectLayerKHR structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
VkRectLayerKHR.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. |
VkRectLayerKHR.Buffer |
extent(java.util.function.Consumer<VkExtent2D> consumer)
Passes the
extent field to the specified Consumer. |
VkRectLayerKHR.Buffer |
extent(VkExtent2D value)
Copies the specified
VkExtent2D to the extent field. |
int |
layer()
Returns the value of the
layer field. |
VkRectLayerKHR.Buffer |
layer(int value)
Sets the specified value to the
layer field. |
VkOffset2D |
offset()
Returns a
VkOffset2D view of the offset field. |
VkRectLayerKHR.Buffer |
offset(java.util.function.Consumer<VkOffset2D> consumer)
Passes the
offset field to the specified Consumer. |
VkRectLayerKHR.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)
VkRectLayerKHR.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 VkRectLayerKHR.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 int layer()
layer field.public VkRectLayerKHR.Buffer offset(VkOffset2D value)
VkOffset2D to the offset field.public VkRectLayerKHR.Buffer offset(java.util.function.Consumer<VkOffset2D> consumer)
offset field to the specified Consumer.public VkRectLayerKHR.Buffer extent(VkExtent2D value)
VkExtent2D to the extent field.public VkRectLayerKHR.Buffer extent(java.util.function.Consumer<VkExtent2D> consumer)
extent field to the specified Consumer.public VkRectLayerKHR.Buffer layer(int value)
layer field.Copyright LWJGL. All Rights Reserved. License terms.