Class VkDescriptorSetVariableDescriptorCountLayoutSupport
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorSetVariableDescriptorCountLayoutSupport
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
public class VkDescriptorSetVariableDescriptorCountLayoutSupport extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure returning information about whether a descriptor set layout can be supported.Description
If the
VkDescriptorSetLayoutCreateInfostructure specified inGetDescriptorSetLayoutSupport::pCreateInfoincludes a variable-sized descriptor, thensupportedis determined assuming the requested size of the variable-sized descriptor, andmaxVariableDescriptorCountis set to the maximum size of that descriptor that can be successfully created (which is greater than or equal to the requested size passed in). If theVkDescriptorSetLayoutCreateInfostructure does not include a variable-sized descriptor, or if theVkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingVariableDescriptorCountfeature is not enabled, thenmaxVariableDescriptorCountis set to zero. For the purposes of this command, a variable-sized descriptor binding with adescriptorCountof zero is treated as if thedescriptorCountis one, and thus the binding is not ignored and the maximum descriptor count will be returned. If the layout is not supported, then the value written tomaxVariableDescriptorCountis undefined.Valid Usage (Implicit)
Layout
struct VkDescriptorSetVariableDescriptorCountLayoutSupport { VkStructureTypesType(); void *pNext(); uint32_tmaxVariableDescriptorCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDescriptorSetVariableDescriptorCountLayoutSupport.BufferAn array ofVkDescriptorSetVariableDescriptorCountLayoutSupportstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXVARIABLEDESCRIPTORCOUNT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDescriptorSetVariableDescriptorCountLayoutSupport(java.nio.ByteBuffer container)Creates aVkDescriptorSetVariableDescriptorCountLayoutSupportinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDescriptorSetVariableDescriptorCountLayoutSupportcalloc()Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated withmemCalloc.static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffercalloc(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance allocated withmemCalloc.static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportcreate()Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated withBufferUtils.static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffercreate(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance allocated withBufferUtils.static VkDescriptorSetVariableDescriptorCountLayoutSupportcreate(long address)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance for the specified memory address.static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffercreate(long address, int capacity)Create aVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance at the specified memory.static VkDescriptorSetVariableDescriptorCountLayoutSupportcreateSafe(long address)static VkDescriptorSetVariableDescriptorCountLayoutSupport.BuffercreateSafe(long address, int capacity)static VkDescriptorSetVariableDescriptorCountLayoutSupportmalloc()Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated withmemAlloc.static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffermalloc(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance allocated withmemAlloc.static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorSetVariableDescriptorCountLayoutSupportmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated on the specifiedMemoryStack.intmaxVariableDescriptorCount()indicates the maximum number of descriptors supported in the highest numbered binding of the layout, if that binding is variable-sized.static intnmaxVariableDescriptorCount(long struct)Unsafe version ofmaxVariableDescriptorCount().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.longpNext()NULLor a pointer to a structure extending this structure.VkDescriptorSetVariableDescriptorCountLayoutSupportpNext(long value)Sets the specified value to thepNext()field.VkDescriptorSetVariableDescriptorCountLayoutSupportset(int sType, long pNext)Initializes this struct with the specified values.VkDescriptorSetVariableDescriptorCountLayoutSupportset(VkDescriptorSetVariableDescriptorCountLayoutSupport src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDescriptorSetVariableDescriptorCountLayoutSupportsType(int value)Sets the specified value to thesType()field.VkDescriptorSetVariableDescriptorCountLayoutSupportsType$Default()Sets theSTRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkDescriptorSetVariableDescriptorCountLayoutSupport
public VkDescriptorSetVariableDescriptorCountLayoutSupport(java.nio.ByteBuffer container)
Creates aVkDescriptorSetVariableDescriptorCountLayoutSupportinstance 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.
-
maxVariableDescriptorCount
public int maxVariableDescriptorCount()
indicates the maximum number of descriptors supported in the highest numbered binding of the layout, if that binding is variable-sized. If the highest numbered binding of the layout has a descriptor type ofDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCKthenmaxVariableDescriptorCountindicates the maximum byte size supported for the binding, if that binding is variable-sized.
-
sType
public VkDescriptorSetVariableDescriptorCountLayoutSupport sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDescriptorSetVariableDescriptorCountLayoutSupport sType$Default()
Sets theSTRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORTvalue to thesType()field.
-
pNext
public VkDescriptorSetVariableDescriptorCountLayoutSupport pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkDescriptorSetVariableDescriptorCountLayoutSupport set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkDescriptorSetVariableDescriptorCountLayoutSupport set(VkDescriptorSetVariableDescriptorCountLayoutSupport src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupport malloc()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupport calloc()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupport create()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated withBufferUtils.
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupport create(long address)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountLayoutSupport createSafe(long address)
-
malloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffer malloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffer calloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffer create(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffer create(long address, int capacity)
Create aVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupport malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupport calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupport.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupport.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().
-
nmaxVariableDescriptorCount
public static int nmaxVariableDescriptorCount(long struct)
Unsafe version ofmaxVariableDescriptorCount().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-