public class VkDescriptorSetAllocateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
pSetLayouts must not have been created with DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR setpSetLayouts was created with the DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXT bit set, descriptorPool must have been created with the DESCRIPTOR_POOL_CREATE_UPDATE_AFTER_BIND_BIT_EXT flag setsType must be STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFOpNext must be NULL or a pointer to a valid instance of VkDescriptorSetVariableDescriptorCountAllocateInfoEXTdescriptorPool must be a valid VkDescriptorPool handlepSetLayouts must be a valid pointer to an array of descriptorSetCount valid VkDescriptorSetLayout handlesdescriptorSetCount must be greater than 0descriptorPool, and the elements of pSetLayouts 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.descriptorPool – the pool which the sets will be allocated from.descriptorSetCount – determines the number of descriptor sets to be allocated from the pool.pSetLayouts – a pointer to an array of descriptor set layouts, with each member specifying how the corresponding descriptor set is allocated.
struct VkDescriptorSetAllocateInfo {
VkStructureType sType;
void const * pNext;
VkDescriptorPool descriptorPool;
uint32_t descriptorSetCount;
VkDescriptorSetLayout const * pSetLayouts;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDescriptorSetAllocateInfo.Buffer
An array of
VkDescriptorSetAllocateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DESCRIPTORPOOL
The struct member offsets.
|
static int |
DESCRIPTORSETCOUNT
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PSETLAYOUTS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDescriptorSetAllocateInfo(java.nio.ByteBuffer container)
Creates a
VkDescriptorSetAllocateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDescriptorSetAllocateInfo |
calloc()
Returns a new
VkDescriptorSetAllocateInfo instance allocated with memCalloc. |
static VkDescriptorSetAllocateInfo.Buffer |
calloc(int capacity)
Returns a new
VkDescriptorSetAllocateInfo.Buffer instance allocated with memCalloc. |
static VkDescriptorSetAllocateInfo |
callocStack()
Returns a new
VkDescriptorSetAllocateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetAllocateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkDescriptorSetAllocateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetAllocateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetAllocateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetAllocateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetAllocateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetAllocateInfo |
create()
Returns a new
VkDescriptorSetAllocateInfo instance allocated with BufferUtils. |
static VkDescriptorSetAllocateInfo.Buffer |
create(int capacity)
Returns a new
VkDescriptorSetAllocateInfo.Buffer instance allocated with BufferUtils. |
static VkDescriptorSetAllocateInfo |
create(long address)
Returns a new
VkDescriptorSetAllocateInfo instance for the specified memory address. |
static VkDescriptorSetAllocateInfo.Buffer |
create(long address,
int capacity)
Create a
VkDescriptorSetAllocateInfo.Buffer instance at the specified memory. |
static VkDescriptorSetAllocateInfo |
createSafe(long address)
|
static VkDescriptorSetAllocateInfo.Buffer |
createSafe(long address,
int capacity)
|
long |
descriptorPool()
Returns the value of the
descriptorPool field. |
VkDescriptorSetAllocateInfo |
descriptorPool(long value)
Sets the specified value to the
descriptorPool field. |
int |
descriptorSetCount()
Returns the value of the
descriptorSetCount field. |
static VkDescriptorSetAllocateInfo |
malloc()
Returns a new
VkDescriptorSetAllocateInfo instance allocated with memAlloc. |
static VkDescriptorSetAllocateInfo.Buffer |
malloc(int capacity)
Returns a new
VkDescriptorSetAllocateInfo.Buffer instance allocated with memAlloc. |
static VkDescriptorSetAllocateInfo |
mallocStack()
Returns a new
VkDescriptorSetAllocateInfo instance allocated on the thread-local MemoryStack. |
static VkDescriptorSetAllocateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkDescriptorSetAllocateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkDescriptorSetAllocateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetAllocateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkDescriptorSetAllocateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetAllocateInfo instance allocated on the specified MemoryStack. |
static long |
ndescriptorPool(long struct)
Unsafe version of
descriptorPool(). |
static void |
ndescriptorPool(long struct,
long value)
Unsafe version of
descriptorPool. |
static int |
ndescriptorSetCount(long struct)
Unsafe version of
descriptorSetCount(). |
static void |
ndescriptorSetCount(long struct,
int value)
Sets the specified value to the
descriptorSetCount field of the specified struct. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.LongBuffer |
npSetLayouts(long struct)
Unsafe version of
pSetLayouts. |
static void |
npSetLayouts(long struct,
java.nio.LongBuffer value)
Unsafe version of
pSetLayouts. |
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. |
VkDescriptorSetAllocateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.LongBuffer |
pSetLayouts()
Returns a
LongBuffer view of the data pointed to by the pSetLayouts field. |
VkDescriptorSetAllocateInfo |
pSetLayouts(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pSetLayouts field. |
VkDescriptorSetAllocateInfo |
set(int sType,
long pNext,
long descriptorPool,
java.nio.LongBuffer pSetLayouts)
Initializes this struct with the specified values.
|
VkDescriptorSetAllocateInfo |
set(VkDescriptorSetAllocateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDescriptorSetAllocateInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int DESCRIPTORPOOL
public static final int DESCRIPTORSETCOUNT
public static final int PSETLAYOUTS
public VkDescriptorSetAllocateInfo(java.nio.ByteBuffer container)
VkDescriptorSetAllocateInfo 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 descriptorPool()
descriptorPool field.public int descriptorSetCount()
descriptorSetCount field.public java.nio.LongBuffer pSetLayouts()
LongBuffer view of the data pointed to by the pSetLayouts field.public VkDescriptorSetAllocateInfo sType(int value)
sType field.public VkDescriptorSetAllocateInfo pNext(long value)
pNext field.public VkDescriptorSetAllocateInfo descriptorPool(long value)
descriptorPool field.public VkDescriptorSetAllocateInfo pSetLayouts(java.nio.LongBuffer value)
LongBuffer to the pSetLayouts field.public VkDescriptorSetAllocateInfo set(int sType, long pNext, long descriptorPool, java.nio.LongBuffer pSetLayouts)
public VkDescriptorSetAllocateInfo set(VkDescriptorSetAllocateInfo src)
src - the source structpublic static VkDescriptorSetAllocateInfo malloc()
VkDescriptorSetAllocateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkDescriptorSetAllocateInfo calloc()
VkDescriptorSetAllocateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkDescriptorSetAllocateInfo create()
VkDescriptorSetAllocateInfo instance allocated with BufferUtils.public static VkDescriptorSetAllocateInfo create(long address)
VkDescriptorSetAllocateInfo instance for the specified memory address.@Nullable public static VkDescriptorSetAllocateInfo createSafe(long address)
public static VkDescriptorSetAllocateInfo.Buffer malloc(int capacity)
VkDescriptorSetAllocateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorSetAllocateInfo.Buffer calloc(int capacity)
VkDescriptorSetAllocateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorSetAllocateInfo.Buffer create(int capacity)
VkDescriptorSetAllocateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDescriptorSetAllocateInfo.Buffer create(long address, int capacity)
VkDescriptorSetAllocateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDescriptorSetAllocateInfo.Buffer createSafe(long address, int capacity)
public static VkDescriptorSetAllocateInfo mallocStack()
VkDescriptorSetAllocateInfo instance allocated on the thread-local MemoryStack.public static VkDescriptorSetAllocateInfo callocStack()
VkDescriptorSetAllocateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDescriptorSetAllocateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorSetAllocateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDescriptorSetAllocateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorSetAllocateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDescriptorSetAllocateInfo.Buffer mallocStack(int capacity)
VkDescriptorSetAllocateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDescriptorSetAllocateInfo.Buffer callocStack(int capacity)
VkDescriptorSetAllocateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDescriptorSetAllocateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorSetAllocateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDescriptorSetAllocateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorSetAllocateInfo.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 ndescriptorPool(long struct)
descriptorPool().public static int ndescriptorSetCount(long struct)
descriptorSetCount().public static java.nio.LongBuffer npSetLayouts(long struct)
pSetLayouts.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndescriptorPool(long struct,
long value)
descriptorPool.public static void ndescriptorSetCount(long struct,
int value)
descriptorSetCount field of the specified struct.public static void npSetLayouts(long struct,
java.nio.LongBuffer value)
pSetLayouts.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.