VkDepthClampModeEXT(3)
C Specification
Possible values of
VkPipelineViewportDepthClampControlCreateInfoEXT::depthClampMode
,
specifying which range should be used for depth clamping, are:
// Provided by VK_EXT_depth_clamp_control
typedef enum VkDepthClampModeEXT {
VK_DEPTH_CLAMP_MODE_VIEWPORT_RANGE_EXT = 0,
VK_DEPTH_CLAMP_MODE_USER_DEFINED_RANGE_EXT = 1,
} VkDepthClampModeEXT;
Description
-
VK_DEPTH_CLAMP_MODE_VIEWPORT_RANGE_EXT
specifies that the depth clamp range follows the viewport depth range. The depth clamp range of each viewport will implicitly be set to zmin = min(n,f) and zmax = max(n,f), where n and f are theminDepth
andmaxDepth
depth range values of the viewport. -
VK_DEPTH_CLAMP_MODE_USER_DEFINED_RANGE_EXT
specifies that a single user-defined depth clamp range will be used for all viewports. The user-defined depth clamp range is defined by theminDepthClamp
andmaxDepthClamp
members of VkDepthClampRangeEXT.
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.