public class VkDedicatedAllocationMemoryAllocateInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
image and buffer must be NULL_HANDLEimage is not NULL_HANDLE, the image must have been created with VkDedicatedAllocationImageCreateInfoNV::dedicatedAllocation equal to TRUEbuffer is not NULL_HANDLE, the buffer must have been created with VkDedicatedAllocationBufferCreateInfoNV::dedicatedAllocation equal to TRUEimage is not NULL_HANDLE, VkMemoryAllocateInfo::allocationSize must equal the VkMemoryRequirements::size of the imagebuffer is not NULL_HANDLE, VkMemoryAllocateInfo::allocationSize must equal the VkMemoryRequirements::size of the bufferimage is not NULL_HANDLE and VkMemoryAllocateInfo defines a memory import operation, 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, the memory being imported must also be a dedicated buffer allocation and buffer must be identical to the buffer associated with the imported memory.sType must be STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NVimage 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 VkDedicatedAllocationMemoryAllocateInfoNV {
VkStructureType sType;
void const * pNext;
VkImage image;
VkBuffer buffer;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer
An array of
VkDedicatedAllocationMemoryAllocateInfoNV 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 |
|---|
VkDedicatedAllocationMemoryAllocateInfoNV(java.nio.ByteBuffer container)
Creates a
VkDedicatedAllocationMemoryAllocateInfoNV 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. |
VkDedicatedAllocationMemoryAllocateInfoNV |
buffer(long value)
Sets the specified value to the
buffer field. |
static VkDedicatedAllocationMemoryAllocateInfoNV |
calloc()
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated with memCalloc. |
static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated with memCalloc. |
static VkDedicatedAllocationMemoryAllocateInfoNV |
callocStack()
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDedicatedAllocationMemoryAllocateInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDedicatedAllocationMemoryAllocateInfoNV |
create()
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated with BufferUtils. |
static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer |
create(int capacity)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated with BufferUtils. |
static VkDedicatedAllocationMemoryAllocateInfoNV |
create(long address)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV instance for the specified memory address. |
static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance at the specified memory. |
static VkDedicatedAllocationMemoryAllocateInfoNV |
createSafe(long address)
|
static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer |
createSafe(long address,
int capacity)
|
long |
image()
Returns the value of the
image field. |
VkDedicatedAllocationMemoryAllocateInfoNV |
image(long value)
Sets the specified value to the
image field. |
static VkDedicatedAllocationMemoryAllocateInfoNV |
malloc()
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated with memAlloc. |
static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated with memAlloc. |
static VkDedicatedAllocationMemoryAllocateInfoNV |
mallocStack()
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated on the thread-local MemoryStack. |
static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkDedicatedAllocationMemoryAllocateInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDedicatedAllocationMemoryAllocateInfoNV 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. |
VkDedicatedAllocationMemoryAllocateInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDedicatedAllocationMemoryAllocateInfoNV |
set(int sType,
long pNext,
long image,
long buffer)
Initializes this struct with the specified values.
|
VkDedicatedAllocationMemoryAllocateInfoNV |
set(VkDedicatedAllocationMemoryAllocateInfoNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDedicatedAllocationMemoryAllocateInfoNV |
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 VkDedicatedAllocationMemoryAllocateInfoNV(java.nio.ByteBuffer container)
VkDedicatedAllocationMemoryAllocateInfoNV 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 VkDedicatedAllocationMemoryAllocateInfoNV sType(int value)
sType field.public VkDedicatedAllocationMemoryAllocateInfoNV pNext(long value)
pNext field.public VkDedicatedAllocationMemoryAllocateInfoNV image(long value)
image field.public VkDedicatedAllocationMemoryAllocateInfoNV buffer(long value)
buffer field.public VkDedicatedAllocationMemoryAllocateInfoNV set(int sType, long pNext, long image, long buffer)
public VkDedicatedAllocationMemoryAllocateInfoNV set(VkDedicatedAllocationMemoryAllocateInfoNV src)
src - the source structpublic static VkDedicatedAllocationMemoryAllocateInfoNV malloc()
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkDedicatedAllocationMemoryAllocateInfoNV calloc()
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkDedicatedAllocationMemoryAllocateInfoNV create()
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated with BufferUtils.public static VkDedicatedAllocationMemoryAllocateInfoNV create(long address)
VkDedicatedAllocationMemoryAllocateInfoNV instance for the specified memory address.@Nullable public static VkDedicatedAllocationMemoryAllocateInfoNV createSafe(long address)
public static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer malloc(int capacity)
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer calloc(int capacity)
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer create(int capacity)
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer create(long address, int capacity)
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer createSafe(long address, int capacity)
public static VkDedicatedAllocationMemoryAllocateInfoNV mallocStack()
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated on the thread-local MemoryStack.public static VkDedicatedAllocationMemoryAllocateInfoNV callocStack()
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDedicatedAllocationMemoryAllocateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDedicatedAllocationMemoryAllocateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkDedicatedAllocationMemoryAllocateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer mallocStack(int capacity)
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer callocStack(int capacity)
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDedicatedAllocationMemoryAllocateInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDedicatedAllocationMemoryAllocateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDedicatedAllocationMemoryAllocateInfoNV.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.