public class VkDescriptorUpdateTemplateCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
templateType is DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET, descriptorSetLayout must be a valid VkDescriptorSetLayout handletemplateType is DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR, pipelineBindPoint must be a valid VkPipelineBindPoint valuetemplateType is DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR, pipelineLayout must be a valid VkPipelineLayout handletemplateType is DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR, set must be the unique set number in the pipeline layout that uses a descriptor set layout that was created with DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHRsType must be STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFOpNext must be NULLflags must be 0pDescriptorUpdateEntries must be a valid pointer to an array of descriptorUpdateEntryCount valid VkDescriptorUpdateTemplateEntry structurestemplateType must be a valid VkDescriptorUpdateTemplateType valuedescriptorUpdateEntryCount must be greater than 0descriptorSetLayout, and pipelineLayout that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDeviceVkDescriptorUpdateTemplateEntry, CreateDescriptorUpdateTemplate, CreateDescriptorUpdateTemplateKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.descriptorUpdateEntryCount – the number of elements in the pDescriptorUpdateEntries array.pDescriptorUpdateEntries – a pointer to an array of VkDescriptorUpdateTemplateEntry structures describing the descriptors to be updated by the descriptor update template.templateType – Specifies the type of the descriptor update template. If set to DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET it can only be used to update descriptor sets with a fixed descriptorSetLayout. If set to DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR it can only be used to push descriptor sets using the provided pipelineBindPoint, pipelineLayout, and set number.descriptorSetLayout – the descriptor set layout the parameter update template will be used with. All descriptor sets which are going to be updated through the newly created descriptor update template must be created with this layout. descriptorSetLayout is the descriptor set layout used to build the descriptor update template. All descriptor sets which are going to be updated through the newly created descriptor update template must be created with a layout that matches (is the same as, or defined identically to) this layout. This parameter is ignored if templateType is not DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET.pipelineBindPoint – a VkPipelineBindPoint indicating whether the descriptors will be used by graphics pipelines or compute pipelines. This parameter is ignored if templateType is not DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHRpipelineLayout – a VkPipelineLayout object used to program the bindings. This parameter is ignored if templateType is not DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHRset – the set number of the descriptor set in the pipeline layout that will be updated. This parameter is ignored if templateType is not DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR
struct VkDescriptorUpdateTemplateCreateInfo {
VkStructureType sType;
void const * pNext;
VkDescriptorUpdateTemplateCreateFlags flags;
uint32_t descriptorUpdateEntryCount;
VkDescriptorUpdateTemplateEntry const * pDescriptorUpdateEntries;
VkDescriptorUpdateTemplateType templateType;
VkDescriptorSetLayout descriptorSetLayout;
VkPipelineBindPoint pipelineBindPoint;
VkPipelineLayout pipelineLayout;
uint32_t set;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDescriptorUpdateTemplateCreateInfo.Buffer
An array of
VkDescriptorUpdateTemplateCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DESCRIPTORSETLAYOUT
The struct member offsets.
|
static int |
DESCRIPTORUPDATEENTRYCOUNT
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PDESCRIPTORUPDATEENTRIES
The struct member offsets.
|
static int |
PIPELINEBINDPOINT
The struct member offsets.
|
static int |
PIPELINELAYOUT
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SET
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
TEMPLATETYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDescriptorUpdateTemplateCreateInfo(java.nio.ByteBuffer container)
Creates a
VkDescriptorUpdateTemplateCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDescriptorUpdateTemplateCreateInfo |
calloc()
Returns a new
VkDescriptorUpdateTemplateCreateInfo instance allocated with memCalloc. |
static VkDescriptorUpdateTemplateCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated with memCalloc. |
static VkDescriptorUpdateTemplateCreateInfo |
callocStack()
Returns a new
VkDescriptorUpdateTemplateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorUpdateTemplateCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDescriptorUpdateTemplateCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorUpdateTemplateCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorUpdateTemplateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDescriptorUpdateTemplateCreateInfo |
create()
Returns a new
VkDescriptorUpdateTemplateCreateInfo instance allocated with BufferUtils. |
static VkDescriptorUpdateTemplateCreateInfo.Buffer |
create(int capacity)
Returns a new
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated with BufferUtils. |
static VkDescriptorUpdateTemplateCreateInfo |
create(long address)
Returns a new
VkDescriptorUpdateTemplateCreateInfo instance for the specified memory address. |
static VkDescriptorUpdateTemplateCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkDescriptorUpdateTemplateCreateInfo.Buffer instance at the specified memory. |
static VkDescriptorUpdateTemplateCreateInfo |
createSafe(long address)
|
static VkDescriptorUpdateTemplateCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
long |
descriptorSetLayout()
Returns the value of the
descriptorSetLayout field. |
VkDescriptorUpdateTemplateCreateInfo |
descriptorSetLayout(long value)
Sets the specified value to the
descriptorSetLayout field. |
int |
descriptorUpdateEntryCount()
Returns the value of the
descriptorUpdateEntryCount field. |
int |
flags()
Returns the value of the
flags field. |
VkDescriptorUpdateTemplateCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkDescriptorUpdateTemplateCreateInfo |
malloc()
Returns a new
VkDescriptorUpdateTemplateCreateInfo instance allocated with memAlloc. |
static VkDescriptorUpdateTemplateCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated with memAlloc. |
static VkDescriptorUpdateTemplateCreateInfo |
mallocStack()
Returns a new
VkDescriptorUpdateTemplateCreateInfo instance allocated on the thread-local MemoryStack. |
static VkDescriptorUpdateTemplateCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkDescriptorUpdateTemplateCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkDescriptorUpdateTemplateCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDescriptorUpdateTemplateCreateInfo instance allocated on the specified MemoryStack. |
static long |
ndescriptorSetLayout(long struct)
Unsafe version of
descriptorSetLayout(). |
static void |
ndescriptorSetLayout(long struct,
long value)
Unsafe version of
descriptorSetLayout. |
static int |
ndescriptorUpdateEntryCount(long struct)
Unsafe version of
descriptorUpdateEntryCount(). |
static void |
ndescriptorUpdateEntryCount(long struct,
int value)
Sets the specified value to the
descriptorUpdateEntryCount field of the specified struct. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkDescriptorUpdateTemplateEntry.Buffer |
npDescriptorUpdateEntries(long struct)
Unsafe version of
pDescriptorUpdateEntries(). |
static void |
npDescriptorUpdateEntries(long struct,
VkDescriptorUpdateTemplateEntry.Buffer value)
Unsafe version of
pDescriptorUpdateEntries. |
static int |
npipelineBindPoint(long struct)
Unsafe version of
pipelineBindPoint(). |
static void |
npipelineBindPoint(long struct,
int value)
Unsafe version of
pipelineBindPoint. |
static long |
npipelineLayout(long struct)
Unsafe version of
pipelineLayout(). |
static void |
npipelineLayout(long struct,
long value)
Unsafe version of
pipelineLayout. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nset(long struct)
Unsafe version of
set(). |
static void |
nset(long struct,
int value)
Unsafe version of
set. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
ntemplateType(long struct)
Unsafe version of
templateType(). |
static void |
ntemplateType(long struct,
int value)
Unsafe version of
templateType. |
VkDescriptorUpdateTemplateEntry.Buffer |
pDescriptorUpdateEntries()
Returns a
VkDescriptorUpdateTemplateEntry.Buffer view of the struct array pointed to by the pDescriptorUpdateEntries field. |
VkDescriptorUpdateTemplateCreateInfo |
pDescriptorUpdateEntries(VkDescriptorUpdateTemplateEntry.Buffer value)
Sets the address of the specified
VkDescriptorUpdateTemplateEntry.Buffer to the pDescriptorUpdateEntries field. |
int |
pipelineBindPoint()
Returns the value of the
pipelineBindPoint field. |
VkDescriptorUpdateTemplateCreateInfo |
pipelineBindPoint(int value)
Sets the specified value to the
pipelineBindPoint field. |
long |
pipelineLayout()
Returns the value of the
pipelineLayout field. |
VkDescriptorUpdateTemplateCreateInfo |
pipelineLayout(long value)
Sets the specified value to the
pipelineLayout field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDescriptorUpdateTemplateCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
set()
Returns the value of the
set field. |
VkDescriptorUpdateTemplateCreateInfo |
set(int value)
Sets the specified value to the
set field. |
VkDescriptorUpdateTemplateCreateInfo |
set(int sType,
long pNext,
int flags,
VkDescriptorUpdateTemplateEntry.Buffer pDescriptorUpdateEntries,
int templateType,
long descriptorSetLayout,
int pipelineBindPoint,
long pipelineLayout,
int set)
Initializes this struct with the specified values.
|
VkDescriptorUpdateTemplateCreateInfo |
set(VkDescriptorUpdateTemplateCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDescriptorUpdateTemplateCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
int |
templateType()
Returns the value of the
templateType field. |
VkDescriptorUpdateTemplateCreateInfo |
templateType(int value)
Sets the specified value to the
templateType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int DESCRIPTORUPDATEENTRYCOUNT
public static final int PDESCRIPTORUPDATEENTRIES
public static final int TEMPLATETYPE
public static final int DESCRIPTORSETLAYOUT
public static final int PIPELINEBINDPOINT
public static final int PIPELINELAYOUT
public static final int SET
public VkDescriptorUpdateTemplateCreateInfo(java.nio.ByteBuffer container)
VkDescriptorUpdateTemplateCreateInfo 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 int flags()
flags field.public int descriptorUpdateEntryCount()
descriptorUpdateEntryCount field.public VkDescriptorUpdateTemplateEntry.Buffer pDescriptorUpdateEntries()
VkDescriptorUpdateTemplateEntry.Buffer view of the struct array pointed to by the pDescriptorUpdateEntries field.public int templateType()
templateType field.public long descriptorSetLayout()
descriptorSetLayout field.public int pipelineBindPoint()
pipelineBindPoint field.public long pipelineLayout()
pipelineLayout field.public int set()
set field.public VkDescriptorUpdateTemplateCreateInfo sType(int value)
sType field.public VkDescriptorUpdateTemplateCreateInfo pNext(long value)
pNext field.public VkDescriptorUpdateTemplateCreateInfo flags(int value)
flags field.public VkDescriptorUpdateTemplateCreateInfo pDescriptorUpdateEntries(VkDescriptorUpdateTemplateEntry.Buffer value)
VkDescriptorUpdateTemplateEntry.Buffer to the pDescriptorUpdateEntries field.public VkDescriptorUpdateTemplateCreateInfo templateType(int value)
templateType field.public VkDescriptorUpdateTemplateCreateInfo descriptorSetLayout(long value)
descriptorSetLayout field.public VkDescriptorUpdateTemplateCreateInfo pipelineBindPoint(int value)
pipelineBindPoint field.public VkDescriptorUpdateTemplateCreateInfo pipelineLayout(long value)
pipelineLayout field.public VkDescriptorUpdateTemplateCreateInfo set(int value)
set field.public VkDescriptorUpdateTemplateCreateInfo set(int sType, long pNext, int flags, VkDescriptorUpdateTemplateEntry.Buffer pDescriptorUpdateEntries, int templateType, long descriptorSetLayout, int pipelineBindPoint, long pipelineLayout, int set)
public VkDescriptorUpdateTemplateCreateInfo set(VkDescriptorUpdateTemplateCreateInfo src)
src - the source structpublic static VkDescriptorUpdateTemplateCreateInfo malloc()
VkDescriptorUpdateTemplateCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkDescriptorUpdateTemplateCreateInfo calloc()
VkDescriptorUpdateTemplateCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkDescriptorUpdateTemplateCreateInfo create()
VkDescriptorUpdateTemplateCreateInfo instance allocated with BufferUtils.public static VkDescriptorUpdateTemplateCreateInfo create(long address)
VkDescriptorUpdateTemplateCreateInfo instance for the specified memory address.@Nullable public static VkDescriptorUpdateTemplateCreateInfo createSafe(long address)
public static VkDescriptorUpdateTemplateCreateInfo.Buffer malloc(int capacity)
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorUpdateTemplateCreateInfo.Buffer calloc(int capacity)
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDescriptorUpdateTemplateCreateInfo.Buffer create(int capacity)
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDescriptorUpdateTemplateCreateInfo.Buffer create(long address, int capacity)
VkDescriptorUpdateTemplateCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDescriptorUpdateTemplateCreateInfo.Buffer createSafe(long address, int capacity)
public static VkDescriptorUpdateTemplateCreateInfo mallocStack()
VkDescriptorUpdateTemplateCreateInfo instance allocated on the thread-local MemoryStack.public static VkDescriptorUpdateTemplateCreateInfo callocStack()
VkDescriptorUpdateTemplateCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDescriptorUpdateTemplateCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorUpdateTemplateCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDescriptorUpdateTemplateCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkDescriptorUpdateTemplateCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDescriptorUpdateTemplateCreateInfo.Buffer mallocStack(int capacity)
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDescriptorUpdateTemplateCreateInfo.Buffer callocStack(int capacity)
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDescriptorUpdateTemplateCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorUpdateTemplateCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDescriptorUpdateTemplateCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDescriptorUpdateTemplateCreateInfo.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 int nflags(long struct)
flags().public static int ndescriptorUpdateEntryCount(long struct)
descriptorUpdateEntryCount().public static VkDescriptorUpdateTemplateEntry.Buffer npDescriptorUpdateEntries(long struct)
pDescriptorUpdateEntries().public static int ntemplateType(long struct)
templateType().public static long ndescriptorSetLayout(long struct)
descriptorSetLayout().public static int npipelineBindPoint(long struct)
pipelineBindPoint().public static long npipelineLayout(long struct)
pipelineLayout().public static int nset(long struct)
set().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void ndescriptorUpdateEntryCount(long struct,
int value)
descriptorUpdateEntryCount field of the specified struct.public static void npDescriptorUpdateEntries(long struct,
VkDescriptorUpdateTemplateEntry.Buffer value)
pDescriptorUpdateEntries.public static void ntemplateType(long struct,
int value)
templateType.public static void ndescriptorSetLayout(long struct,
long value)
descriptorSetLayout.public static void npipelineBindPoint(long struct,
int value)
pipelineBindPoint.public static void npipelineLayout(long struct,
long value)
pipelineLayout.public static void nset(long struct,
int value)
set.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.