Class VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDescriptorSetVariableDescriptorCountLayoutSupportEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure returning information about whether a descriptor set layout can be supported.Description
If the create info includes a variable-sized descriptor, then
supportedis 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 the create info does not include a variable-sized descriptor or if theVkPhysicalDeviceDescriptorIndexingFeaturesEXT::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)
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.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_BLOCK_EXTthenmaxVariableDescriptorCountindicates the maximum byte size supported for the binding, if that binding is variable-sized.
Layout
struct VkDescriptorSetVariableDescriptorCountLayoutSupportEXT { VkStructureType sType; void * pNext; uint32_t maxVariableDescriptorCount; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.BufferAn array ofVkDescriptorSetVariableDescriptorCountLayoutSupportEXTstructs.
-
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 VkDescriptorSetVariableDescriptorCountLayoutSupportEXT(java.nio.ByteBuffer container)Creates aVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDescriptorSetVariableDescriptorCountLayoutSupportEXTcalloc()Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated withmemCalloc.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffercalloc(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated withmemCalloc.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXTcallocStack()Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.BuffercallocStack(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXTcreate()Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated withBufferUtils.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffercreate(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated withBufferUtils.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXTcreate(long address)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance for the specified memory address.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffercreate(long address, int capacity)Create aVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance at the specified memory.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXTcreateSafe(long address)static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.BuffercreateSafe(long address, int capacity)static VkDescriptorSetVariableDescriptorCountLayoutSupportEXTmalloc()Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated withmemAlloc.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffermalloc(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated withmemAlloc.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXTmallocStack()Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated on the thread-localMemoryStack.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.BuffermallocStack(int capacity)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated on the specifiedMemoryStack.intmaxVariableDescriptorCount()Returns the value of themaxVariableDescriptorCountfield.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()Returns the value of thepNextfield.VkDescriptorSetVariableDescriptorCountLayoutSupportEXTpNext(long value)Sets the specified value to thepNextfield.VkDescriptorSetVariableDescriptorCountLayoutSupportEXTset(int sType, long pNext)Initializes this struct with the specified values.VkDescriptorSetVariableDescriptorCountLayoutSupportEXTset(VkDescriptorSetVariableDescriptorCountLayoutSupportEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkDescriptorSetVariableDescriptorCountLayoutSupportEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
public VkDescriptorSetVariableDescriptorCountLayoutSupportEXT(java.nio.ByteBuffer container)
Creates aVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance 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.
-
maxVariableDescriptorCount
public int maxVariableDescriptorCount()
Returns the value of themaxVariableDescriptorCountfield.
-
sType
public VkDescriptorSetVariableDescriptorCountLayoutSupportEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDescriptorSetVariableDescriptorCountLayoutSupportEXT pNext(long value)
Sets the specified value to thepNextfield.
-
set
public VkDescriptorSetVariableDescriptorCountLayoutSupportEXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkDescriptorSetVariableDescriptorCountLayoutSupportEXT set(VkDescriptorSetVariableDescriptorCountLayoutSupportEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT malloc()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT calloc()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT create()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated withBufferUtils.
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT create(long address)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT createSafe(long address)
-
malloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer malloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer calloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer create(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer create(long address, int capacity)
Create aVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT mallocStack()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT callocStack()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer mallocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer callocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.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.
-
-