third_party/spirv-cross/reference/opt/shaders-hlsl/frag/sample-mask-out.frag
raw| 1 | static int gl_SampleMask; |
| 2 | static float4 FragColor; |
| 3 | |
| 4 | struct SPIRV_Cross_Output |
| 5 | { |
| 6 | float4 FragColor : SV_Target0; |
| 7 | uint gl_SampleMask : SV_Coverage; |
| 8 | }; |
| 9 | |
| 10 | void frag_main() |
| 11 | { |
| 12 | FragColor = 1.0f.xxxx; |
| 13 | gl_SampleMask = 0; |
| 14 | } |
| 15 | |
| 16 | SPIRV_Cross_Output main() |
| 17 | { |
| 18 | frag_main(); |
| 19 | SPIRV_Cross_Output stage_output; |
| 20 | stage_output.gl_SampleMask = gl_SampleMask; |
| 21 | stage_output.FragColor = FragColor; |
| 22 | return stage_output; |
| 23 | } |