Description
FragDepth
-
To have a shader supply a fragment-depth value, the shader must declare the
DepthReplacing
execution mode. Such a shader’s fragment-depth value will come from the variable decorated with theFragDepth
built-in decoration.This value will be used for any subsequent depth testing performed by the implementation or writes to the depth attachment. See fragment shader depth replacement for details.
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.