Package org.lwjgl.vulkan
Class VkDescriptorSetVariableDescriptorCountAllocateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorSetVariableDescriptorCountAllocateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
public class VkDescriptorSetVariableDescriptorCountAllocateInfo 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_BLOCKthenpDescriptorCounts[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
VkDescriptorSetAllocateInfo::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- If
descriptorSetCountis not 0,pDescriptorCountsmust be a valid pointer to an array ofdescriptorSetCountuint32_tvalues
Layout
struct VkDescriptorSetVariableDescriptorCountAllocateInfo { VkStructureTypesType(); void const *pNext(); uint32_tdescriptorSetCount(); uint32_t const *pDescriptorCounts(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDescriptorSetVariableDescriptorCountAllocateInfo.BufferAn array ofVkDescriptorSetVariableDescriptorCountAllocateInfostructs.
-
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 VkDescriptorSetVariableDescriptorCountAllocateInfo(java.nio.ByteBuffer container)Creates aVkDescriptorSetVariableDescriptorCountAllocateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDescriptorSetVariableDescriptorCountAllocateInfocalloc()Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance allocated withmemCalloc.static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffercalloc(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance allocated withmemCalloc.static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfocreate()Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance allocated withBufferUtils.static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffercreate(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance allocated withBufferUtils.static VkDescriptorSetVariableDescriptorCountAllocateInfocreate(long address)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance for the specified memory address.static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffercreate(long address, int capacity)Create aVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance at the specified memory.static VkDescriptorSetVariableDescriptorCountAllocateInfocreateSafe(long address)static VkDescriptorSetVariableDescriptorCountAllocateInfo.BuffercreateSafe(long address, int capacity)intdescriptorSetCount()zero or the number of elements inpDescriptorCounts.static VkDescriptorSetVariableDescriptorCountAllocateInfomalloc()Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance allocated withmemAlloc.static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffermalloc(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance allocated withmemAlloc.static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorSetVariableDescriptorCountAllocateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance 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()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.VkDescriptorSetVariableDescriptorCountAllocateInfopDescriptorCounts(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepDescriptorCounts()field.longpNext()NULLor a pointer to a structure extending this structure.VkDescriptorSetVariableDescriptorCountAllocateInfopNext(long value)Sets the specified value to thepNext()field.VkDescriptorSetVariableDescriptorCountAllocateInfoset(int sType, long pNext, java.nio.IntBuffer pDescriptorCounts)Initializes this struct with the specified values.VkDescriptorSetVariableDescriptorCountAllocateInfoset(VkDescriptorSetVariableDescriptorCountAllocateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDescriptorSetVariableDescriptorCountAllocateInfosType(int value)Sets the specified value to thesType()field.VkDescriptorSetVariableDescriptorCountAllocateInfosType$Default()Sets theSTRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkDescriptorSetVariableDescriptorCountAllocateInfo
public VkDescriptorSetVariableDescriptorCountAllocateInfo(java.nio.ByteBuffer container)
Creates aVkDescriptorSetVariableDescriptorCountAllocateInfoinstance 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
descriptorSetCount
public int descriptorSetCount()
zero or the number of elements inpDescriptorCounts.
-
pDescriptorCounts
@Nullable public java.nio.IntBuffer 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.
-
sType
public VkDescriptorSetVariableDescriptorCountAllocateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDescriptorSetVariableDescriptorCountAllocateInfo sType$Default()
Sets theSTRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFOvalue to thesType()field.
-
pNext
public VkDescriptorSetVariableDescriptorCountAllocateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pDescriptorCounts
public VkDescriptorSetVariableDescriptorCountAllocateInfo pDescriptorCounts(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepDescriptorCounts()field.
-
set
public VkDescriptorSetVariableDescriptorCountAllocateInfo set(int sType, long pNext, @Nullable java.nio.IntBuffer pDescriptorCounts)
Initializes this struct with the specified values.
-
set
public VkDescriptorSetVariableDescriptorCountAllocateInfo set(VkDescriptorSetVariableDescriptorCountAllocateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfo malloc()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfo calloc()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfo create()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance allocated withBufferUtils.
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfo create(long address)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountAllocateInfo createSafe(long address)
-
malloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffer malloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffer calloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffer create(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffer create(long address, int capacity)
Create aVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfo.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
-
-