cmdSetDepthClampRangeEXT :: MonadIO io=> CommandBuffercommandBufferis the command buffer into which the command will be recorded.-> DepthClampModeEXTdepthClampModedetermines how the clamp range is determined for each viewport.->"depthClampRange"
::: Maybe DepthClampRangeEXTpDepthClampRangesets the depth clamp range for all viewports ifdepthClampModeis DEPTH_CLAMP_MODE_USER_DEFINED_RANGE_EXT.-> io ()
vkCmdSetDepthClampRangeEXT - Set the viewport depth clamp range dynamically for a command buffer
Description
This command sets the viewport depth clamp range for subsequent drawing
commands when drawing using
shader objects,
or when the graphics pipeline is created with
DYNAMIC_STATE_DEPTH_CLAMP_RANGE_EXT
set in
PipelineDynamicStateCreateInfo::pDynamicStates.
Otherwise, this state is specified by the
PipelineViewportDepthClampControlCreateInfoEXT::depthClampMode value
used to create the currently active pipeline.
Valid Usage
If
depthClampModeis DEPTH_CLAMP_MODE_USER_DEFINED_RANGE_EXT, thenpDepthClampRangemust be a valid pointer to a valid DepthClampRangeEXT structure
Valid Usage (Implicit)
commandBuffermust be a valid CommandBuffer handle
depthClampModemust be a valid DepthClampModeEXT valueIf
pDepthClampRangeis notNULL,pDepthClampRangemust be a valid pointer to a valid DepthClampRangeEXT structurecommandBuffermust be in the recording stateThe CommandPool that
commandBufferwas allocated from must support QUEUE_GRAPHICS_BIT operationsThis command must only be called outside of a video coding scope
Host Synchronization
Host access to
commandBuffermust be externally synchronized
Host access to the CommandPool that
commandBufferwas allocated from must be externally synchronized
Command Properties
'
Primary Secondary | Both | Outside | VK_QUEUE_GRAPHICS_BIT | State |
Conditional Rendering
vkCmdSetDepthClampRangeEXT is not affected by conditional rendering
See Also
VK_EXT_depth_clamp_control, VK_EXT_shader_object, CommandBuffer, DepthClampModeEXT, DepthClampRangeEXT