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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aVkSparseMemoryBind
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSparseMemoryBind
calloc()
Returns a newVkSparseMemoryBind
instance allocated withmemCalloc
.static VkSparseMemoryBind.Buffer
calloc
(int capacity) Returns a newVkSparseMemoryBind.Buffer
instance allocated withmemCalloc
.static VkSparseMemoryBind.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkSparseMemoryBind.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSparseMemoryBind
calloc
(MemoryStack stack) Returns a newVkSparseMemoryBind
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSparseMemoryBind
Deprecated.static VkSparseMemoryBind.Buffer
callocStack
(int capacity) Deprecated.static VkSparseMemoryBind.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkSparseMemoryBind
callocStack
(MemoryStack stack) Deprecated.static VkSparseMemoryBind
create()
Returns a newVkSparseMemoryBind
instance allocated withBufferUtils
.static VkSparseMemoryBind.Buffer
create
(int capacity) Returns a newVkSparseMemoryBind.Buffer
instance allocated withBufferUtils
.static VkSparseMemoryBind
create
(long address) Returns a newVkSparseMemoryBind
instance for the specified memory address.static VkSparseMemoryBind.Buffer
create
(long address, int capacity) Create aVkSparseMemoryBind.Buffer
instance at the specified memory.static @Nullable VkSparseMemoryBind
createSafe
(long address) static @Nullable VkSparseMemoryBind.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.static VkSparseMemoryBind
malloc()
Returns a newVkSparseMemoryBind
instance allocated withmemAlloc
.static VkSparseMemoryBind.Buffer
malloc
(int capacity) Returns a newVkSparseMemoryBind.Buffer
instance allocated withmemAlloc
.static VkSparseMemoryBind.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkSparseMemoryBind.Buffer
instance allocated on the specifiedMemoryStack
.static VkSparseMemoryBind
malloc
(MemoryStack stack) Returns a newVkSparseMemoryBind
instance allocated on the specifiedMemoryStack
.static VkSparseMemoryBind
Deprecated.static VkSparseMemoryBind.Buffer
mallocStack
(int capacity) Deprecated.static VkSparseMemoryBind.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkSparseMemoryBind
mallocStack
(MemoryStack stack) Deprecated.long
memory()
memory
(long value) Sets the specified value to thememory
field.long
memoryOffset
(long value) Sets the specified value to thememoryOffset
field.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static long
nmemory
(long struct) Unsafe version ofmemory()
.static void
nmemory
(long struct, long value) Unsafe version ofmemory
.static long
nmemoryOffset
(long struct) Unsafe version ofmemoryOffset()
.static void
nmemoryOffset
(long struct, long value) Unsafe version ofmemoryOffset
.static long
nresourceOffset
(long struct) Unsafe version ofresourceOffset()
.static void
nresourceOffset
(long struct, long value) Unsafe version ofresourceOffset
.static long
nsize
(long struct) Unsafe version ofsize()
.static void
nsize
(long struct, long value) Unsafe version ofsize
.long
resourceOffset
(long value) Sets the specified value to theresourceOffset
field.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.long
size()
size
(long value) Sets the specified value to thesize
field.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVkSparseMemoryBind
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkSparseMemoryBind>
-
resourceOffset
public long resourceOffset()- Returns:
- the value of the
resourceOffset
field.
-
size
public long size()- Returns:
- the value of the
size
field.
-
memory
public long memory()- Returns:
- the value of the
memory
field.
-
memoryOffset
public long memoryOffset()- Returns:
- the value of the
memoryOffset
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
resourceOffset
Sets the specified value to theresourceOffset
field. -
size
Sets the specified value to thesize
field. -
memory
Sets the specified value to thememory
field. -
memoryOffset
Sets the specified value to thememoryOffset
field. -
flags
Sets the specified value to theflags
field. -
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 newVkSparseMemoryBind
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkSparseMemoryBind
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkSparseMemoryBind
instance allocated withBufferUtils
. -
create
Returns a newVkSparseMemoryBind
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSparseMemoryBind.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkSparseMemoryBind.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkSparseMemoryBind.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkSparseMemoryBind.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkSparseMemoryBind
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkSparseMemoryBind
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkSparseMemoryBind.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkSparseMemoryBind.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-