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.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 member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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 aVmaAllocationCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaAllocationCreateInfocalloc()Returns a newVmaAllocationCreateInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newVmaAllocationCreateInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVmaAllocationCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaAllocationCreateInfocalloc(MemoryStack stack) Returns a newVmaAllocationCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaAllocationCreateInfoDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.static VmaAllocationCreateInfocallocStack(MemoryStack stack) Deprecated.static VmaAllocationCreateInfocreate()Returns a newVmaAllocationCreateInfoinstance allocated withBufferUtils.create(int capacity) Returns a newVmaAllocationCreateInfo.Bufferinstance allocated withBufferUtils.static VmaAllocationCreateInfocreate(long address) Returns a newVmaAllocationCreateInfoinstance for the specified memory address.create(long address, int capacity) Create aVmaAllocationCreateInfo.Bufferinstance at the specified memory.static @Nullable VmaAllocationCreateInfocreateSafe(long address) static @Nullable VmaAllocationCreateInfo.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static VmaAllocationCreateInfomalloc()Returns a newVmaAllocationCreateInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newVmaAllocationCreateInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVmaAllocationCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VmaAllocationCreateInfomalloc(MemoryStack stack) Returns a newVmaAllocationCreateInfoinstance allocated on the specifiedMemoryStack.static VmaAllocationCreateInfoDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.static VmaAllocationCreateInfomallocStack(MemoryStack stack) Deprecated.intmemoryTypeBits(int value) Sets the specified value to thememoryTypeBitsfield.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnmemoryTypeBits(long struct) Unsafe version ofmemoryTypeBits().static voidnmemoryTypeBits(long struct, int value) Unsafe version ofmemoryTypeBits.static longnpool(long struct) Unsafe version ofpool().static voidnpool(long struct, long value) Unsafe version ofpool.static intnpreferredFlags(long struct) Unsafe version ofpreferredFlags().static voidnpreferredFlags(long struct, int value) Unsafe version ofpreferredFlags.static floatnpriority(long struct) Unsafe version ofpriority().static voidnpriority(long struct, float value) Unsafe version ofpriority.static longnpUserData(long struct) Unsafe version ofpUserData().static voidnpUserData(long struct, long value) Unsafe version ofpUserData.static intnrequiredFlags(long struct) Unsafe version ofrequiredFlags().static voidnrequiredFlags(long struct, int value) Unsafe version ofrequiredFlags.static intnusage(long struct) Unsafe version ofusage().static voidnusage(long struct, int value) Unsafe version ofusage.longpool()pool(long value) Sets the specified value to thepoolfield.intpreferredFlags(int value) Sets the specified value to thepreferredFlagsfield.floatpriority()priority(float value) Sets the specified value to thepriorityfield.longpUserData(long value) Sets the specified value to thepUserDatafield.intrequiredFlags(int value) Sets the specified value to therequiredFlagsfield.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.intsizeof()Returnssizeof(struct).intusage()usage(int value) Sets the specified value to theusagefield.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. -
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 aVmaAllocationCreateInfoinstance 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<VmaAllocationCreateInfo>
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
usage
public int usage()- Returns:
- the value of the
usagefield.
-
requiredFlags
public int requiredFlags()- Returns:
- the value of the
requiredFlagsfield.
-
preferredFlags
public int preferredFlags()- Returns:
- the value of the
preferredFlagsfield.
-
memoryTypeBits
public int memoryTypeBits()- Returns:
- the value of the
memoryTypeBitsfield.
-
pool
public long pool()- Returns:
- the value of the
poolfield.
-
pUserData
public long pUserData()- Returns:
- the value of the
pUserDatafield.
-
priority
public float priority()- Returns:
- the value of the
priorityfield.
-
flags
Sets the specified value to theflagsfield. -
usage
Sets the specified value to theusagefield. -
requiredFlags
Sets the specified value to therequiredFlagsfield. -
preferredFlags
Sets the specified value to thepreferredFlagsfield. -
memoryTypeBits
Sets the specified value to thememoryTypeBitsfield. -
pool
Sets the specified value to thepoolfield. -
pUserData
Sets the specified value to thepUserDatafield. -
priority
Sets the specified value to thepriorityfield. -
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 newVmaAllocationCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVmaAllocationCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVmaAllocationCreateInfoinstance allocated withBufferUtils. -
create
Returns a newVmaAllocationCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaAllocationCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVmaAllocationCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVmaAllocationCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVmaAllocationCreateInfo.Bufferinstance 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 newVmaAllocationCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVmaAllocationCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVmaAllocationCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVmaAllocationCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-