1hlsl.clipdistance-3.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:4  Function Definition: @main(vf4;f1[2];f1[2]; ( temp 4-component vector of float)
60:4    Function Parameters:
70:4      'pos' ( in 4-component vector of float)
80:4      'clip' ( in 2-element array of float)
90:4      'cull' ( in 2-element array of float)
100:?     Sequence
110:5      Branch: Return with expression
120:5        add ( temp 4-component vector of float)
130:5          add ( temp 4-component vector of float)
140:5            'pos' ( in 4-component vector of float)
150:5            direct index ( temp float)
160:5              'clip' ( in 2-element array of float)
170:5              Constant:
180:5                0 (const int)
190:5          direct index ( temp float)
200:5            'cull' ( in 2-element array of float)
210:5            Constant:
220:5              0 (const int)
230:4  Function Definition: main( ( temp void)
240:4    Function Parameters:
250:?     Sequence
260:4      move second child to first child ( temp 4-component vector of float)
270:?         'pos' ( temp 4-component vector of float)
280:?         'pos' ( in 4-component vector of float FragCoord)
290:?       Sequence
300:4        move second child to first child ( temp 2-element array of float)
310:?           'clip' ( temp 2-element array of float)
320:?           'clip' ( in 2-element array of float ClipDistance)
330:?       Sequence
340:4        move second child to first child ( temp 2-element array of float)
350:?           'cull' ( temp 2-element array of float)
360:?           'cull' ( in 2-element array of float CullDistance)
370:4      move second child to first child ( temp 4-component vector of float)
380:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
390:4        Function Call: @main(vf4;f1[2];f1[2]; ( temp 4-component vector of float)
400:?           'pos' ( temp 4-component vector of float)
410:?           'clip' ( temp 2-element array of float)
420:?           'cull' ( temp 2-element array of float)
430:?   Linker Objects
440:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
450:?     'pos' ( in 4-component vector of float FragCoord)
460:?     'clip' ( in 2-element array of float ClipDistance)
470:?     'cull' ( in 2-element array of float CullDistance)
48
49
50Linked fragment stage:
51
52
53Shader version: 500
54gl_FragCoord origin is upper left
550:? Sequence
560:4  Function Definition: @main(vf4;f1[2];f1[2]; ( temp 4-component vector of float)
570:4    Function Parameters:
580:4      'pos' ( in 4-component vector of float)
590:4      'clip' ( in 2-element array of float)
600:4      'cull' ( in 2-element array of float)
610:?     Sequence
620:5      Branch: Return with expression
630:5        add ( temp 4-component vector of float)
640:5          add ( temp 4-component vector of float)
650:5            'pos' ( in 4-component vector of float)
660:5            direct index ( temp float)
670:5              'clip' ( in 2-element array of float)
680:5              Constant:
690:5                0 (const int)
700:5          direct index ( temp float)
710:5            'cull' ( in 2-element array of float)
720:5            Constant:
730:5              0 (const int)
740:4  Function Definition: main( ( temp void)
750:4    Function Parameters:
760:?     Sequence
770:4      move second child to first child ( temp 4-component vector of float)
780:?         'pos' ( temp 4-component vector of float)
790:?         'pos' ( in 4-component vector of float FragCoord)
800:?       Sequence
810:4        move second child to first child ( temp 2-element array of float)
820:?           'clip' ( temp 2-element array of float)
830:?           'clip' ( in 2-element array of float ClipDistance)
840:?       Sequence
850:4        move second child to first child ( temp 2-element array of float)
860:?           'cull' ( temp 2-element array of float)
870:?           'cull' ( in 2-element array of float CullDistance)
880:4      move second child to first child ( temp 4-component vector of float)
890:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
900:4        Function Call: @main(vf4;f1[2];f1[2]; ( temp 4-component vector of float)
910:?           'pos' ( temp 4-component vector of float)
920:?           'clip' ( temp 2-element array of float)
930:?           'cull' ( temp 2-element array of float)
940:?   Linker Objects
950:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
960:?     'pos' ( in 4-component vector of float FragCoord)
970:?     'clip' ( in 2-element array of float ClipDistance)
980:?     'cull' ( in 2-element array of float CullDistance)
99
100// Module Version 10000
101// Generated by (magic number): 80007
102// Id's are bound by 53
103
104                              Capability Shader
105                              Capability ClipDistance
106                              Capability CullDistance
107               1:             ExtInstImport  "GLSL.std.450"
108                              MemoryModel Logical GLSL450
109                              EntryPoint Fragment 4  "main" 35 39 42 45
110                              ExecutionMode 4 OriginUpperLeft
111                              Source HLSL 500
112                              Name 4  "main"
113                              Name 17  "@main(vf4;f1[2];f1[2];"
114                              Name 14  "pos"
115                              Name 15  "clip"
116                              Name 16  "cull"
117                              Name 33  "pos"
118                              Name 35  "pos"
119                              Name 37  "clip"
120                              Name 39  "clip"
121                              Name 41  "cull"
122                              Name 42  "cull"
123                              Name 45  "@entryPointOutput"
124                              Name 46  "param"
125                              Name 48  "param"
126                              Name 50  "param"
127                              Decorate 35(pos) BuiltIn FragCoord
128                              Decorate 39(clip) BuiltIn ClipDistance
129                              Decorate 42(cull) BuiltIn CullDistance
130                              Decorate 45(@entryPointOutput) Location 0
131               2:             TypeVoid
132               3:             TypeFunction 2
133               6:             TypeFloat 32
134               7:             TypeVector 6(float) 4
135               8:             TypePointer Function 7(fvec4)
136               9:             TypeInt 32 0
137              10:      9(int) Constant 2
138              11:             TypeArray 6(float) 10
139              12:             TypePointer Function 11
140              13:             TypeFunction 7(fvec4) 8(ptr) 12(ptr) 12(ptr)
141              20:             TypeInt 32 1
142              21:     20(int) Constant 0
143              22:             TypePointer Function 6(float)
144              34:             TypePointer Input 7(fvec4)
145         35(pos):     34(ptr) Variable Input
146              38:             TypePointer Input 11
147        39(clip):     38(ptr) Variable Input
148        42(cull):     38(ptr) Variable Input
149              44:             TypePointer Output 7(fvec4)
15045(@entryPointOutput):     44(ptr) Variable Output
151         4(main):           2 Function None 3
152               5:             Label
153         33(pos):      8(ptr) Variable Function
154        37(clip):     12(ptr) Variable Function
155        41(cull):     12(ptr) Variable Function
156       46(param):      8(ptr) Variable Function
157       48(param):     12(ptr) Variable Function
158       50(param):     12(ptr) Variable Function
159              36:    7(fvec4) Load 35(pos)
160                              Store 33(pos) 36
161              40:          11 Load 39(clip)
162                              Store 37(clip) 40
163              43:          11 Load 42(cull)
164                              Store 41(cull) 43
165              47:    7(fvec4) Load 33(pos)
166                              Store 46(param) 47
167              49:          11 Load 37(clip)
168                              Store 48(param) 49
169              51:          11 Load 41(cull)
170                              Store 50(param) 51
171              52:    7(fvec4) FunctionCall 17(@main(vf4;f1[2];f1[2];) 46(param) 48(param) 50(param)
172                              Store 45(@entryPointOutput) 52
173                              Return
174                              FunctionEnd
17517(@main(vf4;f1[2];f1[2];):    7(fvec4) Function None 13
176         14(pos):      8(ptr) FunctionParameter
177        15(clip):     12(ptr) FunctionParameter
178        16(cull):     12(ptr) FunctionParameter
179              18:             Label
180              19:    7(fvec4) Load 14(pos)
181              23:     22(ptr) AccessChain 15(clip) 21
182              24:    6(float) Load 23
183              25:    7(fvec4) CompositeConstruct 24 24 24 24
184              26:    7(fvec4) FAdd 19 25
185              27:     22(ptr) AccessChain 16(cull) 21
186              28:    6(float) Load 27
187              29:    7(fvec4) CompositeConstruct 28 28 28 28
188              30:    7(fvec4) FAdd 26 29
189                              ReturnValue 30
190                              FunctionEnd
191