Package org.lwjgl.util.vma
Class VmaAllocationCreateInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VmaAllocationCreateInfo
extends Struct<VmaAllocationCreateInfo>
implements NativeResource
struct VmaAllocationCreateInfo {
VmaAllocationCreateFlags flags;
VmaMemoryUsage usage;
VkMemoryPropertyFlags requiredFlags;
VkMemoryPropertyFlags preferredFlags;
uint32_t memoryTypeBits;
VmaPool pool;
void * pUserData;
float priority;
}
-
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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVmaAllocationCreateInfo
(ByteBuffer container) Creates aVmaAllocationCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaAllocationCreateInfo
calloc()
Returns a newVmaAllocationCreateInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVmaAllocationCreateInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVmaAllocationCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaAllocationCreateInfo
calloc
(MemoryStack stack) Returns a newVmaAllocationCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaAllocationCreateInfo
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static VmaAllocationCreateInfo
callocStack
(MemoryStack stack) Deprecated.static VmaAllocationCreateInfo
create()
Returns a newVmaAllocationCreateInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newVmaAllocationCreateInfo.Buffer
instance allocated withBufferUtils
.static VmaAllocationCreateInfo
create
(long address) Returns a newVmaAllocationCreateInfo
instance for the specified memory address.create
(long address, int capacity) Create aVmaAllocationCreateInfo.Buffer
instance at the specified memory.static @Nullable VmaAllocationCreateInfo
createSafe
(long address) static @Nullable VmaAllocationCreateInfo.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.static VmaAllocationCreateInfo
malloc()
Returns a newVmaAllocationCreateInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVmaAllocationCreateInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVmaAllocationCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VmaAllocationCreateInfo
malloc
(MemoryStack stack) Returns a newVmaAllocationCreateInfo
instance allocated on the specifiedMemoryStack
.static VmaAllocationCreateInfo
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static VmaAllocationCreateInfo
mallocStack
(MemoryStack stack) Deprecated.int
memoryTypeBits
(int value) Sets the specified value to thememoryTypeBits
field.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nmemoryTypeBits
(long struct) Unsafe version ofmemoryTypeBits()
.static void
nmemoryTypeBits
(long struct, int value) Unsafe version ofmemoryTypeBits
.static long
npool
(long struct) Unsafe version ofpool()
.static void
npool
(long struct, long value) Unsafe version ofpool
.static int
npreferredFlags
(long struct) Unsafe version ofpreferredFlags()
.static void
npreferredFlags
(long struct, int value) Unsafe version ofpreferredFlags
.static float
npriority
(long struct) Unsafe version ofpriority()
.static void
npriority
(long struct, float value) Unsafe version ofpriority
.static long
npUserData
(long struct) Unsafe version ofpUserData()
.static void
npUserData
(long struct, long value) Unsafe version ofpUserData
.static int
nrequiredFlags
(long struct) Unsafe version ofrequiredFlags()
.static void
nrequiredFlags
(long struct, int value) Unsafe version ofrequiredFlags
.static int
nusage
(long struct) Unsafe version ofusage()
.static void
nusage
(long struct, int value) Unsafe version ofusage
.long
pool()
pool
(long value) Sets the specified value to thepool
field.int
preferredFlags
(int value) Sets the specified value to thepreferredFlags
field.float
priority()
priority
(float value) Sets the specified value to thepriority
field.long
pUserData
(long value) Sets the specified value to thepUserData
field.int
requiredFlags
(int value) Sets the specified value to therequiredFlags
field.set
(int flags, int usage, int requiredFlags, int preferredFlags, int memoryTypeBits, long pool, long pUserData, float priority) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
usage()
usage
(int value) Sets the specified value to theusage
field.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. -
FLAGS
public static final int FLAGSThe struct member offsets. -
USAGE
public static final int USAGEThe struct member offsets. -
REQUIREDFLAGS
public static final int REQUIREDFLAGSThe struct member offsets. -
PREFERREDFLAGS
public static final int PREFERREDFLAGSThe struct member offsets. -
MEMORYTYPEBITS
public static final int MEMORYTYPEBITSThe struct member offsets. -
POOL
public static final int POOLThe struct member offsets. -
PUSERDATA
public static final int PUSERDATAThe struct member offsets. -
PRIORITY
public static final int PRIORITYThe struct member offsets.
-
-
Constructor Details
-
VmaAllocationCreateInfo
Creates aVmaAllocationCreateInfo
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<VmaAllocationCreateInfo>
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
usage
public int usage()- Returns:
- the value of the
usage
field.
-
requiredFlags
public int requiredFlags()- Returns:
- the value of the
requiredFlags
field.
-
preferredFlags
public int preferredFlags()- Returns:
- the value of the
preferredFlags
field.
-
memoryTypeBits
public int memoryTypeBits()- Returns:
- the value of the
memoryTypeBits
field.
-
pool
public long pool()- Returns:
- the value of the
pool
field.
-
pUserData
public long pUserData()- Returns:
- the value of the
pUserData
field.
-
priority
public float priority()- Returns:
- the value of the
priority
field.
-
flags
Sets the specified value to theflags
field. -
usage
Sets the specified value to theusage
field. -
requiredFlags
Sets the specified value to therequiredFlags
field. -
preferredFlags
Sets the specified value to thepreferredFlags
field. -
memoryTypeBits
Sets the specified value to thememoryTypeBits
field. -
pool
Sets the specified value to thepool
field. -
pUserData
Sets the specified value to thepUserData
field. -
priority
Sets the specified value to thepriority
field. -
set
public VmaAllocationCreateInfo set(int flags, int usage, int requiredFlags, int preferredFlags, int memoryTypeBits, long pool, long pUserData, float priority) 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 newVmaAllocationCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVmaAllocationCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVmaAllocationCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newVmaAllocationCreateInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaAllocationCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVmaAllocationCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVmaAllocationCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVmaAllocationCreateInfo.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 public static VmaAllocationCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VmaAllocationCreateInfo.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVmaAllocationCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVmaAllocationCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVmaAllocationCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVmaAllocationCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nusage
public static int nusage(long struct) Unsafe version ofusage()
. -
nrequiredFlags
public static int nrequiredFlags(long struct) Unsafe version ofrequiredFlags()
. -
npreferredFlags
public static int npreferredFlags(long struct) Unsafe version ofpreferredFlags()
. -
nmemoryTypeBits
public static int nmemoryTypeBits(long struct) Unsafe version ofmemoryTypeBits()
. -
npool
public static long npool(long struct) Unsafe version ofpool()
. -
npUserData
public static long npUserData(long struct) Unsafe version ofpUserData()
. -
npriority
public static float npriority(long struct) Unsafe version ofpriority()
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nusage
public static void nusage(long struct, int value) Unsafe version ofusage
. -
nrequiredFlags
public static void nrequiredFlags(long struct, int value) Unsafe version ofrequiredFlags
. -
npreferredFlags
public static void npreferredFlags(long struct, int value) Unsafe version ofpreferredFlags
. -
nmemoryTypeBits
public static void nmemoryTypeBits(long struct, int value) Unsafe version ofmemoryTypeBits
. -
npool
public static void npool(long struct, long value) Unsafe version ofpool
. -
npUserData
public static void npUserData(long struct, long value) Unsafe version ofpUserData
. -
npriority
public static void npriority(long struct, float value) Unsafe version ofpriority
.
-