VirtualAllocate.
struct VmaVirtualAllocationCreateInfo {
VkDeviceSize size;
VkDeviceSize alignment;
VmaVirtualAllocationCreateFlags flags;
void * pUserData;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VmaVirtualAllocationCreateInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNMENT
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
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 | VmaVirtualAllocationCreateInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VmaVirtualAllocationCreateInfo | |
| public static VmaVirtualAllocationCreateInfo | |
| public static VmaVirtualAllocationCreateInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VmaVirtualAllocationCreateInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaVirtualAllocationCreateInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VmaVirtualAllocationCreateInfo | 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 VmaVirtualAllocationCreateInfo | |
| public static VmaVirtualAllocationCreateInfo | create(long address)
Returns a new |
| public static VmaVirtualAllocationCreateInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VmaVirtualAllocationCreateInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VmaVirtualAllocationCreateInfo | |
| public static VmaVirtualAllocationCreateInfo. | |
| public int | |
| public VmaVirtualAllocationCreateInfo | |
| public static VmaVirtualAllocationCreateInfo | |
| public static VmaVirtualAllocationCreateInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VmaVirtualAllocationCreateInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaVirtualAllocationCreateInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public VmaVirtualAllocationCreateInfo | |
| public VmaVirtualAllocationCreateInfo | set(long size, long alignment, int flags, long pUserData)
Initializes this struct with the specified values. |
| public VmaVirtualAllocationCreateInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public long | |
| public VmaVirtualAllocationCreateInfo | |
| public int |
| ALIGNMENT | back to summary |
|---|---|
| public static final int ALIGNMENT The struct member offsets. | |
| 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. | |
| 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. | |
| VmaVirtualAllocationCreateInfo | back to summary |
|---|---|
| protected VmaVirtualAllocationCreateInfo(long address, ByteBuffer container) | |
| VmaVirtualAllocationCreateInfo | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| alignment | back to summary |
|---|---|
| public long alignment() required alignment of the allocation. Optional. Must be power of two. Special value 0 has the same meaning as 1 - means no special alignment is required, so allocation can start at any offset.
| |
| alignment | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo alignment(long value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo. Returns a new
| |
| create | back to summary |
|---|---|
| protected VmaVirtualAllocationCreateInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo. Returns a new
| |
| create | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo. Like
| |
| flags | back to summary |
|---|---|
| public int flags() use combination of
| |
| flags | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo flags(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaVirtualAllocationCreateInfo. Returns a new
| |
| nalignment | back to summary |
|---|---|
| public static long nalignment(long struct) Unsafe version of | |
| nalignment | back to summary |
|---|---|
| public static void nalignment(long struct, long value) Unsafe version of | |
| 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 | |
| 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 | |
| nsize | back to summary |
|---|---|
| public static long nsize(long struct) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static void nsize(long struct, long value) Unsafe version of | |
| pUserData | back to summary |
|---|---|
| public long pUserData() custom pointer to be associated with the allocation. Optional. It can be any value and can be used for user-defined purposes. It can be fetched or changed later.
| |
| pUserData | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo pUserData(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo set(long size, long alignment, int flags, long pUserData) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo set(VmaVirtualAllocationCreateInfo src) Copies the specified struct data to this struct.
| |
| size | back to summary |
|---|---|
| public long size() size of the allocation. Cannot be zero.
| |
| size | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo size(long value) Sets the specified value to the | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VmaVirtualAllocationCreateInfo structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VmaVirtualAllocationCreateInfo |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VmaVirtualAllocationCreateInfo. | alignment(long value)
Sets the specified value to the |
| public int | |
| public VmaVirtualAllocationCreateInfo. | |
| protected VmaVirtualAllocationCreateInfo | |
| public long | |
| public VmaVirtualAllocationCreateInfo. | pUserData(long value)
Sets the specified value to the |
| protected VmaVirtualAllocationCreateInfo. | |
| public long | |
| public VmaVirtualAllocationCreateInfo. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VmaVirtualAllocationCreateInfo 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) | |
| alignment | back to summary |
|---|---|
public long alignment()
| |
| alignment | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo. Sets the specified value to the | |
| flags | back to summary |
|---|---|
public int flags()
| |
| flags | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VmaVirtualAllocationCreateInfo getElementFactory() Implements abstract org.
| |
| pUserData | back to summary |
|---|---|
public long pUserData()
| |
| pUserData | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VmaVirtualAllocationCreateInfo. Implements abstract org.
| |
| size | back to summary |
|---|---|
public long size()
| |
| size | back to summary |
|---|---|
| public VmaVirtualAllocationCreateInfo. Sets the specified value to the | |