vkCmdPushDescriptorSetWithTemplate2
To use a descriptor update template to specify the push descriptors to update in a command buffer, call:
void vkCmdPushDescriptorSetWithTemplate2(
VkCommandBuffer commandBuffer,
const VkPushDescriptorSetWithTemplateInfo* pPushDescriptorSetWithTemplateInfo);
pub fn cmd_push_descriptor_set_with_template2(
command_buffer: vk::CommandBuffer,
p_push_descriptor_set_with_template_info: *const vk::PushDescriptorSetWithTemplateInfo,
);
void vkCmdPushDescriptorSetWithTemplate2KHR(
VkCommandBuffer commandBuffer,
const VkPushDescriptorSetWithTemplateInfo* pPushDescriptorSetWithTemplateInfo);
pub fn cmd_push_descriptor_set_with_template2_khr(
command_buffer: vk::CommandBuffer,
p_push_descriptor_set_with_template_info: *const vk::PushDescriptorSetWithTemplateInfo,
);
commandBufferis the command buffer that the descriptors will be recorded in.pPushDescriptorSetWithTemplateInfois a pointer to aVkPushDescriptorSetWithTemplateInfostructure.
Valid Usage
VUID-vkCmdPushDescriptorSetWithTemplate2-commandBuffer-11295
If commandBuffer is a secondary command buffer, it must have
begun with
VkCommandBufferInheritanceDescriptorHeapInfoEXT::pSamplerHeapBindInfo
equal to NULL
VUID-vkCmdPushDescriptorSetWithTemplate2-commandBuffer-11296
If commandBuffer is a secondary command buffer, it must have
begun with
VkCommandBufferInheritanceDescriptorHeapInfoEXT::pResourceHeapBindInfo
equal to NULL
Valid Usage (Implicit)
VUID-vkCmdPushDescriptorSetWithTemplate2-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdPushDescriptorSetWithTemplate2-pPushDescriptorSetWithTemplateInfo-parameter
pPushDescriptorSetWithTemplateInfo must be a valid pointer to a valid VkPushDescriptorSetWithTemplateInfo structure
VUID-vkCmdPushDescriptorSetWithTemplate2-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdPushDescriptorSetWithTemplate2-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_COMPUTE_BIT, or VK_QUEUE_GRAPHICS_BIT operations
VUID-vkCmdPushDescriptorSetWithTemplate2-videocoding
This command must only be called outside of a video coding scope
Host Synchronization
- Host access to
commandBuffermust be externally synchronized - Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized