VKCMDSETDEPTHBIAS(3)

NAME
vkCmdSetDepthBias - Set the depth bias dynamic state.

C SPECIFICATION

    void vkCmdSetDepthBias(
        VkCommandBuffer                             commandBuffer,
        float                                       depthBiasConstantFactor,
        float                                       depthBiasClamp,
        float                                       depthBiasSlopeFactor);

PARAMETERS

commandBuffer
    A handle to the command buffer into which to insert the command.

depthBiasConstantFactor
    The constant bias factor.

depthBiasClamp
    The bias clamp factor.

depthBiasSlopeFactor
    The bias slope factor.

DESCRIPTION

vkCmdSetDepthBias sets the depth bias parameters for the command buffer specified by commandBuffer. The depthBiasConstantFactor, depthBiasClamp and depthBiasSlopeFactor parameters specify the new values for the depth bias calculation. The graphics pipeline bound to commandBuffer must have the VK_DYNAMIC_STATE_DEPTH_BIAS dynamic state enabled. When a pipeline that does not have VK_DYNAMIC_STATE_DEPTH_BIAS dynamic state enabled is first bound, the values of the depth bias parameters are taken from the pipeline and attempts to change them using vkCmdSetBlendConstants results in undefined behavior. When a pipeline does have VK_DYNAMIC_STATE_DEPTH_BIAS dynamic state enabled is first bound, the current values of the depth bias parameters become undefined and must be set using a call to vkCmdSetDepthBias.

VALID USAGE

    • commandBuffer must be a valid VkCommandBuffer handle

    • commandBuffer must be in the recording state

    • The VkCommandPool that commandBuffer was allocated from must support graphics operations

    • If the depth bias clamping feature is not enabled, depthBiasClamp must be 0.0

HOST SYNCHRONIZATION

    • Host access to commandBuffer must be externally synchronized

COMMAND PROPERTIES
Command Buffer Levels | Render Pass Scope | Supported Queue Types
Primary Secondary | Both | GRAPHICS

SEE ALSO

vkCreateGraphicsPipelines, VkPipelineDynamicStateCreateInfo

COPYRIGHT

Copyright © 2014-2016 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

AUTHOR

Khronos Group
    Author.