VkPushDescriptorSetInfo
The VkPushDescriptorSetInfo structure is defined as:
typedef struct VkPushDescriptorSetInfo {
VkStructureType sType;
const void* pNext;
VkShaderStageFlags stageFlags;
VkPipelineLayout layout;
uint32_t set;
uint32_t descriptorWriteCount;
const VkWriteDescriptorSet* pDescriptorWrites;
} VkPushDescriptorSetInfo;
or the equivalent
typedef VkPushDescriptorSetInfo VkPushDescriptorSetInfoKHR;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.stageFlagsis a bitmask of VkShaderStageFlagBits specifying the shader stages that will use the descriptors.layoutis a VkPipelineLayout object used to program the bindings. If thedynamicPipelineLayoutfeature is enabled,layoutcan be VK_NULL_HANDLE and the layout must be specified by chaining VkPipelineLayoutCreateInfo structure off thepNextsetis the set number of the descriptor set in the pipeline layout that will be updated.descriptorWriteCountis the number of elements in thepDescriptorWritesarray.pDescriptorWritesis a pointer to an array of VkWriteDescriptorSet structures describing the descriptors to be updated.
If stageFlags specifies a subset of all stages corresponding to one or
more pipeline bind points, the binding operation still affects all stages
corresponding to the given pipeline bind point(s) as if the equivalent
original version of this command had been called with the same parameters.
For example, specifying a stageFlags value of
VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT |
VK_SHADER_STAGE_COMPUTE_BIT is equivalent to calling the original
version of this command once with VK_PIPELINE_BIND_POINT_GRAPHICS and
once with VK_PIPELINE_BIND_POINT_COMPUTE.
Valid Usage
VUID-VkPushDescriptorSetInfo-set-00364
set must be less than
VkPipelineLayoutCreateInfo::setLayoutCount provided when
layout was created
VUID-VkPushDescriptorSetInfo-set-00365
set must be the unique set number in the pipeline layout that
uses a descriptor set layout that was created with
VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT
VUID-VkPushDescriptorSetInfo-pDescriptorWrites-06494
For each element i where
pDescriptorWrites[i].descriptorType is
VK_DESCRIPTOR_TYPE_SAMPLER,
VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE,
VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, or
VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT,
pDescriptorWrites[i].pImageInfo must be a valid pointer to
an array of pDescriptorWrites[i].descriptorCount valid
VkDescriptorImageInfo structures
VUID-VkPushDescriptorSetInfo-None-09495
If the dynamicPipelineLayout
feature is not enabled,
layout must be a valid VkPipelineLayout handle
VUID-VkPushDescriptorSetInfo-layout-09496
If layout is VK_NULL_HANDLE, the pNext chain must
include a valid VkPipelineLayoutCreateInfo structure
Valid Usage (Implicit)
VUID-VkPushDescriptorSetInfo-sType-sType
sType must be VK_STRUCTURE_TYPE_PUSH_DESCRIPTOR_SET_INFO
VUID-VkPushDescriptorSetInfo-pNext-pNext
pNext must be NULL or a pointer to a valid instance of VkPipelineLayoutCreateInfo
VUID-VkPushDescriptorSetInfo-sType-unique
The sType value of each structure in the pNext chain must be unique
VUID-VkPushDescriptorSetInfo-stageFlags-parameter
stageFlags must be a valid combination of VkShaderStageFlagBits values
VUID-VkPushDescriptorSetInfo-stageFlags-requiredbitmask
stageFlags must not be 0
VUID-VkPushDescriptorSetInfo-layout-parameter
If layout is not VK_NULL_HANDLE, layout must be a valid VkPipelineLayout handle
VUID-VkPushDescriptorSetInfo-pDescriptorWrites-parameter
pDescriptorWrites must be a valid pointer to an array of descriptorWriteCount valid VkWriteDescriptorSet structures
VUID-VkPushDescriptorSetInfo-descriptorWriteCount-arraylength
descriptorWriteCount must be greater than 0