Package org.lwjgl.util.vma
Class VmaVirtualAllocationCreateInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VmaVirtualAllocationCreateInfo>
org.lwjgl.util.vma.VmaVirtualAllocationCreateInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VmaVirtualAllocationCreateInfo
extends Struct<VmaVirtualAllocationCreateInfo>
implements NativeResource
struct VmaVirtualAllocationCreateInfo {
VkDeviceSize size;
VkDeviceSize alignment;
VmaVirtualAllocationCreateFlags flags;
void * pUserData;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVmaVirtualAllocationCreateInfo
structs.Nested 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 member offsets.static 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVmaVirtualAllocationCreateInfo
(ByteBuffer container) Creates aVmaVirtualAllocationCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
alignment
(long value) Sets the specified value to thealignment
field.calloc()
Returns a newVmaVirtualAllocationCreateInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVmaVirtualAllocationCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVmaVirtualAllocationCreateInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVmaVirtualAllocationCreateInfo
instance for the specified memory address.create
(long address, int capacity) Create aVmaVirtualAllocationCreateInfo.Buffer
instance at the specified memory.static @Nullable VmaVirtualAllocationCreateInfo
createSafe
(long address) static @Nullable VmaVirtualAllocationCreateInfo.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.malloc()
Returns a newVmaVirtualAllocationCreateInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVmaVirtualAllocationCreateInfo
instance allocated on the specifiedMemoryStack
.static long
nalignment
(long struct) Unsafe version ofalignment()
.static void
nalignment
(long struct, long value) Unsafe version ofalignment
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static long
npUserData
(long struct) Unsafe version ofpUserData()
.static void
npUserData
(long struct, long value) Unsafe version ofpUserData
.static long
nsize
(long struct) Unsafe version ofsize()
.static void
nsize
(long struct, long value) Unsafe version ofsize
.long
pUserData
(long value) Sets the specified value to thepUserData
field.set
(long size, long alignment, int flags, long pUserData) Initializes this struct with the specified values.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. -
SIZE
public static final int SIZEThe struct member offsets. -
ALIGNMENT
public static final int ALIGNMENTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
PUSERDATA
public static final int PUSERDATAThe struct member offsets.
-
-
Constructor Details
-
VmaVirtualAllocationCreateInfo
Creates aVmaVirtualAllocationCreateInfo
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<VmaVirtualAllocationCreateInfo>
-
size
public long size()- Returns:
- the value of the
size
field.
-
alignment
public long alignment()- Returns:
- the value of the
alignment
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
pUserData
public long pUserData()- Returns:
- the value of the
pUserData
field.
-
size
Sets the specified value to thesize
field. -
alignment
Sets the specified value to thealignment
field. -
flags
Sets the specified value to theflags
field. -
pUserData
Sets the specified value to thepUserData
field. -
set
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 newVmaVirtualAllocationCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVmaVirtualAllocationCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVmaVirtualAllocationCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newVmaVirtualAllocationCreateInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVmaVirtualAllocationCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VmaVirtualAllocationCreateInfo.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVmaVirtualAllocationCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVmaVirtualAllocationCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVmaVirtualAllocationCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsize
public static long nsize(long struct) Unsafe version ofsize()
. -
nalignment
public static long nalignment(long struct) Unsafe version ofalignment()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
npUserData
public static long npUserData(long struct) Unsafe version ofpUserData()
. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize
. -
nalignment
public static void nalignment(long struct, long value) Unsafe version ofalignment
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
npUserData
public static void npUserData(long struct, long value) Unsafe version ofpUserData
.
-