Package org.lwjgl.vulkan
Class VkMutableDescriptorTypeListEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkMutableDescriptorTypeListEXT>
org.lwjgl.vulkan.VkMutableDescriptorTypeListEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkMutableDescriptorTypeListVALVE
public class VkMutableDescriptorTypeListEXT
extends org.lwjgl.system.Struct<VkMutableDescriptorTypeListEXT>
implements org.lwjgl.system.NativeResource
Structure describing descriptor types that a given descriptor may mutate to.
Valid Usage
descriptorTypeCountmust not be 0 if the corresponding binding is ofDESCRIPTOR_TYPE_MUTABLE_EXTpDescriptorTypesmust be a valid pointer to an array ofdescriptorTypeCountvalid, uniqueVkDescriptorTypevalues if the given binding is ofDESCRIPTOR_TYPE_MUTABLE_EXTtypedescriptorTypeCountmust be 0 if the corresponding binding is not ofDESCRIPTOR_TYPE_MUTABLE_EXTpDescriptorTypesmust not containDESCRIPTOR_TYPE_MUTABLE_EXTpDescriptorTypesmust not containDESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMICpDescriptorTypesmust not containDESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMICpDescriptorTypesmust not containDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK
Valid Usage (Implicit)
- If
descriptorTypeCountis not 0,pDescriptorTypesmust be a valid pointer to an array ofdescriptorTypeCountvalidVkDescriptorTypevalues
See Also
VkMutableDescriptorTypeCreateInfoEXT
Layout
struct VkMutableDescriptorTypeListEXT {
uint32_t descriptorTypeCount();
VkDescriptorType const * pDescriptorTypes();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkMutableDescriptorTypeListEXTstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkMutableDescriptorTypeListEXT(ByteBuffer container) Creates aVkMutableDescriptorTypeListEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkMutableDescriptorTypeListEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkMutableDescriptorTypeListEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkMutableDescriptorTypeListEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkMutableDescriptorTypeListEXTinstance for the specified memory address.create(long address, int capacity) Create aVkMutableDescriptorTypeListEXT.Bufferinstance at the specified memory.static @Nullable VkMutableDescriptorTypeListEXTcreateSafe(long address) static @Nullable VkMutableDescriptorTypeListEXT.BuffercreateSafe(long address, int capacity) intthe number of elements inpDescriptorTypes.malloc()Returns a newVkMutableDescriptorTypeListEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkMutableDescriptorTypeListEXTinstance allocated on the specifiedMemoryStack.static intndescriptorTypeCount(long struct) Unsafe version ofdescriptorTypeCount().static voidndescriptorTypeCount(long struct, int value) Sets the specified value to thedescriptorTypeCountfield of the specifiedstruct.static @Nullable IntBuffernpDescriptorTypes(long struct) Unsafe version ofpDescriptorTypes.static voidnpDescriptorTypes(long struct, @Nullable IntBuffer value) Unsafe version ofpDescriptorTypes.@Nullable IntBufferNULLor a pointer to an array ofdescriptorTypeCountVkDescriptorTypevalues defining which descriptor types a given binding may mutate to.pDescriptorTypes(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thepDescriptorTypes()field.Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
DESCRIPTORTYPECOUNT
public static final int DESCRIPTORTYPECOUNTThe struct member offsets. -
PDESCRIPTORTYPES
public static final int PDESCRIPTORTYPESThe struct member offsets.
-
-
Constructor Details
-
VkMutableDescriptorTypeListEXT
Creates aVkMutableDescriptorTypeListEXTinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkMutableDescriptorTypeListEXT>
-
descriptorTypeCount
public int descriptorTypeCount()the number of elements inpDescriptorTypes. -
pDescriptorTypes
NULLor a pointer to an array ofdescriptorTypeCountVkDescriptorTypevalues defining which descriptor types a given binding may mutate to. -
pDescriptorTypes
Sets the address of the specifiedIntBufferto thepDescriptorTypes()field. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkMutableDescriptorTypeListEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkMutableDescriptorTypeListEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkMutableDescriptorTypeListEXTinstance allocated withBufferUtils. -
create
Returns a newVkMutableDescriptorTypeListEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkMutableDescriptorTypeListEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkMutableDescriptorTypeListEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkMutableDescriptorTypeListEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkMutableDescriptorTypeListEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkMutableDescriptorTypeListEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkMutableDescriptorTypeListEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkMutableDescriptorTypeListEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ndescriptorTypeCount
public static int ndescriptorTypeCount(long struct) Unsafe version ofdescriptorTypeCount(). -
npDescriptorTypes
Unsafe version ofpDescriptorTypes. -
ndescriptorTypeCount
public static void ndescriptorTypeCount(long struct, int value) Sets the specified value to thedescriptorTypeCountfield of the specifiedstruct. -
npDescriptorTypes
Unsafe version ofpDescriptorTypes. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-