Function Prototype
vkCmdPushConstants2
Update the values of push constants
To update push constants, call:
void vkCmdPushConstants2(
VkCommandBuffer commandBuffer,
const VkPushConstantsInfo* pPushConstantsInfo);
pub fn cmd_push_constants2(
command_buffer: vk::CommandBuffer,
p_push_constants_info: *const vk::PushConstantsInfo,
);
void vkCmdPushConstants2KHR(
VkCommandBuffer commandBuffer,
const VkPushConstantsInfo* pPushConstantsInfo);
pub fn cmd_push_constants2_khr(
command_buffer: vk::CommandBuffer,
p_push_constants_info: *const vk::PushConstantsInfo,
);
commandBufferis the command buffer in which the push constant update will be recorded.pPushConstantsInfois a pointer to a VkPushConstantsInfo structure.
Valid Usage
VUID-vkCmdPushConstants2-commandBuffer-11295
If commandBuffer is a secondary command buffer, it must have
begun with
VkCommandBufferInheritanceDescriptorHeapInfoEXT::pSamplerHeapBindInfo
equal to NULL
VUID-vkCmdPushConstants2-commandBuffer-11296
If commandBuffer is a secondary command buffer, it must have
begun with
VkCommandBufferInheritanceDescriptorHeapInfoEXT::pResourceHeapBindInfo
equal to NULL
Valid Usage (Implicit)
VUID-vkCmdPushConstants2-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdPushConstants2-pPushConstantsInfo-parameter
pPushConstantsInfo must be a valid pointer to a valid VkPushConstantsInfo structure
VUID-vkCmdPushConstants2-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdPushConstants2-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_COMPUTE_BIT, or VK_QUEUE_GRAPHICS_BIT operations
VUID-vkCmdPushConstants2-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
Parent
VK_VERSION_1_4Type
Function Prototype
Command Buffer Level
primarysecondary
Queue Types
VK_QUEUE_GRAPHICS_BITVK_QUEUE_COMPUTE_BIT
Command Type
state