3 gl_FragCoord origin is upper left
5 0:6 Function Definition: MyFunction(f1;vf3; ( temp void)
6 0:6 Function Parameters:
7 0:6 'myfloat' ( noContraction in float)
8 0:6 'myfloat3' ( noContraction out 3-component vector of float)
9 0:9 Function Definition: @main( ( temp structure{ noContraction temp 4-component vector of float color})
10 0:9 Function Parameters:
12 0:11 move second child to first child ( noContraction temp 4-component vector of float)
13 0:11 color: direct index for structure ( noContraction temp 4-component vector of float)
14 0:11 'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
22 0:12 Branch: Return with expression
23 0:12 'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
24 0:9 Function Definition: main( ( temp void)
25 0:9 Function Parameters:
28 0:9 move second child to first child ( noContraction temp 4-component vector of float)
29 0:? 'color' (layout( location=0) noContraction out 4-component vector of float)
30 0:9 color: direct index for structure ( noContraction temp 4-component vector of float)
31 0:9 Function Call: @main( ( temp structure{ noContraction temp 4-component vector of float color})
35 0:? 'precisefloat' ( noContraction global float)
36 0:? 'color' (layout( location=0) noContraction out 4-component vector of float)
39 Linked fragment stage:
43 gl_FragCoord origin is upper left
45 0:6 Function Definition: MyFunction(f1;vf3; ( temp void)
46 0:6 Function Parameters:
47 0:6 'myfloat' ( noContraction in float)
48 0:6 'myfloat3' ( noContraction out 3-component vector of float)
49 0:9 Function Definition: @main( ( temp structure{ noContraction temp 4-component vector of float color})
50 0:9 Function Parameters:
52 0:11 move second child to first child ( noContraction temp 4-component vector of float)
53 0:11 color: direct index for structure ( noContraction temp 4-component vector of float)
54 0:11 'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
62 0:12 Branch: Return with expression
63 0:12 'ps_output' ( temp structure{ noContraction temp 4-component vector of float color})
64 0:9 Function Definition: main( ( temp void)
65 0:9 Function Parameters:
68 0:9 move second child to first child ( noContraction temp 4-component vector of float)
69 0:? 'color' (layout( location=0) noContraction out 4-component vector of float)
70 0:9 color: direct index for structure ( noContraction temp 4-component vector of float)
71 0:9 Function Call: @main( ( temp structure{ noContraction temp 4-component vector of float color})
75 0:? 'precisefloat' ( noContraction global float)
76 0:? 'color' (layout( location=0) noContraction out 4-component vector of float)
78 // Module Version 10000
79 // Generated by (magic number): 80001
80 // Id's are bound by 37
83 1: ExtInstImport "GLSL.std.450"
84 MemoryModel Logical GLSL450
85 EntryPoint Fragment 4 "main" 32
86 ExecutionMode 4 OriginUpperLeft
88 Name 13 "MyFunction(f1;vf3;"
92 MemberName 16(PS_OUTPUT) 0 "color"
96 Name 36 "precisefloat"
97 Decorate 32(color) Location 0
101 7: TypePointer Function 6(float)
102 8: TypeVector 6(float) 3
103 9: TypePointer Function 8(fvec3)
104 10: TypeFunction 2 7(ptr) 9(ptr)
105 15: TypeVector 6(float) 4
106 16(PS_OUTPUT): TypeStruct 15(fvec4)
107 17: TypeFunction 16(PS_OUTPUT)
108 20: TypePointer Function 16(PS_OUTPUT)
110 23: 22(int) Constant 0
111 24: 6(float) Constant 1065353216
112 25: 15(fvec4) ConstantComposite 24 24 24 24
113 26: TypePointer Function 15(fvec4)
114 31: TypePointer Output 15(fvec4)
115 32(color): 31(ptr) Variable Output
116 35: TypePointer Private 6(float)
117 36(precisefloat): 35(ptr) Variable Private
118 4(main): 2 Function None 3
120 33:16(PS_OUTPUT) FunctionCall 18(@main()
121 34: 15(fvec4) CompositeExtract 33 0
125 13(MyFunction(f1;vf3;): 2 Function None 10
126 11(myfloat): 7(ptr) FunctionParameter
127 12(myfloat3): 9(ptr) FunctionParameter
131 18(@main():16(PS_OUTPUT) Function None 17
133 21(ps_output): 20(ptr) Variable Function
134 27: 26(ptr) AccessChain 21(ps_output) 23
136 28:16(PS_OUTPUT) Load 21(ps_output)