Package org.lwjgl.vulkan
Class VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDescriptorSetVariableDescriptorCountAllocateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying additional allocation parameters for descriptor sets.Description
If
descriptorSetCountis zero or this structure is not included in thepNextchain, 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 ofDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXTthenpDescriptorCounts[i] specifies the binding's capacity in bytes. IfVkDescriptorSetAllocateInfo::pSetLayouts[i] does not include a variable count descriptor binding, thenpDescriptorCounts[i] is ignored.Valid Usage
- If
descriptorSetCountis not zero,descriptorSetCountmust equalVkDescriptorSetAllocateInfo::descriptorSetCount - If sVkDescriptorSetAllocateInfo
::pSetLayouts[i] has a variable descriptor count binding, thenpDescriptorCounts[i] must be less than or equal to the descriptor count specified for that binding when the descriptor set layout was created.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO_EXT- If
descriptorSetCountis not 0,pDescriptorCountsmust be a valid pointer to an array ofdescriptorSetCountuint32_tvalues
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.descriptorSetCount– zero or the number of elements inpDescriptorCounts.pDescriptorCounts– 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.
Layout
struct VkDescriptorSetVariableDescriptorCountAllocateInfoEXT { VkStructureType sType; void const * pNext; uint32_t descriptorSetCount; uint32_t const * pDescriptorCounts; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.BufferAn array ofVkDescriptorSetVariableDescriptorCountAllocateInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDESCRIPTORSETCOUNT
PDESCRIPTORCOUNTS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDescriptorSetVariableDescriptorCountAllocateInfoEXT(java.nio.ByteBuffer container)Creates aVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDescriptorSetVariableDescriptorCountAllocateInfoEXTcalloc()Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated withmemCalloc.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffercalloc(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated withmemCalloc.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXTcallocStack()Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.BuffercallocStack(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXTcreate()Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated withBufferUtils.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffercreate(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated withBufferUtils.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXTcreate(long address)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance for the specified memory address.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffercreate(long address, int capacity)Create aVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance at the specified memory.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXTcreateSafe(long address)static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.BuffercreateSafe(long address, int capacity)intdescriptorSetCount()Returns the value of thedescriptorSetCountfield.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXTmalloc()Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated withmemAlloc.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffermalloc(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated withmemAlloc.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXTmallocStack()Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated on the thread-localMemoryStack.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.BuffermallocStack(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated on the specifiedMemoryStack.static intndescriptorSetCount(long struct)Unsafe version ofdescriptorSetCount().static voidndescriptorSetCount(long struct, int value)Sets the specified value to thedescriptorSetCountfield of the specifiedstruct.static java.nio.IntBuffernpDescriptorCounts(long struct)Unsafe version ofpDescriptorCounts.static voidnpDescriptorCounts(long struct, java.nio.IntBuffer value)Unsafe version ofpDescriptorCounts.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.java.nio.IntBufferpDescriptorCounts()Returns aIntBufferview of the data pointed to by thepDescriptorCountsfield.VkDescriptorSetVariableDescriptorCountAllocateInfoEXTpDescriptorCounts(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepDescriptorCountsfield.longpNext()Returns the value of thepNextfield.VkDescriptorSetVariableDescriptorCountAllocateInfoEXTpNext(long value)Sets the specified value to thepNextfield.VkDescriptorSetVariableDescriptorCountAllocateInfoEXTset(int sType, long pNext, java.nio.IntBuffer pDescriptorCounts)Initializes this struct with the specified values.VkDescriptorSetVariableDescriptorCountAllocateInfoEXTset(VkDescriptorSetVariableDescriptorCountAllocateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkDescriptorSetVariableDescriptorCountAllocateInfoEXTsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT(java.nio.ByteBuffer container)
Creates aVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
descriptorSetCount
public int descriptorSetCount()
Returns the value of thedescriptorSetCountfield.
-
pDescriptorCounts
@Nullable public java.nio.IntBuffer pDescriptorCounts()
Returns aIntBufferview of the data pointed to by thepDescriptorCountsfield.
-
sType
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
pDescriptorCounts
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT pDescriptorCounts(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepDescriptorCountsfield.
-
set
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT set(int sType, long pNext, @Nullable java.nio.IntBuffer pDescriptorCounts)
Initializes this struct with the specified values.
-
set
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT set(VkDescriptorSetVariableDescriptorCountAllocateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT malloc()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT calloc()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT create()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT create(long address)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT createSafe(long address)
-
malloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer malloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer calloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer create(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer create(long address, int capacity)
Create aVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT mallocStack()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT callocStack()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
ndescriptorSetCount
public static int ndescriptorSetCount(long struct)
Unsafe version ofdescriptorSetCount().
-
npDescriptorCounts
@Nullable public static java.nio.IntBuffer npDescriptorCounts(long struct)
Unsafe version ofpDescriptorCounts.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ndescriptorSetCount
public static void ndescriptorSetCount(long struct, int value)Sets the specified value to thedescriptorSetCountfield of the specifiedstruct.
-
npDescriptorCounts
public static void npDescriptorCounts(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpDescriptorCounts.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-