3 gl_FragCoord origin is upper left
5 0:2 Function Definition: MyFunc( ( temp void)
6 0:2 Function Parameters:
7 0:8 Function Definition: MyFunc2( ( temp void)
8 0:8 Function Parameters:
9 0:13 Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
10 0:13 Function Parameters:
12 0:16 move second child to first child ( temp 4-component vector of float)
13 0:16 color: direct index for structure ( temp 4-component vector of float)
14 0:16 'ps_output' ( temp structure{ temp 4-component vector of float color})
22 0:17 Branch: Return with expression
23 0:17 'ps_output' ( temp structure{ temp 4-component vector of float color})
24 0:13 Function Definition: main( ( temp void)
25 0:13 Function Parameters:
28 0:13 move second child to first child ( temp 4-component vector of float)
29 0:? 'color' (layout( location=0) out 4-component vector of float)
30 0:13 color: direct index for structure ( temp 4-component vector of float)
31 0:13 Function Call: @main( ( temp structure{ temp 4-component vector of float color})
35 0:? 'color' (layout( location=0) out 4-component vector of float)
38 Linked fragment stage:
42 gl_FragCoord origin is upper left
44 0:2 Function Definition: MyFunc( ( temp void)
45 0:2 Function Parameters:
46 0:8 Function Definition: MyFunc2( ( temp void)
47 0:8 Function Parameters:
48 0:13 Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
49 0:13 Function Parameters:
51 0:16 move second child to first child ( temp 4-component vector of float)
52 0:16 color: direct index for structure ( temp 4-component vector of float)
53 0:16 'ps_output' ( temp structure{ temp 4-component vector of float color})
61 0:17 Branch: Return with expression
62 0:17 'ps_output' ( temp structure{ temp 4-component vector of float color})
63 0:13 Function Definition: main( ( temp void)
64 0:13 Function Parameters:
67 0:13 move second child to first child ( temp 4-component vector of float)
68 0:? 'color' (layout( location=0) out 4-component vector of float)
69 0:13 color: direct index for structure ( temp 4-component vector of float)
70 0:13 Function Call: @main( ( temp structure{ temp 4-component vector of float color})
74 0:? 'color' (layout( location=0) out 4-component vector of float)
76 // Module Version 10000
77 // Generated by (magic number): 80001
78 // Id's are bound by 31
81 1: ExtInstImport "GLSL.std.450"
82 MemoryModel Logical GLSL450
83 EntryPoint Fragment 4 "main" 28
84 ExecutionMode 4 OriginUpperLeft
89 MemberName 12(PS_OUTPUT) 0 "color"
93 Decorate 28(color) Location 0
97 11: TypeVector 10(float) 4
98 12(PS_OUTPUT): TypeStruct 11(fvec4)
99 13: TypeFunction 12(PS_OUTPUT)
100 16: TypePointer Function 12(PS_OUTPUT)
102 19: 18(int) Constant 0
103 20: 10(float) Constant 1065353216
104 21: 11(fvec4) ConstantComposite 20 20 20 20
105 22: TypePointer Function 11(fvec4)
106 27: TypePointer Output 11(fvec4)
107 28(color): 27(ptr) Variable Output
108 4(main): 2 Function None 3
110 29:12(PS_OUTPUT) FunctionCall 14(@main()
111 30: 11(fvec4) CompositeExtract 29 0
115 6(MyFunc(): 2 Function None 3
119 8(MyFunc2(): 2 Function None 3
123 14(@main():12(PS_OUTPUT) Function None 13
125 17(ps_output): 16(ptr) Variable Function
126 23: 22(ptr) AccessChain 17(ps_output) 19
128 24:12(PS_OUTPUT) Load 17(ps_output)