1hlsl.intrinsics.lit.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:2  Function Definition: @PixelShaderFunction(f1;f1;f1; ( temp void)
60:2    Function Parameters:
70:2      'n_dot_l' ( in float)
80:2      'n_dot_h' ( in float)
90:2      'm' ( in float)
100:?     Sequence
110:3      Sequence
120:3        move second child to first child ( temp 4-component vector of float)
130:3          'r0' ( temp 4-component vector of float)
140:3          Construct vec4 ( temp 4-component vector of float)
150:3            Constant:
160:3              1.000000
170:3            max ( temp float)
180:3              'n_dot_l' ( in float)
190:3              Constant:
200:3                0.000000
210:3            Test condition and select ( temp float): no shortcircuit
220:3              Condition
230:3              Compare Less Than ( temp bool)
240:3                min ( temp float)
250:3                  'n_dot_l' ( in float)
260:3                  'n_dot_h' ( in float)
270:3                Constant:
280:3                  0.000000
290:3              true case
300:3              Constant:
310:3                0.000000
320:3              false case
330:3              component-wise multiply ( temp float)
340:3                'n_dot_h' ( in float)
350:3                'm' ( in float)
360:3            Constant:
370:3              1.000000
380:2  Function Definition: PixelShaderFunction( ( temp void)
390:2    Function Parameters:
400:?     Sequence
410:2      move second child to first child ( temp float)
420:?         'n_dot_l' ( temp float)
430:?         'n_dot_l' (layout( location=0) in float)
440:2      move second child to first child ( temp float)
450:?         'n_dot_h' ( temp float)
460:?         'n_dot_h' (layout( location=1) in float)
470:2      move second child to first child ( temp float)
480:?         'm' ( temp float)
490:?         'm' (layout( location=2) in float)
500:2      Function Call: @PixelShaderFunction(f1;f1;f1; ( temp void)
510:?         'n_dot_l' ( temp float)
520:?         'n_dot_h' ( temp float)
530:?         'm' ( temp float)
540:?   Linker Objects
550:?     'n_dot_l' (layout( location=0) in float)
560:?     'n_dot_h' (layout( location=1) in float)
570:?     'm' (layout( location=2) in float)
58
59
60Linked fragment stage:
61
62
63Shader version: 500
64gl_FragCoord origin is upper left
650:? Sequence
660:2  Function Definition: @PixelShaderFunction(f1;f1;f1; ( temp void)
670:2    Function Parameters:
680:2      'n_dot_l' ( in float)
690:2      'n_dot_h' ( in float)
700:2      'm' ( in float)
710:?     Sequence
720:3      Sequence
730:3        move second child to first child ( temp 4-component vector of float)
740:3          'r0' ( temp 4-component vector of float)
750:3          Construct vec4 ( temp 4-component vector of float)
760:3            Constant:
770:3              1.000000
780:3            max ( temp float)
790:3              'n_dot_l' ( in float)
800:3              Constant:
810:3                0.000000
820:3            Test condition and select ( temp float): no shortcircuit
830:3              Condition
840:3              Compare Less Than ( temp bool)
850:3                min ( temp float)
860:3                  'n_dot_l' ( in float)
870:3                  'n_dot_h' ( in float)
880:3                Constant:
890:3                  0.000000
900:3              true case
910:3              Constant:
920:3                0.000000
930:3              false case
940:3              component-wise multiply ( temp float)
950:3                'n_dot_h' ( in float)
960:3                'm' ( in float)
970:3            Constant:
980:3              1.000000
990:2  Function Definition: PixelShaderFunction( ( temp void)
1000:2    Function Parameters:
1010:?     Sequence
1020:2      move second child to first child ( temp float)
1030:?         'n_dot_l' ( temp float)
1040:?         'n_dot_l' (layout( location=0) in float)
1050:2      move second child to first child ( temp float)
1060:?         'n_dot_h' ( temp float)
1070:?         'n_dot_h' (layout( location=1) in float)
1080:2      move second child to first child ( temp float)
1090:?         'm' ( temp float)
1100:?         'm' (layout( location=2) in float)
1110:2      Function Call: @PixelShaderFunction(f1;f1;f1; ( temp void)
1120:?         'n_dot_l' ( temp float)
1130:?         'n_dot_h' ( temp float)
1140:?         'm' ( temp float)
1150:?   Linker Objects
1160:?     'n_dot_l' (layout( location=0) in float)
1170:?     'n_dot_h' (layout( location=1) in float)
1180:?     'm' (layout( location=2) in float)
119
120// Module Version 10000
121// Generated by (magic number): 80007
122// Id's are bound by 48
123
124                              Capability Shader
125               1:             ExtInstImport  "GLSL.std.450"
126                              MemoryModel Logical GLSL450
127                              EntryPoint Fragment 4  "PixelShaderFunction" 33 36 39
128                              ExecutionMode 4 OriginUpperLeft
129                              Source HLSL 500
130                              Name 4  "PixelShaderFunction"
131                              Name 12  "@PixelShaderFunction(f1;f1;f1;"
132                              Name 9  "n_dot_l"
133                              Name 10  "n_dot_h"
134                              Name 11  "m"
135                              Name 16  "r0"
136                              Name 31  "n_dot_l"
137                              Name 33  "n_dot_l"
138                              Name 35  "n_dot_h"
139                              Name 36  "n_dot_h"
140                              Name 38  "m"
141                              Name 39  "m"
142                              Name 41  "param"
143                              Name 43  "param"
144                              Name 45  "param"
145                              Decorate 33(n_dot_l) Location 0
146                              Decorate 36(n_dot_h) Location 1
147                              Decorate 39(m) Location 2
148               2:             TypeVoid
149               3:             TypeFunction 2
150               6:             TypeFloat 32
151               7:             TypePointer Function 6(float)
152               8:             TypeFunction 2 7(ptr) 7(ptr) 7(ptr)
153              14:             TypeVector 6(float) 4
154              15:             TypePointer Function 14(fvec4)
155              17:    6(float) Constant 1065353216
156              19:    6(float) Constant 0
157              24:             TypeBool
158              32:             TypePointer Input 6(float)
159     33(n_dot_l):     32(ptr) Variable Input
160     36(n_dot_h):     32(ptr) Variable Input
161           39(m):     32(ptr) Variable Input
1624(PixelShaderFunction):           2 Function None 3
163               5:             Label
164     31(n_dot_l):      7(ptr) Variable Function
165     35(n_dot_h):      7(ptr) Variable Function
166           38(m):      7(ptr) Variable Function
167       41(param):      7(ptr) Variable Function
168       43(param):      7(ptr) Variable Function
169       45(param):      7(ptr) Variable Function
170              34:    6(float) Load 33(n_dot_l)
171                              Store 31(n_dot_l) 34
172              37:    6(float) Load 36(n_dot_h)
173                              Store 35(n_dot_h) 37
174              40:    6(float) Load 39(m)
175                              Store 38(m) 40
176              42:    6(float) Load 31(n_dot_l)
177                              Store 41(param) 42
178              44:    6(float) Load 35(n_dot_h)
179                              Store 43(param) 44
180              46:    6(float) Load 38(m)
181                              Store 45(param) 46
182              47:           2 FunctionCall 12(@PixelShaderFunction(f1;f1;f1;) 41(param) 43(param) 45(param)
183                              Return
184                              FunctionEnd
18512(@PixelShaderFunction(f1;f1;f1;):           2 Function None 8
186      9(n_dot_l):      7(ptr) FunctionParameter
187     10(n_dot_h):      7(ptr) FunctionParameter
188           11(m):      7(ptr) FunctionParameter
189              13:             Label
190          16(r0):     15(ptr) Variable Function
191              18:    6(float) Load 9(n_dot_l)
192              20:    6(float) ExtInst 1(GLSL.std.450) 40(FMax) 18 19
193              21:    6(float) Load 9(n_dot_l)
194              22:    6(float) Load 10(n_dot_h)
195              23:    6(float) ExtInst 1(GLSL.std.450) 37(FMin) 21 22
196              25:    24(bool) FOrdLessThan 23 19
197              26:    6(float) Load 10(n_dot_h)
198              27:    6(float) Load 11(m)
199              28:    6(float) FMul 26 27
200              29:    6(float) Select 25 19 28
201              30:   14(fvec4) CompositeConstruct 17 20 29 17
202                              Store 16(r0) 30
203                              Return
204                              FunctionEnd
205