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.NativeResource
Structure returning information about whether a descriptor set layout can be supported.Description
If the create info includes a variable-sized descriptor, then
supported
is determined assuming the requested size of the variable-sized descriptor, andmaxVariableDescriptorCount
is 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
::descriptorBindingVariableDescriptorCount
feature is not enabled, thenmaxVariableDescriptorCount
is set to zero. For the purposes of this command, a variable-sized descriptor binding with adescriptorCount
of zero is treated as if thedescriptorCount
is 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 tomaxVariableDescriptorCount
is undefined.Valid Usage (Implicit)
Member documentation
sType
– the type of this structure.pNext
–NULL
or 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_EXT
thenmaxVariableDescriptorCount
indicates 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 class
VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
An array ofVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MAXVARIABLEDESCRIPTORCOUNT
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDescriptorSetVariableDescriptorCountLayoutSupportEXT(java.nio.ByteBuffer container)
Creates aVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
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 VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
calloc()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated withmemCalloc
.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
calloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated withmemCalloc
.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
callocStack()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
callocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
create()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated withBufferUtils
.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
create(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated withBufferUtils
.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
create(long address)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance for the specified memory address.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
create(long address, int capacity)
Create aVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance at the specified memory.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
createSafe(long address)
static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
createSafe(long address, int capacity)
static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
malloc()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated withmemAlloc
.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
malloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated withmemAlloc
.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
mallocStack()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated on the thread-localMemoryStack
.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
mallocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated on the specifiedMemoryStack
.int
maxVariableDescriptorCount()
Returns the value of themaxVariableDescriptorCount
field.static int
nmaxVariableDescriptorCount(long struct)
Unsafe version ofmaxVariableDescriptorCount()
.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
.long
pNext()
Returns the value of thepNext
field.VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
pNext(long value)
Sets the specified value to thepNext
field.VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
set(int sType, long pNext)
Initializes this struct with the specified values.VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
set(VkDescriptorSetVariableDescriptorCountLayoutSupportEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkDescriptorSetVariableDescriptorCountLayoutSupportEXT
public VkDescriptorSetVariableDescriptorCountLayoutSupportEXT(java.nio.ByteBuffer container)
Creates aVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
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.
-
maxVariableDescriptorCount
public int maxVariableDescriptorCount()
Returns the value of themaxVariableDescriptorCount
field.
-
sType
public VkDescriptorSetVariableDescriptorCountLayoutSupportEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDescriptorSetVariableDescriptorCountLayoutSupportEXT pNext(long value)
Sets the specified value to thepNext
field.
-
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 newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT calloc()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT create()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated withBufferUtils
.
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT create(long address)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT createSafe(long address)
-
malloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer malloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer calloc(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer create(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer create(long address, int capacity)
Create aVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance 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 newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT callocStack()
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer callocStack(int capacity)
Returns a newVkDescriptorSetVariableDescriptorCountLayoutSupportEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.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()
.
-
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
.
-
-