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.NativeResource
Structure specifying additional allocation parameters for descriptor sets.Description
If
descriptorSetCount
is zero or this structure is not included in thepNext
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 ofDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT
thenpDescriptorCounts
[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
descriptorSetCount
is not zero,descriptorSetCount
must 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)
sType
must beSTRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO_EXT
- If
descriptorSetCount
is not 0,pDescriptorCounts
must be a valid pointer to an array ofdescriptorSetCount
uint32_t
values
Member documentation
sType
– the type of this structure.pNext
–NULL
or 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 class
VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
An array ofVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DESCRIPTORSETCOUNT
PDESCRIPTORCOUNTS
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDescriptorSetVariableDescriptorCountAllocateInfoEXT(java.nio.ByteBuffer container)
Creates aVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
calloc()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated withmemCalloc
.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
calloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated withmemCalloc
.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
callocStack()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
create()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated withBufferUtils
.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
create(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated withBufferUtils
.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
create(long address)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance for the specified memory address.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
create(long address, int capacity)
Create aVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.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 thedescriptorSetCount
field.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
malloc()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated withmemAlloc
.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
malloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated withmemAlloc
.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
mallocStack()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated on the thread-localMemoryStack
.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated on the specifiedMemoryStack
.static int
ndescriptorSetCount(long struct)
Unsafe version ofdescriptorSetCount()
.static void
ndescriptorSetCount(long struct, int value)
Sets the specified value to thedescriptorSetCount
field of the specifiedstruct
.static java.nio.IntBuffer
npDescriptorCounts(long struct)
Unsafe version ofpDescriptorCounts
.static void
npDescriptorCounts(long struct, java.nio.IntBuffer value)
Unsafe version ofpDescriptorCounts
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.java.nio.IntBuffer
pDescriptorCounts()
Returns aIntBuffer
view of the data pointed to by thepDescriptorCounts
field.VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
pDescriptorCounts(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepDescriptorCounts
field.long
pNext()
Returns the value of thepNext
field.VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
pNext(long value)
Sets the specified value to thepNext
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 thesType
field.VkDescriptorSetVariableDescriptorCountAllocateInfoEXT
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
descriptorSetCount
public int descriptorSetCount()
Returns the value of thedescriptorSetCount
field.
-
pDescriptorCounts
@Nullable public java.nio.IntBuffer pDescriptorCounts()
Returns aIntBuffer
view of the data pointed to by thepDescriptorCounts
field.
-
sType
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
pDescriptorCounts
public VkDescriptorSetVariableDescriptorCountAllocateInfoEXT pDescriptorCounts(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepDescriptorCounts
field.
-
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 newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT calloc()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT create()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT create(long address)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT createSafe(long address)
-
malloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer malloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer calloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer create(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer create(long address, int capacity)
Create aVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance 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 newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT callocStack()
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountAllocateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 thedescriptorSetCount
field 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
-
-