public class VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If descriptorSetCount is zero or this structure is not included in the pNext chain, then the variable lengths are considered to be zero. Otherwise, pDescriptorCounts[i] is the number of descriptors in the variable count descriptor binding in the corresponding descriptor set layout. If the variable count descriptor binding in the corresponding descriptor set layout has a descriptor type of DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT then pDescriptorCounts[i] specifies the binding's capacity in bytes. If VkDescriptorSetAllocateInfo::pSetLayouts[i] does not include a variable count descriptor binding, then pDescriptorCounts[i] is ignored.
descriptorSetCount is not zero, descriptorSetCount must equal VkDescriptorSetAllocateInfo::descriptorSetCount::pSetLayouts[i] has a variable descriptor count binding, then pDescriptorCounts[i] must be less than or equal to the descriptor count specified for that binding when the descriptor set layout was created.sType must be STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO_EXTdescriptorSetCount is not 0, pDescriptorCounts must be a valid pointer to an array of descriptorSetCount uint32_t valuessType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.descriptorSetCount – zero or the number of elements in pDescriptorCounts.pDescriptorCounts – a pointer to an array of descriptor counts, with each member specifying the number of descriptors in a variable descriptor count binding in the corresponding descriptor set being allocated.
struct VkDescriptorSetVariableDescriptorCountAllocateInfoEXT {
VkStructureType sType;
void const * pNext;
uint32_t descriptorSetCount;
uint32_t const * pDescriptorCounts;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
An array of
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DESCRIPTORSETCOUNT
The struct member offsets.
|
static int |
PDESCRIPTORCOUNTS
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 |
|---|
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT(java.nio.ByteBuffer container)
Creates a
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
calloc()
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated with memCalloc. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated with memCalloc. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
callocStack()
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
create()
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated with BufferUtils. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer |
create(int capacity)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated with BufferUtils. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
create(long address)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance for the specified memory address. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance at the specified memory. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
createSafe(long address)
|
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
int |
descriptorSetCount()
Returns the value of the
descriptorSetCount field. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
malloc()
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated with memAlloc. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated with memAlloc. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
mallocStack()
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated on the thread-local MemoryStack. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated on the specified MemoryStack. |
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 java.nio.IntBuffer |
npDescriptorCounts(long struct)
Unsafe version of
pDescriptorCounts. |
static void |
npDescriptorCounts(long struct,
java.nio.IntBuffer value)
Unsafe version of
pDescriptorCounts. |
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. |
java.nio.IntBuffer |
pDescriptorCounts()
Returns a
IntBuffer view of the data pointed to by the pDescriptorCounts field. |
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
pDescriptorCounts(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pDescriptorCounts field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
set(int sType,
long pNext,
java.nio.IntBuffer pDescriptorCounts)
Initializes this struct with the specified values.
|
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
set(VkDescriptorSetVariableDescriptorCountAllocateInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT |
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 DESCRIPTORSETCOUNT
public static final int PDESCRIPTORCOUNTS
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT(java.nio.ByteBuffer container)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT 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 int descriptorSetCount()
descriptorSetCount field.@Nullable public java.nio.IntBuffer pDescriptorCounts()
IntBuffer view of the data pointed to by the pDescriptorCounts field.public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT sType(int value)
sType field.public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT pNext(long value)
pNext field.public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT pDescriptorCounts(@Nullable java.nio.IntBuffer value)
IntBuffer to the pDescriptorCounts field.public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT set(int sType, long pNext, @Nullable java.nio.IntBuffer pDescriptorCounts)
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT set(VkDescriptorSetVariableDescriptorCountAllocateInfoEXT src)
src - the source structpublic static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT malloc()
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT calloc()
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT create()
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated with BufferUtils.public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT create(long address)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance for the specified memory address.@Nullable public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT createSafe(long address)
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer malloc(int capacity)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer calloc(int capacity)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer create(int capacity)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer create(long address, int capacity)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer createSafe(long address, int capacity)
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT mallocStack()
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated on the thread-local MemoryStack.public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT callocStack()
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer mallocStack(int capacity)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer callocStack(int capacity)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.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 ndescriptorSetCount(long struct)
descriptorSetCount().@Nullable public static java.nio.IntBuffer npDescriptorCounts(long struct)
pDescriptorCounts.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndescriptorSetCount(long struct,
int value)
descriptorSetCount field of the specified struct.public static void npDescriptorCounts(long struct,
@Nullable
java.nio.IntBuffer value)
pDescriptorCounts.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.