VmaAllocation objects, that can be retrieved using function GetAllocationInfo.
struct VmaAllocationInfo {
uint32_t memoryType;
VkDeviceMemory deviceMemory;
VkDeviceSize offset;
VkDeviceSize size;
void * pMappedData;
void * pUserData;
char const * pName;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VmaAllocationInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DEVICEMEMORY
The struct member offsets. |
| public static final int | MEMORYTYPE
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | PMAPPEDDATA
The struct member offsets. |
| public static final int | PNAME
The struct member offsets. |
| public static final int | PUSERDATA
The struct member offsets. |
| public static final int | SIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VmaAllocationInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VmaAllocationInfo | |
| public static VmaAllocationInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VmaAllocationInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaAllocationInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VmaAllocationInfo | |
| public static VmaAllocationInfo | |
| public static VmaAllocationInfo. | |
| public static VmaAllocationInfo. | |
| protected VmaAllocationInfo | 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 VmaAllocationInfo | |
| public static VmaAllocationInfo | |
| public static VmaAllocationInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VmaAllocationInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VmaAllocationInfo | |
| public static VmaAllocationInfo. | |
| public long | |
| public static VmaAllocationInfo | |
| public static VmaAllocationInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VmaAllocationInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaAllocationInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VmaAllocationInfo | |
| public static VmaAllocationInfo | |
| public static VmaAllocationInfo. | |
| public static VmaAllocationInfo. | |
| public int | |
| public static long | |
| public static int | |
| public static long | |
| public static long | |
| public static ByteBuffer | |
| public static String | |
| public static long | |
| public static long | |
| public long | |
| public long | |
| public ByteBuffer | |
| public String | |
| public long | pUserData()
custom general-purpose pointer that was passed as |
| public long | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DEVICEMEMORY | back to summary |
|---|---|
| public static final int DEVICEMEMORY The struct member offsets. | |
| MEMORYTYPE | back to summary |
|---|---|
| public static final int MEMORYTYPE The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| PMAPPEDDATA | back to summary |
|---|---|
| public static final int PMAPPEDDATA The struct member offsets. | |
| PNAME | back to summary |
|---|---|
| public static final int PNAME The struct member offsets. | |
| PUSERDATA | back to summary |
|---|---|
| public static final int PUSERDATA The struct member offsets. | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VmaAllocationInfo | back to summary |
|---|---|
| protected VmaAllocationInfo(long address, ByteBuffer container) | |
| VmaAllocationInfo | back to summary |
|---|---|
| public VmaAllocationInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VmaAllocationInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VmaAllocationInfo. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaAllocationInfo calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaAllocationInfo. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocationInfo callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocationInfo callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocationInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocationInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VmaAllocationInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VmaAllocationInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static VmaAllocationInfo create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VmaAllocationInfo. Returns a new
| |
| create | back to summary |
|---|---|
| public static VmaAllocationInfo. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VmaAllocationInfo createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VmaAllocationInfo. Like
| |
| deviceMemory | back to summary |
|---|---|
| public long deviceMemory() handle to Vulkan memory object. Same memory object can be shared by multiple allocations. It can change after the allocation is moved during defragmentation.
| |
| malloc | back to summary |
|---|---|
| public static VmaAllocationInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VmaAllocationInfo. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaAllocationInfo malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaAllocationInfo. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocationInfo mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocationInfo mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocationInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocationInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| memoryType | back to summary |
|---|---|
| public int memoryType() memory type index that this allocation was allocated from. It never changes.
| |
| ndeviceMemory | back to summary |
|---|---|
| public static long ndeviceMemory(long struct) Unsafe version of | |
| nmemoryType | back to summary |
|---|---|
| public static int nmemoryType(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static long noffset(long struct) Unsafe version of | |
| npMappedData | back to summary |
|---|---|
| public static long npMappedData(long struct) Unsafe version of | |
| npName | back to summary |
|---|---|
| public static ByteBuffer npName(long struct) Unsafe version of
| |
| npNameString | back to summary |
|---|---|
| public static String npNameString(long struct) Unsafe version of
| |
| npUserData | back to summary |
|---|---|
| public static long npUserData(long struct) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static long nsize(long struct) Unsafe version of | |
| offset | back to summary |
|---|---|
| public long offset() offset in You usually don't need to use this offset. If you create a buffer or an image together with the allocation using e.g. function It can change after the allocation is moved during defragmentation.
| |
| pMappedData | back to summary |
|---|---|
| public long pMappedData() pointer to the beginning of this allocation as mapped data. If the allocation hasn't been mapped using It can change after call to
| |
| pName | back to summary |
|---|---|
| public ByteBuffer pName() Custom allocation name that was set with It can change after call to Another way to set custom name is to pass it in
| |
| pNameString | back to summary |
|---|---|
| public String pNameString() Custom allocation name that was set with It can change after call to Another way to set custom name is to pass it in
| |
| pUserData | back to summary |
|---|---|
| public long pUserData() custom general-purpose pointer that was passed as It can change after call to
| |
| size | back to summary |
|---|---|
| public long size() size of this allocation, in bytes. It never changes. NoteAllocation size returned in this variable may be greater than the size requested for the resource e.g. as
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VmaAllocationInfo structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VmaAllocationInfo |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| protected VmaAllocationInfo | |
| public int | |
| public long | |
| public long | |
| public ByteBuffer | Returns: aByteBuffer view of the null-terminated string pointed to by the VmaAllocationInfo#pName field.
|
| public String | |
| public long | |
| protected VmaAllocationInfo. | |
| public long |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VmaAllocationInfo 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) | |
| deviceMemory | back to summary |
|---|---|
public long deviceMemory()
| |
| getElementFactory | back to summary |
|---|---|
| protected VmaAllocationInfo getElementFactory() Implements abstract org.
| |
| memoryType | back to summary |
|---|---|
public int memoryType()
| |
| offset | back to summary |
|---|---|
public long offset()
| |
| pMappedData | back to summary |
|---|---|
public long pMappedData()
| |
| pName | back to summary |
|---|---|
public ByteBuffer pName()
| |
| pNameString | back to summary |
|---|---|
public String pNameString()
| |
| pUserData | back to summary |
|---|---|
public long pUserData()
| |
| self | back to summary |
|---|---|
| protected VmaAllocationInfo. Implements abstract org.
| |
| size | back to summary |
|---|---|
public long size()
| |