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 ofVkRectLayerKHR
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VkExtent2D
extent()
Returns aVkExtent2D
view of theextent
field.VkRectLayerKHR.Buffer
extent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theextent
field to the specifiedConsumer
.VkRectLayerKHR.Buffer
extent(VkExtent2D value)
Copies the specifiedVkExtent2D
to theextent
field.int
layer()
Returns the value of thelayer
field.VkRectLayerKHR.Buffer
layer(int value)
Sets the specified value to thelayer
field.VkOffset2D
offset()
Returns aVkOffset2D
view of theoffset
field.VkRectLayerKHR.Buffer
offset(java.util.function.Consumer<VkOffset2D> consumer)
Passes theoffset
field to the specifiedConsumer
.VkRectLayerKHR.Buffer
offset(VkOffset2D value)
Copies the specifiedVkOffset2D
to theoffset
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkRectLayerKHR.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 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 aVkOffset2D
view of theoffset
field.
-
extent
public VkExtent2D extent()
Returns aVkExtent2D
view of theextent
field.
-
layer
public int layer()
Returns the value of thelayer
field.
-
offset
public VkRectLayerKHR.Buffer offset(VkOffset2D value)
Copies the specifiedVkOffset2D
to theoffset
field.
-
offset
public VkRectLayerKHR.Buffer offset(java.util.function.Consumer<VkOffset2D> consumer)
Passes theoffset
field to the specifiedConsumer
.
-
extent
public VkRectLayerKHR.Buffer extent(VkExtent2D value)
Copies the specifiedVkExtent2D
to theextent
field.
-
extent
public VkRectLayerKHR.Buffer extent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theextent
field to the specifiedConsumer
.
-
layer
public VkRectLayerKHR.Buffer layer(int value)
Sets the specified value to thelayer
field.
-
-