third_party/spirv-cross/shaders-msl/frag/interpolation-qualifiers.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(location=0) in vec2 v0; |
| 4 | layout(location=1) in noperspective vec2 v1; |
| 5 | layout(location=2) in centroid vec3 v2; |
| 6 | layout(location=3) in centroid noperspective vec4 v3; |
| 7 | layout(location=4) in sample float v4; |
| 8 | layout(location=5) in sample noperspective float v5; |
| 9 | layout(location=6) in flat float v6; |
| 10 | |
| 11 | layout(location=0) out vec4 FragColor; |
| 12 | |
| 13 | void main() { |
| 14 | FragColor = vec4(v0.x + v1.y, v2.xy, v3.w * v4 + v5 - v6); |
| 15 | } |