public class VkDedicatedAllocationImageCreateInfoNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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_NVsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.dedicatedAllocation – specifies whether the image will have a dedicated allocation bound to it.
struct VkDedicatedAllocationImageCreateInfoNV {
VkStructureType sType;
void const * pNext;
VkBool32 dedicatedAllocation;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDedicatedAllocationImageCreateInfoNV.Buffer
An array of
VkDedicatedAllocationImageCreateInfoNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEDICATEDALLOCATION
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 |
|---|
VkDedicatedAllocationImageCreateInfoNV(java.nio.ByteBuffer container)
Creates a
VkDedicatedAllocationImageCreateInfoNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDedicatedAllocationImageCreateInfoNV |
calloc()
Returns a new
VkDedicatedAllocationImageCreateInfoNV instance allocated with memCalloc. |
static VkDedicatedAllocationImageCreateInfoNV.Buffer |
calloc(int capacity)
Returns a new
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated with memCalloc. |
static VkDedicatedAllocationImageCreateInfoNV |
callocStack()
Returns a new
VkDedicatedAllocationImageCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDedicatedAllocationImageCreateInfoNV.Buffer |
callocStack(int capacity)
Returns a new
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDedicatedAllocationImageCreateInfoNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDedicatedAllocationImageCreateInfoNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDedicatedAllocationImageCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDedicatedAllocationImageCreateInfoNV |
create()
Returns a new
VkDedicatedAllocationImageCreateInfoNV instance allocated with BufferUtils. |
static VkDedicatedAllocationImageCreateInfoNV.Buffer |
create(int capacity)
Returns a new
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated with BufferUtils. |
static VkDedicatedAllocationImageCreateInfoNV |
create(long address)
Returns a new
VkDedicatedAllocationImageCreateInfoNV instance for the specified memory address. |
static VkDedicatedAllocationImageCreateInfoNV.Buffer |
create(long address,
int capacity)
Create a
VkDedicatedAllocationImageCreateInfoNV.Buffer instance at the specified memory. |
static VkDedicatedAllocationImageCreateInfoNV |
createSafe(long address)
|
static VkDedicatedAllocationImageCreateInfoNV.Buffer |
createSafe(long address,
int capacity)
|
boolean |
dedicatedAllocation()
Returns the value of the
dedicatedAllocation field. |
VkDedicatedAllocationImageCreateInfoNV |
dedicatedAllocation(boolean value)
Sets the specified value to the
dedicatedAllocation field. |
static VkDedicatedAllocationImageCreateInfoNV |
malloc()
Returns a new
VkDedicatedAllocationImageCreateInfoNV instance allocated with memAlloc. |
static VkDedicatedAllocationImageCreateInfoNV.Buffer |
malloc(int capacity)
Returns a new
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated with memAlloc. |
static VkDedicatedAllocationImageCreateInfoNV |
mallocStack()
Returns a new
VkDedicatedAllocationImageCreateInfoNV instance allocated on the thread-local MemoryStack. |
static VkDedicatedAllocationImageCreateInfoNV.Buffer |
mallocStack(int capacity)
Returns a new
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkDedicatedAllocationImageCreateInfoNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated on the specified MemoryStack. |
static VkDedicatedAllocationImageCreateInfoNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDedicatedAllocationImageCreateInfoNV instance allocated on the specified MemoryStack. |
static int |
ndedicatedAllocation(long struct)
Unsafe version of
dedicatedAllocation(). |
static void |
ndedicatedAllocation(long struct,
int value)
Unsafe version of
dedicatedAllocation. |
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. |
VkDedicatedAllocationImageCreateInfoNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDedicatedAllocationImageCreateInfoNV |
set(int sType,
long pNext,
boolean dedicatedAllocation)
Initializes this struct with the specified values.
|
VkDedicatedAllocationImageCreateInfoNV |
set(VkDedicatedAllocationImageCreateInfoNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDedicatedAllocationImageCreateInfoNV |
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 DEDICATEDALLOCATION
public VkDedicatedAllocationImageCreateInfoNV(java.nio.ByteBuffer container)
VkDedicatedAllocationImageCreateInfoNV 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 boolean dedicatedAllocation()
dedicatedAllocation field.public VkDedicatedAllocationImageCreateInfoNV sType(int value)
sType field.public VkDedicatedAllocationImageCreateInfoNV pNext(long value)
pNext field.public VkDedicatedAllocationImageCreateInfoNV dedicatedAllocation(boolean value)
dedicatedAllocation field.public VkDedicatedAllocationImageCreateInfoNV set(int sType, long pNext, boolean dedicatedAllocation)
public VkDedicatedAllocationImageCreateInfoNV set(VkDedicatedAllocationImageCreateInfoNV src)
src - the source structpublic static VkDedicatedAllocationImageCreateInfoNV malloc()
VkDedicatedAllocationImageCreateInfoNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkDedicatedAllocationImageCreateInfoNV calloc()
VkDedicatedAllocationImageCreateInfoNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkDedicatedAllocationImageCreateInfoNV create()
VkDedicatedAllocationImageCreateInfoNV instance allocated with BufferUtils.public static VkDedicatedAllocationImageCreateInfoNV create(long address)
VkDedicatedAllocationImageCreateInfoNV instance for the specified memory address.@Nullable public static VkDedicatedAllocationImageCreateInfoNV createSafe(long address)
public static VkDedicatedAllocationImageCreateInfoNV.Buffer malloc(int capacity)
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDedicatedAllocationImageCreateInfoNV.Buffer calloc(int capacity)
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDedicatedAllocationImageCreateInfoNV.Buffer create(int capacity)
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDedicatedAllocationImageCreateInfoNV.Buffer create(long address, int capacity)
VkDedicatedAllocationImageCreateInfoNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDedicatedAllocationImageCreateInfoNV.Buffer createSafe(long address, int capacity)
public static VkDedicatedAllocationImageCreateInfoNV mallocStack()
VkDedicatedAllocationImageCreateInfoNV instance allocated on the thread-local MemoryStack.public static VkDedicatedAllocationImageCreateInfoNV callocStack()
VkDedicatedAllocationImageCreateInfoNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDedicatedAllocationImageCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkDedicatedAllocationImageCreateInfoNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDedicatedAllocationImageCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
VkDedicatedAllocationImageCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDedicatedAllocationImageCreateInfoNV.Buffer mallocStack(int capacity)
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDedicatedAllocationImageCreateInfoNV.Buffer callocStack(int capacity)
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDedicatedAllocationImageCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDedicatedAllocationImageCreateInfoNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDedicatedAllocationImageCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDedicatedAllocationImageCreateInfoNV.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 int ndedicatedAllocation(long struct)
dedicatedAllocation().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndedicatedAllocation(long struct,
int value)
dedicatedAllocation.Copyright LWJGL. All Rights Reserved. License terms.