To dynamically set the depth bias parameters, call:
// Provided by VK_VERSION_1_0 void vkCmdSetDepthBias( VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor);
commandBufferis the command buffer into which the command will be recorded.
depthBiasConstantFactoris a scalar factor controlling the constant depth value added to each fragment.
depthBiasClampis the maximum (or minimum) depth bias of a fragment.
depthBiasSlopeFactoris a scalar factor applied to a fragment’s slope in depth bias calculations.
This command sets the depth bias parameters for subsequent drawing commands
when drawing using shader objects, or
when the graphics pipeline is created with
set in VkPipelineDynamicStateCreateInfo::
Otherwise, this state is specified by the corresponding
depthBiasSlopeFactor 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.