Description
SampleId
-
Decorating a variable with the
SampleId
built-in decoration will make that variable contain the coverage index for the current fragment shader invocation.SampleId
ranges from zero to the number of samples in the framebuffer minus one. If a fragment shader entry point’s interface includes an input variable decorated withSampleId
, Sample Shading is considered enabled with aminSampleShading
value of 1.0.
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.