CullDistance(3)
Description
CullDistanceDecorating a variable with the
CullDistancebuilt-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 the |
If |
VUID-CullDistance-CullDistance-04196
TheCullDistancedecorationmust be used only within theMeshEXT,MeshNV,Vertex,Fragment,TessellationControl,TessellationEvaluation, orGeometryExecutionModelVUID-CullDistance-CullDistance-04197
The variable decorated withCullDistancewithin theMeshEXT,MeshNVorVertexExecutionModelmust be declared using theOutputStorageClassVUID-CullDistance-CullDistance-04198
The variable decorated withCullDistancewithin theFragmentExecutionModelmust be declared using theInputStorageClassVUID-CullDistance-CullDistance-04199
The variable decorated withCullDistancewithin theTessellationControl,TessellationEvaluation, orGeometryExecutionModelmust not be declared using aStorageClassother thanInputorOutputVUID-CullDistance-CullDistance-04200
The variable decorated withCullDistancemust be declared as anarray of 32-bit floating-point values
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.