Function Prototype
vkCmdPushConstants2
Update the values of push constants
Alternatively, to update push constants, call:
void vkCmdPushConstants2KHR(
VkCommandBuffer commandBuffer,
const VkPushConstantsInfo* pPushConstantsInfo);
commandBufferis the command buffer in which the push constant update will be recorded.pPushConstantsInfois a pointer to a VkPushConstantsInfo structure.
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 graphics, or compute 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 ::