Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/vert/qualifiers.vert

raw
1 #version 450
2
3 layout(location = 0) flat out float vFlat;
4 layout(location = 1) centroid out float vCentroid;
5 layout(location = 2) sample out float vSample;
6 layout(location = 3) noperspective out float vNoperspective;
7
8 layout(location = 4) out Block
9 {
10 flat float vFlat;
11 centroid float vCentroid;
12 sample float vSample;
13 noperspective float vNoperspective;
14 } vout;
15
16 void main()
17 {
18 gl_Position = vec4(1.0);
19 vFlat = 0.0;
20 vCentroid = 1.0;
21 vSample = 2.0;
22 vNoperspective = 3.0;
23 vout.vFlat = 0.0;
24 vout.vCentroid = 1.0;
25 vout.vSample = 2.0;
26 vout.vNoperspective = 3.0;
27 }