1hlsl.clipdistance-1.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:4  Function Definition: @main(vf4;f1;f1; ( temp 4-component vector of float)
60:4    Function Parameters:
70:4      'pos' ( in 4-component vector of float)
80:4      'clip' ( in float)
90:4      'cull' ( in 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            'clip' ( in float)
160:5          'cull' ( in float)
170:4  Function Definition: main( ( temp void)
180:4    Function Parameters:
190:?     Sequence
200:4      move second child to first child ( temp 4-component vector of float)
210:?         'pos' ( temp 4-component vector of float)
220:?         'pos' ( in 4-component vector of float FragCoord)
230:?       Sequence
240:4        move second child to first child ( temp float)
250:?           'clip' ( temp float)
260:4          direct index ( in float ClipDistance)
270:?             'clip' ( in 1-element array of float ClipDistance)
280:4            Constant:
290:4              0 (const int)
300:?       Sequence
310:4        move second child to first child ( temp float)
320:?           'cull' ( temp float)
330:4          direct index ( in float CullDistance)
340:?             'cull' ( in 1-element array of float CullDistance)
350:4            Constant:
360:4              0 (const int)
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;f1; ( temp 4-component vector of float)
400:?           'pos' ( temp 4-component vector of float)
410:?           'clip' ( temp float)
420:?           'cull' ( temp 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 1-element array of float ClipDistance)
470:?     'cull' ( in 1-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;f1; ( temp 4-component vector of float)
570:4    Function Parameters:
580:4      'pos' ( in 4-component vector of float)
590:4      'clip' ( in float)
600:4      'cull' ( in 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            'clip' ( in float)
670:5          'cull' ( in float)
680:4  Function Definition: main( ( temp void)
690:4    Function Parameters:
700:?     Sequence
710:4      move second child to first child ( temp 4-component vector of float)
720:?         'pos' ( temp 4-component vector of float)
730:?         'pos' ( in 4-component vector of float FragCoord)
740:?       Sequence
750:4        move second child to first child ( temp float)
760:?           'clip' ( temp float)
770:4          direct index ( in float ClipDistance)
780:?             'clip' ( in 1-element array of float ClipDistance)
790:4            Constant:
800:4              0 (const int)
810:?       Sequence
820:4        move second child to first child ( temp float)
830:?           'cull' ( temp float)
840:4          direct index ( in float CullDistance)
850:?             'cull' ( in 1-element array of float CullDistance)
860:4            Constant:
870:4              0 (const int)
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;f1; ( temp 4-component vector of float)
910:?           'pos' ( temp 4-component vector of float)
920:?           'clip' ( temp float)
930:?           'cull' ( temp 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 1-element array of float ClipDistance)
980:?     'cull' ( in 1-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" 27 34 41 45
110                              ExecutionMode 4 OriginUpperLeft
111                              Source HLSL 500
112                              Name 4  "main"
113                              Name 14  "@main(vf4;f1;f1;"
114                              Name 11  "pos"
115                              Name 12  "clip"
116                              Name 13  "cull"
117                              Name 25  "pos"
118                              Name 27  "pos"
119                              Name 29  "clip"
120                              Name 34  "clip"
121                              Name 40  "cull"
122                              Name 41  "cull"
123                              Name 45  "@entryPointOutput"
124                              Name 46  "param"
125                              Name 48  "param"
126                              Name 50  "param"
127                              Decorate 27(pos) BuiltIn FragCoord
128                              Decorate 34(clip) BuiltIn ClipDistance
129                              Decorate 41(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:             TypePointer Function 6(float)
137              10:             TypeFunction 7(fvec4) 8(ptr) 9(ptr) 9(ptr)
138              26:             TypePointer Input 7(fvec4)
139         27(pos):     26(ptr) Variable Input
140              30:             TypeInt 32 0
141              31:     30(int) Constant 1
142              32:             TypeArray 6(float) 31
143              33:             TypePointer Input 32
144        34(clip):     33(ptr) Variable Input
145              35:             TypeInt 32 1
146              36:     35(int) Constant 0
147              37:             TypePointer Input 6(float)
148        41(cull):     33(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         25(pos):      8(ptr) Variable Function
154        29(clip):      9(ptr) Variable Function
155        40(cull):      9(ptr) Variable Function
156       46(param):      8(ptr) Variable Function
157       48(param):      9(ptr) Variable Function
158       50(param):      9(ptr) Variable Function
159              28:    7(fvec4) Load 27(pos)
160                              Store 25(pos) 28
161              38:     37(ptr) AccessChain 34(clip) 36
162              39:    6(float) Load 38
163                              Store 29(clip) 39
164              42:     37(ptr) AccessChain 41(cull) 36
165              43:    6(float) Load 42
166                              Store 40(cull) 43
167              47:    7(fvec4) Load 25(pos)
168                              Store 46(param) 47
169              49:    6(float) Load 29(clip)
170                              Store 48(param) 49
171              51:    6(float) Load 40(cull)
172                              Store 50(param) 51
173              52:    7(fvec4) FunctionCall 14(@main(vf4;f1;f1;) 46(param) 48(param) 50(param)
174                              Store 45(@entryPointOutput) 52
175                              Return
176                              FunctionEnd
17714(@main(vf4;f1;f1;):    7(fvec4) Function None 10
178         11(pos):      8(ptr) FunctionParameter
179        12(clip):      9(ptr) FunctionParameter
180        13(cull):      9(ptr) FunctionParameter
181              15:             Label
182              16:    7(fvec4) Load 11(pos)
183              17:    6(float) Load 12(clip)
184              18:    7(fvec4) CompositeConstruct 17 17 17 17
185              19:    7(fvec4) FAdd 16 18
186              20:    6(float) Load 13(cull)
187              21:    7(fvec4) CompositeConstruct 20 20 20 20
188              22:    7(fvec4) FAdd 19 21
189                              ReturnValue 22
190                              FunctionEnd
191