Movatterモバイル変換


[0]ホーム

URL:


Vulkan API Reference Pageslatest

FragDepth(3)

Name

FragDepth - Application-specified depth for depth testing

Description

FragDepth

To have a shader supply a fragment-depth value, the shadermust declare theDepthReplacing execution mode.Such a shader’s fragment-depth value will come from the variable decoratedwith theFragDepth built-in decoration.

This value will be used for any subsequent depth testing performed by theimplementation or writes to the depth attachment.Seefragment shader depth replacementfor details.

Valid Usage
  • VUID-FragDepth-FragDepth-04213
    TheFragDepth decorationmust be used only within theFragmentExecutionModel

  • VUID-FragDepth-FragDepth-04214
    The variable decorated withFragDepthmust be declared using theOutputStorageClass

  • VUID-FragDepth-FragDepth-04215
    The variable decorated withFragDepthmust be declared as a scalar32-bit floating-point value

  • VUID-FragDepth-FragDepth-04216
    If the shader dynamically writes to the variable decorated withFragDepth, theDepthReplacingExecutionModemust bedeclared

See Also

No cross-references are available

Document Notes

For more information, see theVulkan Specification (NOTE: cannot determine Specification page containing this refpage).

This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.


[8]ページ先頭

©2009-2026 Movatter.jp