Description
SamplePosition
-
Decorating a variable with the
SamplePosition
built-in decoration will make that variable contain the sub-pixel position of the sample being shaded. The top left of the pixel is considered to be at coordinate (0,0) and the bottom right of the pixel is considered to be at coordinate (1,1).If a fragment shader entry point’s interface includes an input variable decorated with
SamplePosition
, Sample Shading is considered enabled with aminSampleShading
value of 1.0.If the current pipeline uses custom sample locations the value of any variable decorated with the
SamplePosition
built-in decoration is undefined.
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.