image and buffer must be NULL_HANDLEimage is not NULL_HANDLE and the memory is not an imported Android Hardware Buffer or an imported QNX Screen buffer, VkMemoryAllocateInfo::allocationSize must equal the VkMemoryRequirements::size of the imageimage is not NULL_HANDLE, image must have been created without IMAGE_CREATE_SPARSE_BINDING_BIT set in VkImageCreateInfo::flagsbuffer is not NULL_HANDLE and the memory is not an imported Android Hardware Buffer or an imported QNX Screen buffer, VkMemoryAllocateInfo::allocationSize must equal the VkMemoryRequirements::size of the bufferbuffer is not NULL_HANDLE, buffer must have been created without BUFFER_CREATE_SPARSE_BINDING_BIT set in VkBufferCreateInfo::flagsimage is not NULL_HANDLE and VkMemoryAllocateInfo defines a memory import operation with handle type EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT, EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT, EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT, EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT, EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT, or EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT, and the external handle was created by the Vulkan API, then the memory being imported must also be a dedicated image allocation and image must be identical to the image associated with the imported memorybuffer is not NULL_HANDLE and VkMemoryAllocateInfo defines a memory import operation with handle type EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT, EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT, EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT, EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT, EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT, or EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT, and the external handle was created by the Vulkan API, then the memory being imported must also be a dedicated buffer allocation and buffer must be identical to the buffer associated with the imported memoryimage is not NULL_HANDLE and VkMemoryAllocateInfo defines a memory import operation with handle type EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT, the memory being imported must also be a dedicated image allocation and image must be identical to the image associated with the imported memorybuffer is not NULL_HANDLE and VkMemoryAllocateInfo defines a memory import operation with handle type EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT, the memory being imported must also be a dedicated buffer allocation and buffer must be identical to the buffer associated with the imported memoryimage is not NULL_HANDLE, image must not have been created with IMAGE_CREATE_DISJOINT_BIT set in VkImageCreateInfo::flagssType must be STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFOimage is not NULL_HANDLE, image must be a valid VkImage handlebuffer is not NULL_HANDLE, buffer must be a valid VkBuffer handlebuffer, and image that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDevice
struct VkMemoryDedicatedAllocateInfo {
VkStructureType sType;
void const * pNext;
VkImage image;
VkBuffer buffer;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkMemoryDedicatedAllocateInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BUFFER
The struct member offsets. |
| public static final int | IMAGE
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 | VkMemoryDedicatedAllocateInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkMemoryDedicatedAllocateInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkMemoryDedicatedAllocateInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo. | |
| public static VkMemoryDedicatedAllocateInfo. | |
| protected VkMemoryDedicatedAllocateInfo | 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 VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo | create(long address)
Returns a new |
| public static VkMemoryDedicatedAllocateInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VkMemoryDedicatedAllocateInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo. | |
| public long | |
| public VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkMemoryDedicatedAllocateInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkMemoryDedicatedAllocateInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo | |
| public static VkMemoryDedicatedAllocateInfo. | |
| public static VkMemoryDedicatedAllocateInfo. | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkMemoryDedicatedAllocateInfo | |
| public VkMemoryDedicatedAllocateInfo | set(int sType, long pNext, long image, long buffer)
Initializes this struct with the specified values. |
| public VkMemoryDedicatedAllocateInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkMemoryDedicatedAllocateInfo | |
| public VkMemoryDedicatedAllocateInfo |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BUFFER | back to summary |
|---|---|
| public static final int BUFFER The struct member offsets. | |
| IMAGE | back to summary |
|---|---|
| public static final int IMAGE 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. | |
| VkMemoryDedicatedAllocateInfo | back to summary |
|---|---|
| protected VkMemoryDedicatedAllocateInfo(long address, ByteBuffer container) | |
| VkMemoryDedicatedAllocateInfo | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| buffer | back to summary |
|---|---|
| public long buffer()
| |
| buffer | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo buffer(long value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkMemoryDedicatedAllocateInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Like
| |
| image | back to summary |
|---|---|
| public long image()
| |
| image | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo image(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkMemoryDedicatedAllocateInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nbuffer | back to summary |
|---|---|
| public static long nbuffer(long struct) Unsafe version of | |
| nbuffer | back to summary |
|---|---|
| public static void nbuffer(long struct, long value) Unsafe version of | |
| nimage | back to summary |
|---|---|
| public static long nimage(long struct) Unsafe version of | |
| nimage | back to summary |
|---|---|
| public static void nimage(long struct, long 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 VkMemoryDedicatedAllocateInfo pNext(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo set(int sType, long pNext, long image, long buffer) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo set(VkMemoryDedicatedAllocateInfo 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 VkMemoryDedicatedAllocateInfo sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo sType$Default() Sets the | |
VkMemoryDedicatedAllocateInfo structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkMemoryDedicatedAllocateInfo |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VkMemoryDedicatedAllocateInfo. | |
| protected VkMemoryDedicatedAllocateInfo | |
| public long | |
| public VkMemoryDedicatedAllocateInfo. | |
| public long | |
| public VkMemoryDedicatedAllocateInfo. | |
| protected VkMemoryDedicatedAllocateInfo. | |
| public int | |
| public VkMemoryDedicatedAllocateInfo. | |
| public VkMemoryDedicatedAllocateInfo. | sType$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkMemoryDedicatedAllocateInfo 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) | |
| buffer | back to summary |
|---|---|
public long buffer()
| |
| buffer | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkMemoryDedicatedAllocateInfo getElementFactory() Implements abstract org.
| |
| image | back to summary |
|---|---|
public long image()
| |
| image | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkMemoryDedicatedAllocateInfo. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkMemoryDedicatedAllocateInfo. Sets the | |