Using a dedicated allocation for color and depth/stencil attachments or other large images may improve performance on some devices.
dedicatedAllocation is TRUE, VkImageCreateInfo::flags must not include IMAGE_CREATE_SPARSE_BINDING_BIT, IMAGE_CREATE_SPARSE_RESIDENCY_BIT, or IMAGE_CREATE_SPARSE_ALIASED_BITsType must be STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV
struct VkDedicatedAllocationImageCreateInfoNV {
VkStructureType sType;
void const * pNext;
VkBool32 dedicatedAllocation;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkDedicatedAllocationImageCreateInfoNV.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DEDICATEDALLOCATION
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkDedicatedAllocationImageCreateInfoNV(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV | |
| public static VkDedicatedAllocationImageCreateInfoNV. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkDedicatedAllocationImageCreateInfoNV | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDedicatedAllocationImageCreateInfoNV. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDedicatedAllocationImageCreateInfoNV | |
| public static VkDedicatedAllocationImageCreateInfoNV | |
| public static VkDedicatedAllocationImageCreateInfoNV. | |
| public static VkDedicatedAllocationImageCreateInfoNV. | |
| protected VkDedicatedAllocationImageCreateInfoNV | 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 VkDedicatedAllocationImageCreateInfoNV | |
| public static VkDedicatedAllocationImageCreateInfoNV | create(long address)
Returns a new |
| public static VkDedicatedAllocationImageCreateInfoNV. | create(int
the buffer capacity capacity)Returns a new |
| public static VkDedicatedAllocationImageCreateInfoNV. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkDedicatedAllocationImageCreateInfoNV | |
| public static VkDedicatedAllocationImageCreateInfoNV. | |
| public boolean | |
| public VkDedicatedAllocationImageCreateInfoNV | |
| public static VkDedicatedAllocationImageCreateInfoNV | |
| public static VkDedicatedAllocationImageCreateInfoNV. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkDedicatedAllocationImageCreateInfoNV | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDedicatedAllocationImageCreateInfoNV. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDedicatedAllocationImageCreateInfoNV | |
| public static VkDedicatedAllocationImageCreateInfoNV | |
| public static VkDedicatedAllocationImageCreateInfoNV. | |
| public static VkDedicatedAllocationImageCreateInfoNV. | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkDedicatedAllocationImageCreateInfoNV | |
| public VkDedicatedAllocationImageCreateInfoNV | set(int sType, long pNext, boolean dedicatedAllocation)
Initializes this struct with the specified values. |
| public VkDedicatedAllocationImageCreateInfoNV | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkDedicatedAllocationImageCreateInfoNV | |
| public VkDedicatedAllocationImageCreateInfoNV | sType$Default()
Sets the |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DEDICATEDALLOCATION | back to summary |
|---|---|
| public static final int DEDICATEDALLOCATION The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| VkDedicatedAllocationImageCreateInfoNV | back to summary |
|---|---|
| protected VkDedicatedAllocationImageCreateInfoNV(long address, ByteBuffer container) | |
| VkDedicatedAllocationImageCreateInfoNV | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkDedicatedAllocationImageCreateInfoNV create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Like
| |
| dedicatedAllocation | back to summary |
|---|---|
| public boolean dedicatedAllocation() specifies whether the image will have a dedicated allocation bound to it.
| |
| dedicatedAllocation | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV dedicatedAllocation(boolean value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDedicatedAllocationImageCreateInfoNV. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ndedicatedAllocation | back to summary |
|---|---|
| public static int ndedicatedAllocation(long struct) Unsafe version of | |
| ndedicatedAllocation | back to summary |
|---|---|
| public static void ndedicatedAllocation(long struct, int value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV pNext(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV set(int sType, long pNext, boolean dedicatedAllocation) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV set(VkDedicatedAllocationImageCreateInfoNV src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV sType$Default() Sets the | |
VkDedicatedAllocationImageCreateInfoNV structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkDedicatedAllocationImageCreateInfoNV |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: the value of theVkDedicatedAllocationImageCreateInfoNV#dedicatedAllocation field.
|
| public VkDedicatedAllocationImageCreateInfoNV. | dedicatedAllocation(boolean value)
Sets the specified value to the |
| protected VkDedicatedAllocationImageCreateInfoNV | |
| public long | |
| public VkDedicatedAllocationImageCreateInfoNV. | pNext(long value)
Sets the specified value to the |
| protected VkDedicatedAllocationImageCreateInfoNV. | |
| public int | |
| public VkDedicatedAllocationImageCreateInfoNV. | |
| public VkDedicatedAllocationImageCreateInfoNV. | sType$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkDedicatedAllocationImageCreateInfoNV 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) | |
| dedicatedAllocation | back to summary |
|---|---|
public boolean dedicatedAllocation()
| |
| dedicatedAllocation | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkDedicatedAllocationImageCreateInfoNV getElementFactory() Implements abstract org.
| |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkDedicatedAllocationImageCreateInfoNV. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkDedicatedAllocationImageCreateInfoNV. Sets the | |