public class VkMemoryDedicatedAllocateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
image and buffer must be NULL_HANDLEimage is not NULL_HANDLE, 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, 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 memory.buffer 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 memory.image 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 memory.buffer 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 memory.image 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 VkDevicesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.image – NULL_HANDLE or a handle of an image which this memory will be bound to.buffer – NULL_HANDLE or a handle of a buffer which this memory will be bound to.
struct VkMemoryDedicatedAllocateInfo {
VkStructureType sType;
void const * pNext;
VkImage image;
VkBuffer buffer;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMemoryDedicatedAllocateInfo.Buffer
An array of
VkMemoryDedicatedAllocateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFER
The struct member offsets.
|
static int |
IMAGE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkMemoryDedicatedAllocateInfo(java.nio.ByteBuffer container)
Creates a
VkMemoryDedicatedAllocateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
buffer()
Returns the value of the
buffer field. |
VkMemoryDedicatedAllocateInfo |
buffer(long value)
Sets the specified value to the
buffer field. |
static VkMemoryDedicatedAllocateInfo |
calloc()
Returns a new
VkMemoryDedicatedAllocateInfo instance allocated with memCalloc. |
static VkMemoryDedicatedAllocateInfo.Buffer |
calloc(int capacity)
Returns a new
VkMemoryDedicatedAllocateInfo.Buffer instance allocated with memCalloc. |
static VkMemoryDedicatedAllocateInfo |
callocStack()
Returns a new
VkMemoryDedicatedAllocateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryDedicatedAllocateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkMemoryDedicatedAllocateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryDedicatedAllocateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryDedicatedAllocateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryDedicatedAllocateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryDedicatedAllocateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryDedicatedAllocateInfo |
create()
Returns a new
VkMemoryDedicatedAllocateInfo instance allocated with BufferUtils. |
static VkMemoryDedicatedAllocateInfo.Buffer |
create(int capacity)
Returns a new
VkMemoryDedicatedAllocateInfo.Buffer instance allocated with BufferUtils. |
static VkMemoryDedicatedAllocateInfo |
create(long address)
Returns a new
VkMemoryDedicatedAllocateInfo instance for the specified memory address. |
static VkMemoryDedicatedAllocateInfo.Buffer |
create(long address,
int capacity)
Create a
VkMemoryDedicatedAllocateInfo.Buffer instance at the specified memory. |
static VkMemoryDedicatedAllocateInfo |
createSafe(long address)
|
static VkMemoryDedicatedAllocateInfo.Buffer |
createSafe(long address,
int capacity)
|
long |
image()
Returns the value of the
image field. |
VkMemoryDedicatedAllocateInfo |
image(long value)
Sets the specified value to the
image field. |
static VkMemoryDedicatedAllocateInfo |
malloc()
Returns a new
VkMemoryDedicatedAllocateInfo instance allocated with memAlloc. |
static VkMemoryDedicatedAllocateInfo.Buffer |
malloc(int capacity)
Returns a new
VkMemoryDedicatedAllocateInfo.Buffer instance allocated with memAlloc. |
static VkMemoryDedicatedAllocateInfo |
mallocStack()
Returns a new
VkMemoryDedicatedAllocateInfo instance allocated on the thread-local MemoryStack. |
static VkMemoryDedicatedAllocateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkMemoryDedicatedAllocateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkMemoryDedicatedAllocateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryDedicatedAllocateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkMemoryDedicatedAllocateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryDedicatedAllocateInfo instance allocated on the specified MemoryStack. |
static long |
nbuffer(long struct)
Unsafe version of
buffer(). |
static void |
nbuffer(long struct,
long value)
Unsafe version of
buffer. |
static long |
nimage(long struct)
Unsafe version of
image(). |
static void |
nimage(long struct,
long value)
Unsafe version of
image. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkMemoryDedicatedAllocateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkMemoryDedicatedAllocateInfo |
set(int sType,
long pNext,
long image,
long buffer)
Initializes this struct with the specified values.
|
VkMemoryDedicatedAllocateInfo |
set(VkMemoryDedicatedAllocateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkMemoryDedicatedAllocateInfo |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int IMAGE
public static final int BUFFER
public VkMemoryDedicatedAllocateInfo(java.nio.ByteBuffer container)
VkMemoryDedicatedAllocateInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long image()
image field.public long buffer()
buffer field.public VkMemoryDedicatedAllocateInfo sType(int value)
sType field.public VkMemoryDedicatedAllocateInfo pNext(long value)
pNext field.public VkMemoryDedicatedAllocateInfo image(long value)
image field.public VkMemoryDedicatedAllocateInfo buffer(long value)
buffer field.public VkMemoryDedicatedAllocateInfo set(int sType, long pNext, long image, long buffer)
public VkMemoryDedicatedAllocateInfo set(VkMemoryDedicatedAllocateInfo src)
src - the source structpublic static VkMemoryDedicatedAllocateInfo malloc()
VkMemoryDedicatedAllocateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkMemoryDedicatedAllocateInfo calloc()
VkMemoryDedicatedAllocateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkMemoryDedicatedAllocateInfo create()
VkMemoryDedicatedAllocateInfo instance allocated with BufferUtils.public static VkMemoryDedicatedAllocateInfo create(long address)
VkMemoryDedicatedAllocateInfo instance for the specified memory address.@Nullable public static VkMemoryDedicatedAllocateInfo createSafe(long address)
public static VkMemoryDedicatedAllocateInfo.Buffer malloc(int capacity)
VkMemoryDedicatedAllocateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryDedicatedAllocateInfo.Buffer calloc(int capacity)
VkMemoryDedicatedAllocateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryDedicatedAllocateInfo.Buffer create(int capacity)
VkMemoryDedicatedAllocateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMemoryDedicatedAllocateInfo.Buffer create(long address, int capacity)
VkMemoryDedicatedAllocateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMemoryDedicatedAllocateInfo.Buffer createSafe(long address, int capacity)
public static VkMemoryDedicatedAllocateInfo mallocStack()
VkMemoryDedicatedAllocateInfo instance allocated on the thread-local MemoryStack.public static VkMemoryDedicatedAllocateInfo callocStack()
VkMemoryDedicatedAllocateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMemoryDedicatedAllocateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryDedicatedAllocateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMemoryDedicatedAllocateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryDedicatedAllocateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMemoryDedicatedAllocateInfo.Buffer mallocStack(int capacity)
VkMemoryDedicatedAllocateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMemoryDedicatedAllocateInfo.Buffer callocStack(int capacity)
VkMemoryDedicatedAllocateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMemoryDedicatedAllocateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryDedicatedAllocateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMemoryDedicatedAllocateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryDedicatedAllocateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long nimage(long struct)
image().public static long nbuffer(long struct)
buffer().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nimage(long struct,
long value)
image.public static void nbuffer(long struct,
long value)
buffer.Copyright LWJGL. All Rights Reserved. License terms.