To dynamically set the pipeline fragment shading rate and combiner operation, call:
// Provided by VK_KHR_fragment_shading_rate void vkCmdSetFragmentShadingRateKHR( VkCommandBuffer commandBuffer, const VkExtent2D* pFragmentSize, const VkFragmentShadingRateCombinerOpKHR combinerOps);
commandBufferis the command buffer into which the command will be recorded.
pFragmentSizespecifies the pipeline fragment shading rate for subsequent drawing commands.
This command sets the pipeline fragment shading rate and combiner operation
for subsequent drawing commands when the graphics pipeline is created with
VK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR set in
Otherwise, this state is specified by the
VkPipelineFragmentShadingRateStateCreateInfoKHR values used to create
the currently active pipeline.
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.