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()Returns the value of theflagsfield.VkSparseMemoryBind.Bufferflags(int value)Sets the specified value to theflagsfield.longmemory()Returns the value of thememoryfield.VkSparseMemoryBind.Buffermemory(long value)Sets the specified value to thememoryfield.longmemoryOffset()Returns the value of thememoryOffsetfield.VkSparseMemoryBind.BuffermemoryOffset(long value)Sets the specified value to thememoryOffsetfield.longresourceOffset()Returns the value of theresourceOffsetfield.VkSparseMemoryBind.BufferresourceOffset(long value)Sets the specified value to theresourceOffsetfield.longsize()Returns the value of thesizefield.VkSparseMemoryBind.Buffersize(long value)Sets the specified value to thesizefield.
-
-
-
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 theresourceOffsetfield.
-
size
public long size()
Returns the value of thesizefield.
-
memory
public long memory()
Returns the value of thememoryfield.
-
memoryOffset
public long memoryOffset()
Returns the value of thememoryOffsetfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
resourceOffset
public VkSparseMemoryBind.Buffer resourceOffset(long value)
Sets the specified value to theresourceOffsetfield.
-
size
public VkSparseMemoryBind.Buffer size(long value)
Sets the specified value to thesizefield.
-
memory
public VkSparseMemoryBind.Buffer memory(long value)
Sets the specified value to thememoryfield.
-
memoryOffset
public VkSparseMemoryBind.Buffer memoryOffset(long value)
Sets the specified value to thememoryOffsetfield.
-
flags
public VkSparseMemoryBind.Buffer flags(int value)
Sets the specified value to theflagsfield.
-
-