To update push constants, call:
// Provided by VK_VERSION_1_0 void vkCmdPushConstants( VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues);
commandBufferis the command buffer in which the push constant update will be recorded.
layoutis the pipeline layout used to program the push constant updates.
stageFlagsis a bitmask of VkShaderStageFlagBits specifying the shader stages that will use the push constants in the updated range.
offsetis the start offset of the push constant range to update, in units of bytes.
sizeis the size of the push constant range to update, in units of bytes.
pValuesis a pointer to an array of
sizebytes containing the new push constant values.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.