Movatterモバイル変換


[0]ホーム

URL:


Vulkan API Reference Pageslatest

CullDistance(3)

Name

CullDistance - Application-specified cull distances

Description

CullDistance

Decorating a variable with theCullDistance built-in decoration willmake that variable contain the mechanism for controlling user culling.If any member of this array is assigned a negative value for all verticesbelonging to a primitive, then the primitive is discarded beforerasterization.

In fragment shaders, the values of theCullDistance array are linearlyinterpolated across each primitive.

IfCullDistance decorates an input variable, that variable will containthe corresponding value from theCullDistance decorated output variablefrom the previous shader stage.

Valid Usage
  • VUID-CullDistance-CullDistance-04196
    TheCullDistance decorationmust be used only within theMeshEXT,MeshNV,Vertex,Fragment,TessellationControl,TessellationEvaluation, orGeometryExecutionModel

  • VUID-CullDistance-CullDistance-04197
    The variable decorated withCullDistance within theMeshEXT,MeshNV orVertexExecutionModelmust be declared using theOutputStorageClass

  • VUID-CullDistance-CullDistance-04198
    The variable decorated withCullDistance within theFragmentExecutionModelmust be declared using theInputStorageClass

  • VUID-CullDistance-CullDistance-04199
    The variable decorated withCullDistance within theTessellationControl,TessellationEvaluation, orGeometryExecutionModelmust not be declared using aStorageClass other thanInput orOutput

  • VUID-CullDistance-CullDistance-04200
    The variable decorated withCullDistancemust be declared as anarray of 32-bit floating-point values

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