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 ofVkSparseMemoryBind
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
flags()
Returns the value of theflags
field.VkSparseMemoryBind.Buffer
flags(int value)
Sets the specified value to theflags
field.long
memory()
Returns the value of thememory
field.VkSparseMemoryBind.Buffer
memory(long value)
Sets the specified value to thememory
field.long
memoryOffset()
Returns the value of thememoryOffset
field.VkSparseMemoryBind.Buffer
memoryOffset(long value)
Sets the specified value to thememoryOffset
field.long
resourceOffset()
Returns the value of theresourceOffset
field.VkSparseMemoryBind.Buffer
resourceOffset(long value)
Sets the specified value to theresourceOffset
field.long
size()
Returns the value of thesize
field.VkSparseMemoryBind.Buffer
size(long value)
Sets the specified value to thesize
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkSparseMemoryBind.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 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 theresourceOffset
field.
-
size
public long size()
Returns the value of thesize
field.
-
memory
public long memory()
Returns the value of thememory
field.
-
memoryOffset
public long memoryOffset()
Returns the value of thememoryOffset
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
resourceOffset
public VkSparseMemoryBind.Buffer resourceOffset(long value)
Sets the specified value to theresourceOffset
field.
-
size
public VkSparseMemoryBind.Buffer size(long value)
Sets the specified value to thesize
field.
-
memory
public VkSparseMemoryBind.Buffer memory(long value)
Sets the specified value to thememory
field.
-
memoryOffset
public VkSparseMemoryBind.Buffer memoryOffset(long value)
Sets the specified value to thememoryOffset
field.
-
flags
public VkSparseMemoryBind.Buffer flags(int value)
Sets the specified value to theflags
field.
-
-