Package org.lwjgl.vulkan
Class VkSparseMemoryBind
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkSparseMemoryBind {
VkDeviceSize resourceOffset;
VkDeviceSize size;
VkDeviceMemory memory;
VkDeviceSize memoryOffset;
VkSparseMemoryBindFlags flags;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkSparseMemoryBind(ByteBuffer container) Creates aVkSparseMemoryBindinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSparseMemoryBindcalloc()Returns a newVkSparseMemoryBindinstance allocated withmemCalloc.static VkSparseMemoryBind.Buffercalloc(int capacity) Returns a newVkSparseMemoryBind.Bufferinstance allocated withmemCalloc.static VkSparseMemoryBind.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkSparseMemoryBind.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseMemoryBindcalloc(MemoryStack stack) Returns a newVkSparseMemoryBindinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseMemoryBindcreate()Returns a newVkSparseMemoryBindinstance allocated withBufferUtils.static VkSparseMemoryBind.Buffercreate(int capacity) Returns a newVkSparseMemoryBind.Bufferinstance allocated withBufferUtils.static VkSparseMemoryBindcreate(long address) Returns a newVkSparseMemoryBindinstance for the specified memory address.static VkSparseMemoryBind.Buffercreate(long address, int capacity) Create aVkSparseMemoryBind.Bufferinstance at the specified memory.static @Nullable VkSparseMemoryBindcreateSafe(long address) static @Nullable VkSparseMemoryBind.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static VkSparseMemoryBindmalloc()Returns a newVkSparseMemoryBindinstance allocated withmemAlloc.static VkSparseMemoryBind.Buffermalloc(int capacity) Returns a newVkSparseMemoryBind.Bufferinstance allocated withmemAlloc.static VkSparseMemoryBind.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkSparseMemoryBind.Bufferinstance allocated on the specifiedMemoryStack.static VkSparseMemoryBindmalloc(MemoryStack stack) Returns a newVkSparseMemoryBindinstance allocated on the specifiedMemoryStack.longmemory()memory(long value) Sets the specified value to thememoryfield.longmemoryOffset(long value) Sets the specified value to thememoryOffsetfield.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longnmemory(long struct) Unsafe version ofmemory().static voidnmemory(long struct, long value) Unsafe version ofmemory.static longnmemoryOffset(long struct) Unsafe version ofmemoryOffset().static voidnmemoryOffset(long struct, long value) Unsafe version ofmemoryOffset.static longnresourceOffset(long struct) Unsafe version ofresourceOffset().static voidnresourceOffset(long struct, long value) Unsafe version ofresourceOffset.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Unsafe version ofsize.longresourceOffset(long value) Sets the specified value to theresourceOffsetfield.set(long resourceOffset, long size, long memory, long memoryOffset, int flags) Initializes this struct with the specified values.set(VkSparseMemoryBind src) Copies the specified struct data to this struct.longsize()size(long value) Sets the specified value to thesizefield.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
RESOURCEOFFSET
public static final int RESOURCEOFFSETThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
MEMORY
public static final int MEMORYThe struct member offsets. -
MEMORYOFFSET
public static final int MEMORYOFFSETThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
VkSparseMemoryBind
Creates aVkSparseMemoryBindinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkSparseMemoryBind>
-
resourceOffset
public long resourceOffset()- Returns:
- the value of the
resourceOffsetfield.
-
size
public long size()- Returns:
- the value of the
sizefield.
-
memory
public long memory()- Returns:
- the value of the
memoryfield.
-
memoryOffset
public long memoryOffset()- Returns:
- the value of the
memoryOffsetfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
resourceOffset
Sets the specified value to theresourceOffsetfield. -
size
Sets the specified value to thesizefield. -
memory
Sets the specified value to thememoryfield. -
memoryOffset
Sets the specified value to thememoryOffsetfield. -
flags
Sets the specified value to theflagsfield. -
set
public VkSparseMemoryBind set(long resourceOffset, long size, long memory, long memoryOffset, int flags) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkSparseMemoryBindinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSparseMemoryBindinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSparseMemoryBindinstance allocated withBufferUtils. -
create
Returns a newVkSparseMemoryBindinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSparseMemoryBind.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSparseMemoryBind.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSparseMemoryBind.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSparseMemoryBind.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkSparseMemoryBindinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSparseMemoryBindinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSparseMemoryBind.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSparseMemoryBind.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nresourceOffset
public static long nresourceOffset(long struct) Unsafe version ofresourceOffset(). -
nsize
public static long nsize(long struct) Unsafe version ofsize(). -
nmemory
public static long nmemory(long struct) Unsafe version ofmemory(). -
nmemoryOffset
public static long nmemoryOffset(long struct) Unsafe version ofmemoryOffset(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nresourceOffset
public static void nresourceOffset(long struct, long value) Unsafe version ofresourceOffset. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize. -
nmemory
public static void nmemory(long struct, long value) Unsafe version ofmemory. -
nmemoryOffset
public static void nmemoryOffset(long struct, long value) Unsafe version ofmemoryOffset. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags.
-