public class VkWriteDescriptorSet
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Only one of pImageInfo, pBufferInfo, or pTexelBufferView members is used according to the descriptor type specified in the descriptorType member of the containing VkWriteDescriptorSet structure, or none of them in case descriptorType is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT, in which case the source data for the descriptor writes is taken from the VkWriteDescriptorSetInlineUniformBlockEXT structure included in the pNext chain of VkWriteDescriptorSet, or if descriptorType is DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV, in which case the source data for the descriptor writes is taken from the VkWriteDescriptorSetAccelerationStructureNV structure in the pNext chain of VkWriteDescriptorSet, as specified below.
If the dstBinding has fewer than descriptorCount array elements remaining starting from dstArrayElement, then the remainder will be used to update the subsequent binding - dstBinding+1 starting at array element zero. If a binding has a descriptorCount of zero, it is skipped. This behavior applies recursively, with the update affecting consecutive bindings as needed to update all descriptorCount descriptors.
The same behavior applies to bindings with a descriptor type of DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT where descriptorCount specifies the number of bytes to update while dstArrayElement specifies the starting byte offset, thus in this case if the dstBinding has a smaller byte size than the sum of dstArrayElement and descriptorCount, then the remainder will be used to update the subsequent binding - dstBinding+1 starting at offset zero. This falls out as a special case of the above rule.
dstBinding must be less than or equal to the maximum value of binding of all VkDescriptorSetLayoutBinding structures specified when dstSet’s descriptor set layout was createddstBinding must be a binding with a non-zero descriptorCountVkWriteDescriptorSet structure, except those with a descriptorCount of zero, must have identical descriptorType and stageFlags.VkWriteDescriptorSet structure, except those with a descriptorCount of zero, must all either use immutable samplers or must all not use immutable samplers.descriptorType must match the type of dstBinding within dstSetdstSet must be a valid VkDescriptorSet handledstArrayElement and descriptorCount must be less than or equal to the number of array elements in the descriptor set binding specified by dstBinding, and all applicable consecutive bindings, as described by consecutive binding updatesdescriptorType is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT, dstArrayElement must be an integer multiple of 4descriptorType is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT, descriptorCount must be an integer multiple of 4descriptorType is DESCRIPTOR_TYPE_SAMPLER, DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, DESCRIPTOR_TYPE_SAMPLED_IMAGE, DESCRIPTOR_TYPE_STORAGE_IMAGE, or DESCRIPTOR_TYPE_INPUT_ATTACHMENT, pImageInfo must be a valid pointer to an array of descriptorCount valid VkDescriptorImageInfo structuresdescriptorType is DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER or DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER, pTexelBufferView must be a valid pointer to an array of descriptorCount valid VkBufferView handlesdescriptorType is DESCRIPTOR_TYPE_UNIFORM_BUFFER, DESCRIPTOR_TYPE_STORAGE_BUFFER, DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, or DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, pBufferInfo must be a valid pointer to an array of descriptorCount valid VkDescriptorBufferInfo structuresdescriptorType is DESCRIPTOR_TYPE_SAMPLER or DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, and dstSet was not allocated with a layout that included immutable samplers for dstBinding with descriptorType, the sampler member of each element of pImageInfo must be a valid VkSampler objectdescriptorType is DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, DESCRIPTOR_TYPE_SAMPLED_IMAGE, DESCRIPTOR_TYPE_STORAGE_IMAGE, or DESCRIPTOR_TYPE_INPUT_ATTACHMENT, the imageView and imageLayout members of each element of pImageInfo must be a valid VkImageView and VkImageLayout, respectivelydescriptorType is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT, the pNext chain must include a VkWriteDescriptorSetInlineUniformBlockEXT structure whose dataSize member equals descriptorCountdescriptorType is DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV, the pNext chain must include a VkWriteDescriptorSetAccelerationStructureNV structure whose accelerationStructureCount member equals descriptorCountdescriptorType is DESCRIPTOR_TYPE_SAMPLED_IMAGE, then the imageView member of each pImageInfo element must have been created without a VkSamplerYcbcrConversionInfo structure in its pNext chaindescriptorType is DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, and if any element of pImageInfo has a imageView member that was created with a VkSamplerYcbcrConversionInfo structure in its pNext chain, then dstSet must have been allocated with a layout that included immutable samplers for dstBinding, and the corresponding immutable sampler must have been created with an identically defined VkSamplerYcbcrConversionInfo objectdescriptorType is DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, and dstSet was allocated with a layout that included immutable samplers for dstBinding, then the imageView member of each element of pImageInfo which corresponds to an immutable sampler that enables sampler Y’CBCR conversion must have been created with a VkSamplerYcbcrConversionInfo structure in its pNext chain with an identically defined VkSamplerYcbcrConversionInfo to the corresponding immutable samplerdescriptorType is DESCRIPTOR_TYPE_STORAGE_IMAGE, for each descriptor that will be accessed via load or store operations the imageLayout member for corresponding elements of pImageInfo must be IMAGE_LAYOUT_GENERALdescriptorType is DESCRIPTOR_TYPE_UNIFORM_BUFFER or DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, the offset member of each element of pBufferInfo must be a multiple of VkPhysicalDeviceLimits::minUniformBufferOffsetAlignmentdescriptorType is DESCRIPTOR_TYPE_STORAGE_BUFFER or DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, the offset member of each element of pBufferInfo must be a multiple of VkPhysicalDeviceLimits::minStorageBufferOffsetAlignmentdescriptorType is DESCRIPTOR_TYPE_UNIFORM_BUFFER, DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, DESCRIPTOR_TYPE_STORAGE_BUFFER, or DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, and the buffer member of any element of pBufferInfo is the handle of a non-sparse buffer, then that buffer must be bound completely and contiguously to a single VkDeviceMemory objectdescriptorType is DESCRIPTOR_TYPE_UNIFORM_BUFFER or DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, the buffer member of each element of pBufferInfo must have been created with BUFFER_USAGE_UNIFORM_BUFFER_BIT setdescriptorType is DESCRIPTOR_TYPE_STORAGE_BUFFER or DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, the buffer member of each element of pBufferInfo must have been created with BUFFER_USAGE_STORAGE_BUFFER_BIT setdescriptorType is DESCRIPTOR_TYPE_UNIFORM_BUFFER or DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, the range member of each element of pBufferInfo, or the effective range if range is WHOLE_SIZE, must be less than or equal to VkPhysicalDeviceLimits::maxUniformBufferRangedescriptorType is DESCRIPTOR_TYPE_STORAGE_BUFFER or DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, the range member of each element of pBufferInfo, or the effective range if range is WHOLE_SIZE, must be less than or equal to VkPhysicalDeviceLimits::maxStorageBufferRangedescriptorType is DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, the VkBuffer that each element of pTexelBufferView was created from must have been created with BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT setdescriptorType is DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER, the VkBuffer that each element of pTexelBufferView was created from must have been created with BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT setdescriptorType is DESCRIPTOR_TYPE_STORAGE_IMAGE or DESCRIPTOR_TYPE_INPUT_ATTACHMENT, the imageView member of each element of pImageInfo must have been created with the identity swizzledescriptorType is DESCRIPTOR_TYPE_SAMPLED_IMAGE or DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, the imageView member of each element of pImageInfo must have been created with IMAGE_USAGE_SAMPLED_BIT setdescriptorType is DESCRIPTOR_TYPE_SAMPLED_IMAGE or DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, the imageLayout member of each element of pImageInfo must be a member of the list given in Sampled Image or Combined Image Sampler, corresponding to its typedescriptorType is DESCRIPTOR_TYPE_INPUT_ATTACHMENT, the imageView member of each element of pImageInfo must have been created with IMAGE_USAGE_INPUT_ATTACHMENT_BIT setdescriptorType is DESCRIPTOR_TYPE_STORAGE_IMAGE, the imageView member of each element of pImageInfo must have been created with IMAGE_USAGE_STORAGE_BIT setVkWriteDescriptorSet structure, except those with a descriptorCount of zero, must have identical VkDescriptorBindingFlagBitsEXT.descriptorType is DESCRIPTOR_TYPE_SAMPLER, then dstSet must not have been allocated with a layout that included immutable samplers for dstBindingsType must be STRUCTURE_TYPE_WRITE_DESCRIPTOR_SETpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkWriteDescriptorSetAccelerationStructureNV or VkWriteDescriptorSetInlineUniformBlockEXTsType member in the pNext chain must be uniquedescriptorType must be a valid VkDescriptorType valuedescriptorCount must be greater than 0dstSet, and the elements of pTexelBufferView that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDeviceVkDescriptorBufferInfo, VkDescriptorImageInfo, CmdPushDescriptorSetKHR, UpdateDescriptorSets
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.dstSet – the destination descriptor set to update.dstBinding – the descriptor binding within that set.dstArrayElement – the starting element in that array. If the descriptor binding identified by dstSet and dstBinding has a descriptor type of DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT then dstArrayElement specifies the starting byte offset within the binding.descriptorCount – the number of descriptors to update (the number of elements in pImageInfo, pBufferInfo, or pTexelBufferView , or a value matching the dataSize member of a VkWriteDescriptorSetInlineUniformBlockEXT structure in the pNext chain , or a value matching the accelerationStructureCount of a VkWriteDescriptorSetAccelerationStructureNV structure in the pNext chain ). If the descriptor binding identified by dstSet and dstBinding has a descriptor type of DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT then descriptorCount specifies the number of bytes to update.descriptorType – a VkDescriptorType specifying the type of each descriptor in pImageInfo, pBufferInfo, or pTexelBufferView, as described below. It must be the same type as that specified in VkDescriptorSetLayoutBinding for dstSet at dstBinding. The type of the descriptor also controls which array the descriptors are taken from.pImageInfo – a pointer to an array of VkDescriptorImageInfo structures or is ignored, as described below.pBufferInfo – a pointer to an array of VkDescriptorBufferInfo structures or is ignored, as described below.pTexelBufferView – a pointer to an array of VkBufferView handles as described in the Buffer Views section or is ignored, as described below.
struct VkWriteDescriptorSet {
VkStructureType sType;
void const * pNext;
VkDescriptorSet dstSet;
uint32_t dstBinding;
uint32_t dstArrayElement;
uint32_t descriptorCount;
VkDescriptorType descriptorType;
VkDescriptorImageInfo const * pImageInfo;
VkDescriptorBufferInfo const * pBufferInfo;
VkBufferView const * pTexelBufferView;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkWriteDescriptorSet.Buffer
An array of
VkWriteDescriptorSet structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DESCRIPTORCOUNT
The struct member offsets.
|
static int |
DESCRIPTORTYPE
The struct member offsets.
|
static int |
DSTARRAYELEMENT
The struct member offsets.
|
static int |
DSTBINDING
The struct member offsets.
|
static int |
DSTSET
The struct member offsets.
|
static int |
PBUFFERINFO
The struct member offsets.
|
static int |
PIMAGEINFO
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PTEXELBUFFERVIEW
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkWriteDescriptorSet(java.nio.ByteBuffer container)
Creates a
VkWriteDescriptorSet instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkWriteDescriptorSet |
calloc()
Returns a new
VkWriteDescriptorSet instance allocated with memCalloc. |
static VkWriteDescriptorSet.Buffer |
calloc(int capacity)
Returns a new
VkWriteDescriptorSet.Buffer instance allocated with memCalloc. |
static VkWriteDescriptorSet |
callocStack()
Returns a new
VkWriteDescriptorSet instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkWriteDescriptorSet.Buffer |
callocStack(int capacity)
Returns a new
VkWriteDescriptorSet.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkWriteDescriptorSet.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkWriteDescriptorSet.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkWriteDescriptorSet |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkWriteDescriptorSet instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkWriteDescriptorSet |
create()
Returns a new
VkWriteDescriptorSet instance allocated with BufferUtils. |
static VkWriteDescriptorSet.Buffer |
create(int capacity)
Returns a new
VkWriteDescriptorSet.Buffer instance allocated with BufferUtils. |
static VkWriteDescriptorSet |
create(long address)
Returns a new
VkWriteDescriptorSet instance for the specified memory address. |
static VkWriteDescriptorSet.Buffer |
create(long address,
int capacity)
Create a
VkWriteDescriptorSet.Buffer instance at the specified memory. |
static VkWriteDescriptorSet |
createSafe(long address)
|
static VkWriteDescriptorSet.Buffer |
createSafe(long address,
int capacity)
|
int |
descriptorCount()
Returns the value of the
descriptorCount field. |
VkWriteDescriptorSet |
descriptorCount(int value)
Sets the specified value to the
descriptorCount field. |
int |
descriptorType()
Returns the value of the
descriptorType field. |
VkWriteDescriptorSet |
descriptorType(int value)
Sets the specified value to the
descriptorType field. |
int |
dstArrayElement()
Returns the value of the
dstArrayElement field. |
VkWriteDescriptorSet |
dstArrayElement(int value)
Sets the specified value to the
dstArrayElement field. |
int |
dstBinding()
Returns the value of the
dstBinding field. |
VkWriteDescriptorSet |
dstBinding(int value)
Sets the specified value to the
dstBinding field. |
long |
dstSet()
Returns the value of the
dstSet field. |
VkWriteDescriptorSet |
dstSet(long value)
Sets the specified value to the
dstSet field. |
static VkWriteDescriptorSet |
malloc()
Returns a new
VkWriteDescriptorSet instance allocated with memAlloc. |
static VkWriteDescriptorSet.Buffer |
malloc(int capacity)
Returns a new
VkWriteDescriptorSet.Buffer instance allocated with memAlloc. |
static VkWriteDescriptorSet |
mallocStack()
Returns a new
VkWriteDescriptorSet instance allocated on the thread-local MemoryStack. |
static VkWriteDescriptorSet.Buffer |
mallocStack(int capacity)
Returns a new
VkWriteDescriptorSet.Buffer instance allocated on the thread-local MemoryStack. |
static VkWriteDescriptorSet.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkWriteDescriptorSet.Buffer instance allocated on the specified MemoryStack. |
static VkWriteDescriptorSet |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkWriteDescriptorSet instance allocated on the specified MemoryStack. |
static int |
ndescriptorCount(long struct)
Unsafe version of
descriptorCount(). |
static void |
ndescriptorCount(long struct,
int value)
Sets the specified value to the
descriptorCount field of the specified struct. |
static int |
ndescriptorType(long struct)
Unsafe version of
descriptorType(). |
static void |
ndescriptorType(long struct,
int value)
Unsafe version of
descriptorType. |
static int |
ndstArrayElement(long struct)
Unsafe version of
dstArrayElement(). |
static void |
ndstArrayElement(long struct,
int value)
Unsafe version of
dstArrayElement. |
static int |
ndstBinding(long struct)
Unsafe version of
dstBinding(). |
static void |
ndstBinding(long struct,
int value)
Unsafe version of
dstBinding. |
static long |
ndstSet(long struct)
Unsafe version of
dstSet(). |
static void |
ndstSet(long struct,
long value)
Unsafe version of
dstSet. |
static VkDescriptorBufferInfo.Buffer |
npBufferInfo(long struct)
Unsafe version of
pBufferInfo(). |
static void |
npBufferInfo(long struct,
VkDescriptorBufferInfo.Buffer value)
Unsafe version of
pBufferInfo. |
static VkDescriptorImageInfo.Buffer |
npImageInfo(long struct)
Unsafe version of
pImageInfo(). |
static void |
npImageInfo(long struct,
VkDescriptorImageInfo.Buffer value)
Unsafe version of
pImageInfo. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.LongBuffer |
npTexelBufferView(long struct)
Unsafe version of
pTexelBufferView. |
static void |
npTexelBufferView(long struct,
java.nio.LongBuffer value)
Unsafe version of
pTexelBufferView. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkDescriptorBufferInfo.Buffer |
pBufferInfo()
Returns a
VkDescriptorBufferInfo.Buffer view of the struct array pointed to by the pBufferInfo field. |
VkWriteDescriptorSet |
pBufferInfo(VkDescriptorBufferInfo.Buffer value)
Sets the address of the specified
VkDescriptorBufferInfo.Buffer to the pBufferInfo field. |
VkDescriptorImageInfo.Buffer |
pImageInfo()
Returns a
VkDescriptorImageInfo.Buffer view of the struct array pointed to by the pImageInfo field. |
VkWriteDescriptorSet |
pImageInfo(VkDescriptorImageInfo.Buffer value)
Sets the address of the specified
VkDescriptorImageInfo.Buffer to the pImageInfo field. |
long |
pNext()
Returns the value of the
pNext field. |
VkWriteDescriptorSet |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.LongBuffer |
pTexelBufferView()
Returns a
LongBuffer view of the data pointed to by the pTexelBufferView field. |
VkWriteDescriptorSet |
pTexelBufferView(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pTexelBufferView field. |
VkWriteDescriptorSet |
set(int sType,
long pNext,
long dstSet,
int dstBinding,
int dstArrayElement,
int descriptorCount,
int descriptorType,
VkDescriptorImageInfo.Buffer pImageInfo,
VkDescriptorBufferInfo.Buffer pBufferInfo,
java.nio.LongBuffer pTexelBufferView)
Initializes this struct with the specified values.
|
VkWriteDescriptorSet |
set(VkWriteDescriptorSet src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkWriteDescriptorSet |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int DSTSET
public static final int DSTBINDING
public static final int DSTARRAYELEMENT
public static final int DESCRIPTORCOUNT
public static final int DESCRIPTORTYPE
public static final int PIMAGEINFO
public static final int PBUFFERINFO
public static final int PTEXELBUFFERVIEW
public VkWriteDescriptorSet(java.nio.ByteBuffer container)
VkWriteDescriptorSet instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long dstSet()
dstSet field.public int dstBinding()
dstBinding field.public int dstArrayElement()
dstArrayElement field.public int descriptorCount()
descriptorCount field.public int descriptorType()
descriptorType field.@Nullable public VkDescriptorImageInfo.Buffer pImageInfo()
VkDescriptorImageInfo.Buffer view of the struct array pointed to by the pImageInfo field.@Nullable public VkDescriptorBufferInfo.Buffer pBufferInfo()
VkDescriptorBufferInfo.Buffer view of the struct array pointed to by the pBufferInfo field.@Nullable public java.nio.LongBuffer pTexelBufferView()
LongBuffer view of the data pointed to by the pTexelBufferView field.public VkWriteDescriptorSet sType(int value)
sType field.public VkWriteDescriptorSet pNext(long value)
pNext field.public VkWriteDescriptorSet dstSet(long value)
dstSet field.public VkWriteDescriptorSet dstBinding(int value)
dstBinding field.public VkWriteDescriptorSet dstArrayElement(int value)
dstArrayElement field.public VkWriteDescriptorSet descriptorCount(int value)
descriptorCount field.public VkWriteDescriptorSet descriptorType(int value)
descriptorType field.public VkWriteDescriptorSet pImageInfo(@Nullable VkDescriptorImageInfo.Buffer value)
VkDescriptorImageInfo.Buffer to the pImageInfo field.public VkWriteDescriptorSet pBufferInfo(@Nullable VkDescriptorBufferInfo.Buffer value)
VkDescriptorBufferInfo.Buffer to the pBufferInfo field.public VkWriteDescriptorSet pTexelBufferView(@Nullable java.nio.LongBuffer value)
LongBuffer to the pTexelBufferView field.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 java.nio.LongBuffer pTexelBufferView)
public VkWriteDescriptorSet set(VkWriteDescriptorSet src)
src - the source structpublic static VkWriteDescriptorSet malloc()
VkWriteDescriptorSet instance allocated with memAlloc. The instance must be explicitly freed.public static VkWriteDescriptorSet calloc()
VkWriteDescriptorSet instance allocated with memCalloc. The instance must be explicitly freed.public static VkWriteDescriptorSet create()
VkWriteDescriptorSet instance allocated with BufferUtils.public static VkWriteDescriptorSet create(long address)
VkWriteDescriptorSet instance for the specified memory address.@Nullable public static VkWriteDescriptorSet createSafe(long address)
public static VkWriteDescriptorSet.Buffer malloc(int capacity)
VkWriteDescriptorSet.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkWriteDescriptorSet.Buffer calloc(int capacity)
VkWriteDescriptorSet.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkWriteDescriptorSet.Buffer create(int capacity)
VkWriteDescriptorSet.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkWriteDescriptorSet.Buffer create(long address, int capacity)
VkWriteDescriptorSet.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkWriteDescriptorSet.Buffer createSafe(long address, int capacity)
public static VkWriteDescriptorSet mallocStack()
VkWriteDescriptorSet instance allocated on the thread-local MemoryStack.public static VkWriteDescriptorSet callocStack()
VkWriteDescriptorSet instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkWriteDescriptorSet mallocStack(org.lwjgl.system.MemoryStack stack)
VkWriteDescriptorSet instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkWriteDescriptorSet callocStack(org.lwjgl.system.MemoryStack stack)
VkWriteDescriptorSet instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkWriteDescriptorSet.Buffer mallocStack(int capacity)
VkWriteDescriptorSet.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkWriteDescriptorSet.Buffer callocStack(int capacity)
VkWriteDescriptorSet.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkWriteDescriptorSet.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkWriteDescriptorSet.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkWriteDescriptorSet.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkWriteDescriptorSet.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long ndstSet(long struct)
dstSet().public static int ndstBinding(long struct)
dstBinding().public static int ndstArrayElement(long struct)
dstArrayElement().public static int ndescriptorCount(long struct)
descriptorCount().public static int ndescriptorType(long struct)
descriptorType().@Nullable public static VkDescriptorImageInfo.Buffer npImageInfo(long struct)
pImageInfo().@Nullable public static VkDescriptorBufferInfo.Buffer npBufferInfo(long struct)
pBufferInfo().@Nullable public static java.nio.LongBuffer npTexelBufferView(long struct)
pTexelBufferView.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndstSet(long struct,
long value)
dstSet.public static void ndstBinding(long struct,
int value)
dstBinding.public static void ndstArrayElement(long struct,
int value)
dstArrayElement.public static void ndescriptorCount(long struct,
int value)
descriptorCount field of the specified struct.public static void ndescriptorType(long struct,
int value)
descriptorType.public static void npImageInfo(long struct,
@Nullable
VkDescriptorImageInfo.Buffer value)
pImageInfo.public static void npBufferInfo(long struct,
@Nullable
VkDescriptorBufferInfo.Buffer value)
pBufferInfo.public static void npTexelBufferView(long struct,
@Nullable
java.nio.LongBuffer value)
pTexelBufferView.Copyright LWJGL. All Rights Reserved. License terms.