Package org.lwjgl.vulkan
Class VkSparseMemoryBind.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkSparseMemoryBind,VkSparseMemoryBind.Buffer>
-
- org.lwjgl.vulkan.VkSparseMemoryBind.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkSparseMemoryBind>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VkSparseMemoryBind
public static class VkSparseMemoryBind.Buffer extends org.lwjgl.system.StructBuffer<VkSparseMemoryBind,VkSparseMemoryBind.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkSparseMemoryBindstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intflags()VkSparseMemoryBind.Bufferflags(int value)Sets the specified value to theVkSparseMemoryBind.flags()field.longmemory()VkSparseMemoryBind.Buffermemory(long value)Sets the specified value to theVkSparseMemoryBind.memory()field.longmemoryOffset()VkSparseMemoryBind.BuffermemoryOffset(long value)Sets the specified value to theVkSparseMemoryBind.memoryOffset()field.longresourceOffset()VkSparseMemoryBind.BufferresourceOffset(long value)Sets the specified value to theVkSparseMemoryBind.resourceOffset()field.longsize()VkSparseMemoryBind.Buffersize(long value)Sets the specified value to theVkSparseMemoryBind.size()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkSparseMemoryBind.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 byVkSparseMemoryBind.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
-
resourceOffset
public long resourceOffset()
- Returns:
- the value of the
VkSparseMemoryBind.resourceOffset()field.
-
size
public long size()
- Returns:
- the value of the
VkSparseMemoryBind.size()field.
-
memory
public long memory()
- Returns:
- the value of the
VkSparseMemoryBind.memory()field.
-
memoryOffset
public long memoryOffset()
- Returns:
- the value of the
VkSparseMemoryBind.memoryOffset()field.
-
flags
public int flags()
- Returns:
- the value of the
VkSparseMemoryBind.flags()field.
-
resourceOffset
public VkSparseMemoryBind.Buffer resourceOffset(long value)
Sets the specified value to theVkSparseMemoryBind.resourceOffset()field.
-
size
public VkSparseMemoryBind.Buffer size(long value)
Sets the specified value to theVkSparseMemoryBind.size()field.
-
memory
public VkSparseMemoryBind.Buffer memory(long value)
Sets the specified value to theVkSparseMemoryBind.memory()field.
-
memoryOffset
public VkSparseMemoryBind.Buffer memoryOffset(long value)
Sets the specified value to theVkSparseMemoryBind.memoryOffset()field.
-
flags
public VkSparseMemoryBind.Buffer flags(int value)
Sets the specified value to theVkSparseMemoryBind.flags()field.
-
-