Package org.lwjgl.vulkan
Class VkMutableDescriptorTypeListVALVE
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMutableDescriptorTypeListVALVE
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkMutableDescriptorTypeListVALVE extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing descriptor types that a given descriptor may mutate to.Valid Usage
descriptorTypeCountmust not be 0 if the corresponding binding is ofDESCRIPTOR_TYPE_MUTABLE_VALVEpDescriptorTypesmust be a valid pointer to an array ofdescriptorTypeCountvalid, uniqueVkDescriptorTypevalues if the given binding is ofDESCRIPTOR_TYPE_MUTABLE_VALVEtypedescriptorTypeCountmust be 0 if the corresponding binding is not ofDESCRIPTOR_TYPE_MUTABLE_VALVEpDescriptorTypesmust not containDESCRIPTOR_TYPE_MUTABLE_VALVEpDescriptorTypesmust 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
VkMutableDescriptorTypeCreateInfoVALVELayout
struct VkMutableDescriptorTypeListVALVE { uint32_tdescriptorTypeCount(); VkDescriptorType const *pDescriptorTypes(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMutableDescriptorTypeListVALVE.BufferAn array ofVkMutableDescriptorTypeListVALVEstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDESCRIPTORTYPECOUNT
PDESCRIPTORTYPESThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkMutableDescriptorTypeListVALVE(java.nio.ByteBuffer container)Creates aVkMutableDescriptorTypeListVALVEinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMutableDescriptorTypeListVALVEcalloc()Returns a newVkMutableDescriptorTypeListVALVEinstance allocated withmemCalloc.static VkMutableDescriptorTypeListVALVE.Buffercalloc(int capacity)Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated withmemCalloc.static VkMutableDescriptorTypeListVALVE.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMutableDescriptorTypeListVALVEcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMutableDescriptorTypeListVALVEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMutableDescriptorTypeListVALVEcreate()Returns a newVkMutableDescriptorTypeListVALVEinstance allocated withBufferUtils.static VkMutableDescriptorTypeListVALVE.Buffercreate(int capacity)Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated withBufferUtils.static VkMutableDescriptorTypeListVALVEcreate(long address)Returns a newVkMutableDescriptorTypeListVALVEinstance for the specified memory address.static VkMutableDescriptorTypeListVALVE.Buffercreate(long address, int capacity)Create aVkMutableDescriptorTypeListVALVE.Bufferinstance at the specified memory.static VkMutableDescriptorTypeListVALVEcreateSafe(long address)static VkMutableDescriptorTypeListVALVE.BuffercreateSafe(long address, int capacity)intdescriptorTypeCount()the number of elements inpDescriptorTypes.static VkMutableDescriptorTypeListVALVEmalloc()Returns a newVkMutableDescriptorTypeListVALVEinstance allocated withmemAlloc.static VkMutableDescriptorTypeListVALVE.Buffermalloc(int capacity)Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated withmemAlloc.static VkMutableDescriptorTypeListVALVE.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated on the specifiedMemoryStack.static VkMutableDescriptorTypeListVALVEmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMutableDescriptorTypeListVALVEinstance 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 java.nio.IntBuffernpDescriptorTypes(long struct)Unsafe version ofpDescriptorTypes.static voidnpDescriptorTypes(long struct, java.nio.IntBuffer value)Unsafe version ofpDescriptorTypes.java.nio.IntBufferpDescriptorTypes()NULLor a pointer to an array ofdescriptorTypeCountVkDescriptorTypevalues defining which descriptor types a given binding may mutate to.VkMutableDescriptorTypeListVALVEpDescriptorTypes(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepDescriptorTypes()field.VkMutableDescriptorTypeListVALVEset(VkMutableDescriptorTypeListVALVE src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkMutableDescriptorTypeListVALVE
public VkMutableDescriptorTypeListVALVE(java.nio.ByteBuffer container)
Creates aVkMutableDescriptorTypeListVALVEinstance 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
-
descriptorTypeCount
public int descriptorTypeCount()
the number of elements inpDescriptorTypes.
-
pDescriptorTypes
@Nullable public java.nio.IntBuffer pDescriptorTypes()
NULLor a pointer to an array ofdescriptorTypeCountVkDescriptorTypevalues defining which descriptor types a given binding may mutate to.
-
pDescriptorTypes
public VkMutableDescriptorTypeListVALVE pDescriptorTypes(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepDescriptorTypes()field.
-
set
public VkMutableDescriptorTypeListVALVE set(VkMutableDescriptorTypeListVALVE src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMutableDescriptorTypeListVALVE malloc()
Returns a newVkMutableDescriptorTypeListVALVEinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMutableDescriptorTypeListVALVE calloc()
Returns a newVkMutableDescriptorTypeListVALVEinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMutableDescriptorTypeListVALVE create()
Returns a newVkMutableDescriptorTypeListVALVEinstance allocated withBufferUtils.
-
create
public static VkMutableDescriptorTypeListVALVE create(long address)
Returns a newVkMutableDescriptorTypeListVALVEinstance for the specified memory address.
-
createSafe
@Nullable public static VkMutableDescriptorTypeListVALVE createSafe(long address)
-
malloc
public static VkMutableDescriptorTypeListVALVE.Buffer malloc(int capacity)
Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMutableDescriptorTypeListVALVE.Buffer calloc(int capacity)
Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMutableDescriptorTypeListVALVE.Buffer create(int capacity)
Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMutableDescriptorTypeListVALVE.Buffer create(long address, int capacity)
Create aVkMutableDescriptorTypeListVALVE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMutableDescriptorTypeListVALVE.Buffer createSafe(long address, int capacity)
-
malloc
public static VkMutableDescriptorTypeListVALVE malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMutableDescriptorTypeListVALVEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkMutableDescriptorTypeListVALVE calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMutableDescriptorTypeListVALVEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkMutableDescriptorTypeListVALVE.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkMutableDescriptorTypeListVALVE.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMutableDescriptorTypeListVALVE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ndescriptorTypeCount
public static int ndescriptorTypeCount(long struct)
Unsafe version ofdescriptorTypeCount().
-
npDescriptorTypes
@Nullable public static java.nio.IntBuffer npDescriptorTypes(long struct)
Unsafe version ofpDescriptorTypes.
-
ndescriptorTypeCount
public static void ndescriptorTypeCount(long struct, int value)Sets the specified value to thedescriptorTypeCountfield of the specifiedstruct.
-
npDescriptorTypes
public static void npDescriptorTypes(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpDescriptorTypes.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-