Package org.lwjgl.vulkan
Class VkWriteDescriptorSet
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkWriteDescriptorSet {
VkStructureType sType;
void const * pNext;
VkDescriptorSet dstSet;
uint32_t dstBinding;
uint32_t dstArrayElement;
uint32_t descriptorCount;
VkDescriptorType descriptorType;
{@link VkDescriptorImageInfo VkDescriptorImageInfo} const * pImageInfo;
{@link VkDescriptorBufferInfo VkDescriptorBufferInfo} const * pBufferInfo;
VkBufferView const * pTexelBufferView;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkWriteDescriptorSet(ByteBuffer container) Creates aVkWriteDescriptorSetinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkWriteDescriptorSetcalloc()Returns a newVkWriteDescriptorSetinstance allocated withmemCalloc.static VkWriteDescriptorSet.Buffercalloc(int capacity) Returns a newVkWriteDescriptorSet.Bufferinstance allocated withmemCalloc.static VkWriteDescriptorSet.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkWriteDescriptorSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetcalloc(MemoryStack stack) Returns a newVkWriteDescriptorSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetDeprecated.static VkWriteDescriptorSet.BuffercallocStack(int capacity) Deprecated.static VkWriteDescriptorSet.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static VkWriteDescriptorSetcallocStack(MemoryStack stack) Deprecated.static VkWriteDescriptorSetcreate()Returns a newVkWriteDescriptorSetinstance allocated withBufferUtils.static VkWriteDescriptorSet.Buffercreate(int capacity) Returns a newVkWriteDescriptorSet.Bufferinstance allocated withBufferUtils.static VkWriteDescriptorSetcreate(long address) Returns a newVkWriteDescriptorSetinstance for the specified memory address.static VkWriteDescriptorSet.Buffercreate(long address, int capacity) Create aVkWriteDescriptorSet.Bufferinstance at the specified memory.static @Nullable VkWriteDescriptorSetcreateSafe(long address) static @Nullable VkWriteDescriptorSet.BuffercreateSafe(long address, int capacity) intdescriptorCount(int value) Sets the specified value to thedescriptorCountfield.intdescriptorType(int value) Sets the specified value to thedescriptorTypefield.intdstArrayElement(int value) Sets the specified value to thedstArrayElementfield.intdstBinding(int value) Sets the specified value to thedstBindingfield.longdstSet()dstSet(long value) Sets the specified value to thedstSetfield.static VkWriteDescriptorSetmalloc()Returns a newVkWriteDescriptorSetinstance allocated withmemAlloc.static VkWriteDescriptorSet.Buffermalloc(int capacity) Returns a newVkWriteDescriptorSet.Bufferinstance allocated withmemAlloc.static VkWriteDescriptorSet.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkWriteDescriptorSet.Bufferinstance allocated on the specifiedMemoryStack.static VkWriteDescriptorSetmalloc(MemoryStack stack) Returns a newVkWriteDescriptorSetinstance allocated on the specifiedMemoryStack.static VkWriteDescriptorSetDeprecated.static VkWriteDescriptorSet.BuffermallocStack(int capacity) Deprecated.static VkWriteDescriptorSet.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkWriteDescriptorSetmallocStack(MemoryStack stack) Deprecated.static intndescriptorCount(long struct) Unsafe version ofdescriptorCount().static voidndescriptorCount(long struct, int value) Sets the specified value to thedescriptorCountfield of the specifiedstruct.static intndescriptorType(long struct) Unsafe version ofdescriptorType().static voidndescriptorType(long struct, int value) Unsafe version ofdescriptorType.static intndstArrayElement(long struct) Unsafe version ofdstArrayElement().static voidndstArrayElement(long struct, int value) Unsafe version ofdstArrayElement.static intndstBinding(long struct) Unsafe version ofdstBinding().static voidndstBinding(long struct, int value) Unsafe version ofdstBinding.static longndstSet(long struct) Unsafe version ofdstSet().static voidndstSet(long struct, long value) Unsafe version ofdstSet.static @Nullable VkDescriptorBufferInfo.BuffernpBufferInfo(long struct) Unsafe version ofpBufferInfo().static voidnpBufferInfo(long struct, @Nullable VkDescriptorBufferInfo.Buffer value) Unsafe version ofpBufferInfo.static @Nullable VkDescriptorImageInfo.BuffernpImageInfo(long struct) Unsafe version ofpImageInfo().static voidnpImageInfo(long struct, @Nullable VkDescriptorImageInfo.Buffer value) Unsafe version ofpImageInfo.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable LongBuffernpTexelBufferView(long struct) Unsafe version ofpTexelBufferView.static voidnpTexelBufferView(long struct, @Nullable LongBuffer value) Unsafe version ofpTexelBufferView.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.@Nullable VkDescriptorBufferInfo.BufferpBufferInfo(@Nullable VkDescriptorBufferInfo.Buffer value) Sets the address of the specifiedVkDescriptorBufferInfo.Bufferto thepBufferInfofield.@Nullable VkDescriptorImageInfo.BufferpImageInfo(@Nullable VkDescriptorImageInfo.Buffer value) Sets the address of the specifiedVkDescriptorImageInfo.Bufferto thepImageInfofield.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkWriteDescriptorSetAccelerationStructureKHRvalue to thepNextchain.Prepends the specifiedVkWriteDescriptorSetAccelerationStructureNVvalue to thepNextchain.Prepends the specifiedVkWriteDescriptorSetInlineUniformBlockvalue to thepNextchain.Prepends the specifiedVkWriteDescriptorSetInlineUniformBlockEXTvalue to thepNextchain.Prepends the specifiedVkWriteDescriptorSetPartitionedAccelerationStructureNVvalue to thepNextchain.Prepends the specifiedVkWriteDescriptorSetTensorARMvalue to thepNextchain.@Nullable LongBufferpTexelBufferView(@Nullable LongBuffer value) Sets the address of the specifiedLongBufferto thepTexelBufferViewfield.set(int sType, long pNext, long dstSet, int dstBinding, int dstArrayElement, int descriptorCount, int descriptorType, @Nullable VkDescriptorImageInfo.Buffer pImageInfo, @Nullable VkDescriptorBufferInfo.Buffer pBufferInfo, @Nullable LongBuffer pTexelBufferView) Initializes this struct with the specified values.set(VkWriteDescriptorSet src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SETvalue to thesTypefield.Methods 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. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
DSTSET
public static final int DSTSETThe struct member offsets. -
DSTBINDING
public static final int DSTBINDINGThe struct member offsets. -
DSTARRAYELEMENT
public static final int DSTARRAYELEMENTThe struct member offsets. -
DESCRIPTORCOUNT
public static final int DESCRIPTORCOUNTThe struct member offsets. -
DESCRIPTORTYPE
public static final int DESCRIPTORTYPEThe struct member offsets. -
PIMAGEINFO
public static final int PIMAGEINFOThe struct member offsets. -
PBUFFERINFO
public static final int PBUFFERINFOThe struct member offsets. -
PTEXELBUFFERVIEW
public static final int PTEXELBUFFERVIEWThe struct member offsets.
-
-
Constructor Details
-
VkWriteDescriptorSet
Creates aVkWriteDescriptorSetinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkWriteDescriptorSet>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
dstSet
public long dstSet()- Returns:
- the value of the
dstSetfield.
-
dstBinding
public int dstBinding()- Returns:
- the value of the
dstBindingfield.
-
dstArrayElement
public int dstArrayElement()- Returns:
- the value of the
dstArrayElementfield.
-
descriptorCount
public int descriptorCount()- Returns:
- the value of the
descriptorCountfield.
-
descriptorType
public int descriptorType()- Returns:
- the value of the
descriptorTypefield.
-
pImageInfo
- Returns:
- a
VkDescriptorImageInfo.Bufferview of the struct array pointed to by thepImageInfofield.
-
pBufferInfo
- Returns:
- a
VkDescriptorBufferInfo.Bufferview of the struct array pointed to by thepBufferInfofield.
-
pTexelBufferView
- Returns:
- a
LongBufferview of the data pointed to by thepTexelBufferViewfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SETvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkWriteDescriptorSetAccelerationStructureKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkWriteDescriptorSetAccelerationStructureNVvalue to thepNextchain. -
pNext
Prepends the specifiedVkWriteDescriptorSetInlineUniformBlockvalue to thepNextchain. -
pNext
Prepends the specifiedVkWriteDescriptorSetInlineUniformBlockEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkWriteDescriptorSetPartitionedAccelerationStructureNVvalue to thepNextchain. -
pNext
Prepends the specifiedVkWriteDescriptorSetTensorARMvalue to thepNextchain. -
dstSet
Sets the specified value to thedstSetfield. -
dstBinding
Sets the specified value to thedstBindingfield. -
dstArrayElement
Sets the specified value to thedstArrayElementfield. -
descriptorCount
Sets the specified value to thedescriptorCountfield. -
descriptorType
Sets the specified value to thedescriptorTypefield. -
pImageInfo
Sets the address of the specifiedVkDescriptorImageInfo.Bufferto thepImageInfofield. -
pBufferInfo
Sets the address of the specifiedVkDescriptorBufferInfo.Bufferto thepBufferInfofield. -
pTexelBufferView
Sets the address of the specifiedLongBufferto thepTexelBufferViewfield. -
set
public VkWriteDescriptorSet set(int sType, long pNext, long dstSet, int dstBinding, int dstArrayElement, int descriptorCount, int descriptorType, @Nullable VkDescriptorImageInfo.Buffer pImageInfo, @Nullable VkDescriptorBufferInfo.Buffer pBufferInfo, @Nullable LongBuffer pTexelBufferView) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkWriteDescriptorSetinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkWriteDescriptorSetinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkWriteDescriptorSetinstance allocated withBufferUtils. -
create
Returns a newVkWriteDescriptorSetinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkWriteDescriptorSet.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkWriteDescriptorSet.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkWriteDescriptorSet.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkWriteDescriptorSet.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkWriteDescriptorSetinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkWriteDescriptorSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkWriteDescriptorSet.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkWriteDescriptorSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
ndstSet
public static long ndstSet(long struct) Unsafe version ofdstSet(). -
ndstBinding
public static int ndstBinding(long struct) Unsafe version ofdstBinding(). -
ndstArrayElement
public static int ndstArrayElement(long struct) Unsafe version ofdstArrayElement(). -
ndescriptorCount
public static int ndescriptorCount(long struct) Unsafe version ofdescriptorCount(). -
ndescriptorType
public static int ndescriptorType(long struct) Unsafe version ofdescriptorType(). -
npImageInfo
Unsafe version ofpImageInfo(). -
npBufferInfo
Unsafe version ofpBufferInfo(). -
npTexelBufferView
Unsafe version ofpTexelBufferView. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
ndstSet
public static void ndstSet(long struct, long value) Unsafe version ofdstSet. -
ndstBinding
public static void ndstBinding(long struct, int value) Unsafe version ofdstBinding. -
ndstArrayElement
public static void ndstArrayElement(long struct, int value) Unsafe version ofdstArrayElement. -
ndescriptorCount
public static void ndescriptorCount(long struct, int value) Sets the specified value to thedescriptorCountfield of the specifiedstruct. -
ndescriptorType
public static void ndescriptorType(long struct, int value) Unsafe version ofdescriptorType. -
npImageInfo
Unsafe version ofpImageInfo. -
npBufferInfo
Unsafe version ofpBufferInfo. -
npTexelBufferView
Unsafe version ofpTexelBufferView.
-