• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.cast.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:2  Function Definition: @PixelShaderFunction(vf4; ( temp 4-component vector of float)
60:2    Function Parameters:
70:2      'input' ( in 4-component vector of float)
80:?     Sequence
90:3      Branch: Return with expression
100:3        add ( temp 4-component vector of float)
110:3          add ( temp 4-component vector of float)
120:3            'input' ( in 4-component vector of float)
130:3            Convert int to float ( temp 4-component vector of float)
140:3              Convert float to int ( temp 4-component vector of int)
150:3                'input' ( in 4-component vector of float)
160:3          Constant:
170:3            1.198000
180:3            1.198000
190:3            1.198000
200:3            1.198000
210:2  Function Definition: PixelShaderFunction( ( temp void)
220:2    Function Parameters:
230:?     Sequence
240:2      move second child to first child ( temp 4-component vector of float)
250:?         'input' ( temp 4-component vector of float)
260:?         'input' (layout( location=0) in 4-component vector of float)
270:2      move second child to first child ( temp 4-component vector of float)
280:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
290:2        Function Call: @PixelShaderFunction(vf4; ( temp 4-component vector of float)
300:?           'input' ( temp 4-component vector of float)
310:?   Linker Objects
320:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
330:?     'input' (layout( location=0) in 4-component vector of float)
34
35
36Linked fragment stage:
37
38
39Shader version: 500
40gl_FragCoord origin is upper left
410:? Sequence
420:2  Function Definition: @PixelShaderFunction(vf4; ( temp 4-component vector of float)
430:2    Function Parameters:
440:2      'input' ( in 4-component vector of float)
450:?     Sequence
460:3      Branch: Return with expression
470:3        add ( temp 4-component vector of float)
480:3          add ( temp 4-component vector of float)
490:3            'input' ( in 4-component vector of float)
500:3            Convert int to float ( temp 4-component vector of float)
510:3              Convert float to int ( temp 4-component vector of int)
520:3                'input' ( in 4-component vector of float)
530:3          Constant:
540:3            1.198000
550:3            1.198000
560:3            1.198000
570:3            1.198000
580:2  Function Definition: PixelShaderFunction( ( temp void)
590:2    Function Parameters:
600:?     Sequence
610:2      move second child to first child ( temp 4-component vector of float)
620:?         'input' ( temp 4-component vector of float)
630:?         'input' (layout( location=0) in 4-component vector of float)
640:2      move second child to first child ( temp 4-component vector of float)
650:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
660:2        Function Call: @PixelShaderFunction(vf4; ( temp 4-component vector of float)
670:?           'input' ( temp 4-component vector of float)
680:?   Linker Objects
690:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
700:?     'input' (layout( location=0) in 4-component vector of float)
71
72// Module Version 10000
73// Generated by (magic number): 8000a
74// Id's are bound by 34
75
76                              Capability Shader
77               1:             ExtInstImport  "GLSL.std.450"
78                              MemoryModel Logical GLSL450
79                              EntryPoint Fragment 4  "PixelShaderFunction" 27 30
80                              ExecutionMode 4 OriginUpperLeft
81                              Source HLSL 500
82                              Name 4  "PixelShaderFunction"
83                              Name 11  "@PixelShaderFunction(vf4;"
84                              Name 10  "input"
85                              Name 25  "input"
86                              Name 27  "input"
87                              Name 30  "@entryPointOutput"
88                              Name 31  "param"
89                              Decorate 27(input) Location 0
90                              Decorate 30(@entryPointOutput) Location 0
91               2:             TypeVoid
92               3:             TypeFunction 2
93               6:             TypeFloat 32
94               7:             TypeVector 6(float) 4
95               8:             TypePointer Function 7(fvec4)
96               9:             TypeFunction 7(fvec4) 8(ptr)
97              15:             TypeInt 32 1
98              16:             TypeVector 15(int) 4
99              20:    6(float) Constant 1067014160
100              21:    7(fvec4) ConstantComposite 20 20 20 20
101              26:             TypePointer Input 7(fvec4)
102       27(input):     26(ptr) Variable Input
103              29:             TypePointer Output 7(fvec4)
10430(@entryPointOutput):     29(ptr) Variable Output
1054(PixelShaderFunction):           2 Function None 3
106               5:             Label
107       25(input):      8(ptr) Variable Function
108       31(param):      8(ptr) Variable Function
109              28:    7(fvec4) Load 27(input)
110                              Store 25(input) 28
111              32:    7(fvec4) Load 25(input)
112                              Store 31(param) 32
113              33:    7(fvec4) FunctionCall 11(@PixelShaderFunction(vf4;) 31(param)
114                              Store 30(@entryPointOutput) 33
115                              Return
116                              FunctionEnd
11711(@PixelShaderFunction(vf4;):    7(fvec4) Function None 9
118       10(input):      8(ptr) FunctionParameter
119              12:             Label
120              13:    7(fvec4) Load 10(input)
121              14:    7(fvec4) Load 10(input)
122              17:   16(ivec4) ConvertFToS 14
123              18:    7(fvec4) ConvertSToF 17
124              19:    7(fvec4) FAdd 13 18
125              22:    7(fvec4) FAdd 19 21
126                              ReturnValue 22
127                              FunctionEnd
128