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