6edb191d7a4015cd33366364d2b8e4c90b4e7c50
[platform/upstream/glslang.git] / Test / baseResults / hlsl.typedef.frag.out
1 hlsl.typedef.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:4  Function Definition: ShaderFunction(vf4;i1; ( temp 4-component vector of float)
6 0:4    Function Parameters: 
7 0:4      'input' ( in 4-component vector of float)
8 0:4      'ii' ( in int)
9 0:?     Sequence
10 0:6      Sequence
11 0:6        move second child to first child ( temp 4-component vector of float)
12 0:6          'a1' ( temp 4-component vector of float)
13 0:6          Constant:
14 0:6            1.000000
15 0:6            1.000000
16 0:6            1.000000
17 0:6            1.000000
18 0:7      Sequence
19 0:7        move second child to first child ( temp int)
20 0:7          'i' ( temp int)
21 0:7          Constant:
22 0:7            2 (const int)
23 0:9      Sequence
24 0:9        move second child to first child ( temp int)
25 0:9          'j' ( temp int)
26 0:9          'ii' ( in int)
27 0:10      Branch: Return with expression
28 0:10        add ( temp 4-component vector of float)
29 0:10          component-wise multiply ( temp 4-component vector of float)
30 0:10            'input' ( in 4-component vector of float)
31 0:10            'a1' ( temp 4-component vector of float)
32 0:10          Construct vec4 ( uniform 4-component vector of float)
33 0:10            Convert int to float ( temp float)
34 0:10              add ( temp int)
35 0:10                'i' ( temp int)
36 0:10                'j' ( temp int)
37 0:?   Linker Objects
38
39
40 Linked fragment stage:
41
42 WARNING: Linking fragment stage: Entry point not found
43
44 Shader version: 450
45 gl_FragCoord origin is upper left
46 0:? Sequence
47 0:4  Function Definition: ShaderFunction(vf4;i1; ( temp 4-component vector of float)
48 0:4    Function Parameters: 
49 0:4      'input' ( in 4-component vector of float)
50 0:4      'ii' ( in int)
51 0:?     Sequence
52 0:6      Sequence
53 0:6        move second child to first child ( temp 4-component vector of float)
54 0:6          'a1' ( temp 4-component vector of float)
55 0:6          Constant:
56 0:6            1.000000
57 0:6            1.000000
58 0:6            1.000000
59 0:6            1.000000
60 0:7      Sequence
61 0:7        move second child to first child ( temp int)
62 0:7          'i' ( temp int)
63 0:7          Constant:
64 0:7            2 (const int)
65 0:9      Sequence
66 0:9        move second child to first child ( temp int)
67 0:9          'j' ( temp int)
68 0:9          'ii' ( in int)
69 0:10      Branch: Return with expression
70 0:10        add ( temp 4-component vector of float)
71 0:10          component-wise multiply ( temp 4-component vector of float)
72 0:10            'input' ( in 4-component vector of float)
73 0:10            'a1' ( temp 4-component vector of float)
74 0:10          Construct vec4 ( uniform 4-component vector of float)
75 0:10            Convert int to float ( temp float)
76 0:10              add ( temp int)
77 0:10                'i' ( temp int)
78 0:10                'j' ( temp int)
79 0:?   Linker Objects
80
81 // Module Version 10000
82 // Generated by (magic number): 80001
83 // Id's are bound by 34
84
85                               Capability Shader
86                1:             ExtInstImport  "GLSL.std.450"
87                               MemoryModel Logical GLSL450
88                               EntryPoint Fragment 4  "PixelShaderFunction"
89                               ExecutionMode 4 OriginUpperLeft
90                               Name 4  "PixelShaderFunction"
91                               Name 14  "ShaderFunction(vf4;i1;"
92                               Name 12  "input"
93                               Name 13  "ii"
94                               Name 16  "a1"
95                               Name 19  "i"
96                               Name 21  "j"
97                2:             TypeVoid
98                3:             TypeFunction 2
99                6:             TypeFloat 32
100                7:             TypeVector 6(float) 4
101                8:             TypePointer Function 7(fvec4)
102                9:             TypeInt 32 1
103               10:             TypePointer Function 9(int)
104               11:             TypeFunction 7(fvec4) 8(ptr) 10(ptr)
105               17:    6(float) Constant 1065353216
106               18:    7(fvec4) ConstantComposite 17 17 17 17
107               20:      9(int) Constant 2
108 4(PixelShaderFunction):           2 Function None 3
109                5:             Label
110                               Return
111                               FunctionEnd
112 14(ShaderFunction(vf4;i1;):    7(fvec4) Function None 11
113        12(input):      8(ptr) FunctionParameter
114           13(ii):     10(ptr) FunctionParameter
115               15:             Label
116           16(a1):      8(ptr) Variable Function
117            19(i):     10(ptr) Variable Function
118            21(j):     10(ptr) Variable Function
119                               Store 16(a1) 18
120                               Store 19(i) 20
121               22:      9(int) Load 13(ii)
122                               Store 21(j) 22
123               23:    7(fvec4) Load 12(input)
124               24:    7(fvec4) Load 16(a1)
125               25:    7(fvec4) FMul 23 24
126               26:      9(int) Load 19(i)
127               27:      9(int) Load 21(j)
128               28:      9(int) IAdd 26 27
129               29:    6(float) ConvertSToF 28
130               30:    7(fvec4) CompositeConstruct 29 29 29 29
131               31:    7(fvec4) FAdd 25 30
132                               ReturnValue 31
133                               FunctionEnd