public static class VkSparseImageMemoryBind.Buffer extends org.lwjgl.system.StructBuffer<VkSparseImageMemoryBind,VkSparseImageMemoryBind.Buffer> implements org.lwjgl.system.NativeResource
VkSparseImageMemoryBind structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
VkSparseImageMemoryBind.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
VkExtent3D |
extent()
Returns a
VkExtent3D view of the extent field. |
VkSparseImageMemoryBind.Buffer |
extent(java.util.function.Consumer<VkExtent3D> consumer)
Passes the
extent field to the specified Consumer. |
VkSparseImageMemoryBind.Buffer |
extent(VkExtent3D value)
Copies the specified
VkExtent3D to the extent field. |
int |
flags()
Returns the value of the
flags field. |
VkSparseImageMemoryBind.Buffer |
flags(int value)
Sets the specified value to the
flags field. |
long |
memory()
Returns the value of the
memory field. |
VkSparseImageMemoryBind.Buffer |
memory(long value)
Sets the specified value to the
memory field. |
long |
memoryOffset()
Returns the value of the
memoryOffset field. |
VkSparseImageMemoryBind.Buffer |
memoryOffset(long value)
Sets the specified value to the
memoryOffset field. |
VkOffset3D |
offset()
Returns a
VkOffset3D view of the offset field. |
VkSparseImageMemoryBind.Buffer |
offset(java.util.function.Consumer<VkOffset3D> consumer)
Passes the
offset field to the specified Consumer. |
VkSparseImageMemoryBind.Buffer |
offset(VkOffset3D value)
Copies the specified
VkOffset3D to the offset field. |
VkImageSubresource |
subresource()
Returns a
VkImageSubresource view of the subresource field. |
VkSparseImageMemoryBind.Buffer |
subresource(java.util.function.Consumer<VkImageSubresource> consumer)
Passes the
subresource field to the specified Consumer. |
VkSparseImageMemoryBind.Buffer |
subresource(VkImageSubresource value)
Copies the specified
VkImageSubresource to the subresource field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
VkSparseImageMemoryBind.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 VkSparseImageMemoryBind.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 VkImageSubresource subresource()
VkImageSubresource view of the subresource field.public VkOffset3D offset()
VkOffset3D view of the offset field.public VkExtent3D extent()
VkExtent3D view of the extent field.public long memory()
memory field.public long memoryOffset()
memoryOffset field.public int flags()
flags field.public VkSparseImageMemoryBind.Buffer subresource(VkImageSubresource value)
VkImageSubresource to the subresource field.public VkSparseImageMemoryBind.Buffer subresource(java.util.function.Consumer<VkImageSubresource> consumer)
subresource field to the specified Consumer.public VkSparseImageMemoryBind.Buffer offset(VkOffset3D value)
VkOffset3D to the offset field.public VkSparseImageMemoryBind.Buffer offset(java.util.function.Consumer<VkOffset3D> consumer)
offset field to the specified Consumer.public VkSparseImageMemoryBind.Buffer extent(VkExtent3D value)
VkExtent3D to the extent field.public VkSparseImageMemoryBind.Buffer extent(java.util.function.Consumer<VkExtent3D> consumer)
extent field to the specified Consumer.public VkSparseImageMemoryBind.Buffer memory(long value)
memory field.public VkSparseImageMemoryBind.Buffer memoryOffset(long value)
memoryOffset field.public VkSparseImageMemoryBind.Buffer flags(int value)
flags field.Copyright LWJGL. All Rights Reserved. License terms.