VmaAllocation.
To be used with functions like CreateBuffer, CreateImage, and many others.
struct VmaAllocationCreateInfo {
VmaAllocationCreateFlags flags;
VmaMemoryUsage usage;
VkMemoryPropertyFlags requiredFlags;
VkMemoryPropertyFlags preferredFlags;
uint32_t memoryTypeBits;
VmaPool pool;
void * pUserData;
float priority;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VmaAllocationCreateInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | MEMORYTYPEBITS
The struct member offsets. |
| public static final int | POOL
The struct member offsets. |
| public static final int | PREFERREDFLAGS
The struct member offsets. |
| public static final int | PRIORITY
The struct member offsets. |
| public static final int | PUSERDATA
The struct member offsets. |
| public static final int | REQUIREDFLAGS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | USAGE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VmaAllocationCreateInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VmaAllocationCreateInfo | |
| public static VmaAllocationCreateInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VmaAllocationCreateInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaAllocationCreateInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VmaAllocationCreateInfo | |
| public static VmaAllocationCreateInfo | |
| public static VmaAllocationCreateInfo. | |
| public static VmaAllocationCreateInfo. | |
| protected VmaAllocationCreateInfo | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VmaAllocationCreateInfo | |
| public static VmaAllocationCreateInfo | create(long address)
Returns a new |
| public static VmaAllocationCreateInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VmaAllocationCreateInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VmaAllocationCreateInfo | |
| public static VmaAllocationCreateInfo. | |
| public int | |
| public VmaAllocationCreateInfo | |
| public static VmaAllocationCreateInfo | |
| public static VmaAllocationCreateInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VmaAllocationCreateInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaAllocationCreateInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VmaAllocationCreateInfo | |
| public static VmaAllocationCreateInfo | |
| public static VmaAllocationCreateInfo. | |
| public static VmaAllocationCreateInfo. | |
| public int | memoryTypeBits()
bitmask containing one bit set for every memory type acceptable for this allocation. |
| public VmaAllocationCreateInfo | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static float | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public long | pool()
pool that this allocation should be created in. Leave |
| public VmaAllocationCreateInfo | |
| public int | |
| public VmaAllocationCreateInfo | |
| public float | priority()
A floating-point value between 0 and 1, indicating the priority of the allocation relative to other memory allocations. |
| public VmaAllocationCreateInfo | |
| public long | pUserData()
custom general-purpose pointer that will be stored in |
| public VmaAllocationCreateInfo | |
| public int | |
| public VmaAllocationCreateInfo | |
| 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. |
| public VmaAllocationCreateInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VmaAllocationCreateInfo |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| MEMORYTYPEBITS | back to summary |
|---|---|
| public static final int MEMORYTYPEBITS The struct member offsets. | |
| POOL | back to summary |
|---|---|
| public static final int POOL The struct member offsets. | |
| PREFERREDFLAGS | back to summary |
|---|---|
| public static final int PREFERREDFLAGS The struct member offsets. | |
| PRIORITY | back to summary |
|---|---|
| public static final int PRIORITY The struct member offsets. | |
| PUSERDATA | back to summary |
|---|---|
| public static final int PUSERDATA The struct member offsets. | |
| REQUIREDFLAGS | back to summary |
|---|---|
| public static final int REQUIREDFLAGS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| USAGE | back to summary |
|---|---|
| public static final int USAGE The struct member offsets. | |
| VmaAllocationCreateInfo | back to summary |
|---|---|
| protected VmaAllocationCreateInfo(long address, ByteBuffer container) | |
| VmaAllocationCreateInfo | back to summary |
|---|---|
| public VmaAllocationCreateInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VmaAllocationCreateInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaAllocationCreateInfo calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocationCreateInfo callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocationCreateInfo callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VmaAllocationCreateInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VmaAllocationCreateInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static VmaAllocationCreateInfo create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Returns a new
| |
| create | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VmaAllocationCreateInfo createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Like
| |
| flags | back to summary |
|---|---|
| public VmaAllocationCreateInfo flags(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VmaAllocationCreateInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaAllocationCreateInfo malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocationCreateInfo mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocationCreateInfo mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocationCreateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| memoryTypeBits | back to summary |
|---|---|
| public int memoryTypeBits() bitmask containing one bit set for every memory type acceptable for this allocation. Value 0 is equivalent to
| |
| memoryTypeBits | back to summary |
|---|---|
| public VmaAllocationCreateInfo memoryTypeBits(int value) Sets the specified value to the | |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, int value) Unsafe version of | |
| nmemoryTypeBits | back to summary |
|---|---|
| public static int nmemoryTypeBits(long struct) Unsafe version of | |
| nmemoryTypeBits | back to summary |
|---|---|
| public static void nmemoryTypeBits(long struct, int value) Unsafe version of | |
| npool | back to summary |
|---|---|
| public static long npool(long struct) Unsafe version of | |
| npool | back to summary |
|---|---|
| public static void npool(long struct, long value) Unsafe version of | |
| npreferredFlags | back to summary |
|---|---|
| public static int npreferredFlags(long struct) Unsafe version of | |
| npreferredFlags | back to summary |
|---|---|
| public static void npreferredFlags(long struct, int value) Unsafe version of | |
| npriority | back to summary |
|---|---|
| public static float npriority(long struct) Unsafe version of | |
| npriority | back to summary |
|---|---|
| public static void npriority(long struct, float value) Unsafe version of | |
| npUserData | back to summary |
|---|---|
| public static long npUserData(long struct) Unsafe version of | |
| npUserData | back to summary |
|---|---|
| public static void npUserData(long struct, long value) Unsafe version of | |
| nrequiredFlags | back to summary |
|---|---|
| public static int nrequiredFlags(long struct) Unsafe version of | |
| nrequiredFlags | back to summary |
|---|---|
| public static void nrequiredFlags(long struct, int value) Unsafe version of | |
| nusage | back to summary |
|---|---|
| public static int nusage(long struct) Unsafe version of | |
| nusage | back to summary |
|---|---|
| public static void nusage(long struct, int value) Unsafe version of | |
| pool | back to summary |
|---|---|
| public long pool() pool that this allocation should be created in. Leave
| |
| pool | back to summary |
|---|---|
| public VmaAllocationCreateInfo pool(long value) Sets the specified value to the | |
| preferredFlags | back to summary |
|---|---|
| public int preferredFlags() flags that preferably should be set in a memory type chosen for an allocation. Set to 0 if no additional flags are preferred. If
| |
| preferredFlags | back to summary |
|---|---|
| public VmaAllocationCreateInfo preferredFlags(int value) Sets the specified value to the | |
| priority | back to summary |
|---|---|
| public float priority() A floating-point value between 0 and 1, indicating the priority of the allocation relative to other memory allocations. It is used only when | |
| priority | back to summary |
|---|---|
| public VmaAllocationCreateInfo priority(float value) Sets the specified value to the | |
| pUserData | back to summary |
|---|---|
| public long pUserData() custom general-purpose pointer that will be stored in If
| |
| pUserData | back to summary |
|---|---|
| public VmaAllocationCreateInfo pUserData(long value) Sets the specified value to the | |
| requiredFlags | back to summary |
|---|---|
| public int requiredFlags() flags that must be set in a Memory Type chosen for an allocation. Leave 0 if you specify memory requirements in other way. If
| |
| requiredFlags | back to summary |
|---|---|
| public VmaAllocationCreateInfo requiredFlags(int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| public VmaAllocationCreateInfo set(VmaAllocationCreateInfo src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| usage | back to summary | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public int usage() intended usage of memory. You can leave
| |||||||||||
| usage | back to summary |
|---|---|
| public VmaAllocationCreateInfo usage(int value) Sets the specified value to the | |
VmaAllocationCreateInfo structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VmaAllocationCreateInfo |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VmaAllocationCreateInfo. | |
| protected VmaAllocationCreateInfo | |
| public int | |
| public VmaAllocationCreateInfo. | memoryTypeBits(int value)
Sets the specified value to the |
| public long | |
| public VmaAllocationCreateInfo. | |
| public int | |
| public VmaAllocationCreateInfo. | preferredFlags(int value)
Sets the specified value to the |
| public float | |
| public VmaAllocationCreateInfo. | |
| public long | |
| public VmaAllocationCreateInfo. | |
| public int | |
| public VmaAllocationCreateInfo. | requiredFlags(int value)
Sets the specified value to the |
| protected VmaAllocationCreateInfo. | |
| public int | |
| public VmaAllocationCreateInfo. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VmaAllocationCreateInfo ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| flags | back to summary |
|---|---|
public int flags()
| |
| flags | back to summary |
|---|---|
| public VmaAllocationCreateInfo. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VmaAllocationCreateInfo getElementFactory() Implements abstract org.
| |
| memoryTypeBits | back to summary |
|---|---|
public int memoryTypeBits()
| |
| memoryTypeBits | back to summary |
|---|---|
| public VmaAllocationCreateInfo. Sets the specified value to the | |
| pool | back to summary |
|---|---|
public long pool()
| |
| pool | back to summary |
|---|---|
| public VmaAllocationCreateInfo. Sets the specified value to the | |
| preferredFlags | back to summary |
|---|---|
public int preferredFlags()
| |
| preferredFlags | back to summary |
|---|---|
| public VmaAllocationCreateInfo. Sets the specified value to the | |
| priority | back to summary |
|---|---|
public float priority()
| |
| priority | back to summary |
|---|---|
| public VmaAllocationCreateInfo. Sets the specified value to the | |
| pUserData | back to summary |
|---|---|
public long pUserData()
| |
| pUserData | back to summary |
|---|---|
| public VmaAllocationCreateInfo. Sets the specified value to the | |
| requiredFlags | back to summary |
|---|---|
public int requiredFlags()
| |
| requiredFlags | back to summary |
|---|---|
| public VmaAllocationCreateInfo. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VmaAllocationCreateInfo. Implements abstract org.
| |
| usage | back to summary |
|---|---|
public int usage()
| |
| usage | back to summary |
|---|---|
| public VmaAllocationCreateInfo. Sets the specified value to the | |