C Specification
To dynamically set the pipeline fragment shading rate and combiner operation, call:
// Provided by VK_NV_fragment_shading_rate_enums
void vkCmdSetFragmentShadingRateEnumNV(
VkCommandBuffer commandBuffer,
VkFragmentShadingRateNV shadingRate,
const VkFragmentShadingRateCombinerOpKHR combinerOps[2]);
Parameters
-
commandBuffer
is the command buffer into which the command will be recorded. -
shadingRate
specifies a VkFragmentShadingRateNV enum indicating the pipeline fragment shading rate for subsequent drawing commands. -
combinerOps
specifies a VkFragmentShadingRateCombinerOpKHR determining how the pipeline, primitive, and attachment shading rates are combined for fragments generated by subsequent drawing commands.
Description
This command sets the pipeline fragment shading rate and combiner operation
for subsequent drawing commands
when drawing using shader objects, or
when the graphics pipeline is created with
VK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
set in
VkPipelineDynamicStateCreateInfo::pDynamicStates
.
Otherwise, this state is specified by the
VkPipelineFragmentShadingRateEnumStateCreateInfoNV values used to
create the currently active pipeline.
Note
This command allows specifying additional shading rates beyond those
supported by vkCmdSetFragmentShadingRateKHR.
For more information, refer to the
|
Document Notes
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.