aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/hlsl.global-const-init.frag.out
blob: 0510b3e83e31d2687c39cfe3a57b8002d90a82c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
hlsl.global-const-init.frag
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:6  Sequence
0:6    move second child to first child ( temp 4-component vector of float)
0:6      'bar' ( global 4-component vector of float)
0:6      foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float)
0:6        'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
0:6        Constant:
0:6          0 (const uint)
0:8  Sequence
0:8    move second child to first child ( temp 2-element array of 2-component vector of float)
0:8      'a1' ( global 2-element array of 2-component vector of float)
0:8      Construct vec2 ( temp 2-element array of 2-component vector of float)
0:8        Constant:
0:8          1.000000
0:8          2.000000
0:8        Construct vec2 ( temp 2-component vector of float)
0:8          direct index ( temp float)
0:8            foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float)
0:8              'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
0:8              Constant:
0:8                0 (const uint)
0:8            Constant:
0:8              0 (const int)
0:8          Constant:
0:8            4.000000
0:12  Function Definition: @main( ( temp 4-component vector of float)
0:12    Function Parameters: 
0:?     Sequence
0:13      Branch: Return with expression
0:13        'bar' ( global 4-component vector of float)
0:12  Function Definition: main( ( temp void)
0:12    Function Parameters: 
0:?     Sequence
0:12      move second child to first child ( temp 4-component vector of float)
0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:12        Function Call: @main( ( temp 4-component vector of float)
0:?   Linker Objects
0:?     'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
0:?     'bar' ( global 4-component vector of float)
0:?     'a1' ( global 2-element array of 2-component vector of float)
0:?     'a2' ( const 2-element array of 2-component vector of float)
0:?       5.000000
0:?       6.000000
0:?       7.000000
0:?       8.000000
0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)


Linked fragment stage:


Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:6  Sequence
0:6    move second child to first child ( temp 4-component vector of float)
0:6      'bar' ( global 4-component vector of float)
0:6      foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float)
0:6        'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
0:6        Constant:
0:6          0 (const uint)
0:8  Sequence
0:8    move second child to first child ( temp 2-element array of 2-component vector of float)
0:8      'a1' ( global 2-element array of 2-component vector of float)
0:8      Construct vec2 ( temp 2-element array of 2-component vector of float)
0:8        Constant:
0:8          1.000000
0:8          2.000000
0:8        Construct vec2 ( temp 2-component vector of float)
0:8          direct index ( temp float)
0:8            foo: direct index for structure (layout( row_major std140) uniform 4-component vector of float)
0:8              'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
0:8              Constant:
0:8                0 (const uint)
0:8            Constant:
0:8              0 (const int)
0:8          Constant:
0:8            4.000000
0:12  Function Definition: @main( ( temp 4-component vector of float)
0:12    Function Parameters: 
0:?     Sequence
0:13      Branch: Return with expression
0:13        'bar' ( global 4-component vector of float)
0:12  Function Definition: main( ( temp void)
0:12    Function Parameters: 
0:?     Sequence
0:12      move second child to first child ( temp 4-component vector of float)
0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:12        Function Call: @main( ( temp 4-component vector of float)
0:?   Linker Objects
0:?     'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float foo})
0:?     'bar' ( global 4-component vector of float)
0:?     'a1' ( global 2-element array of 2-component vector of float)
0:?     'a2' ( const 2-element array of 2-component vector of float)
0:?       5.000000
0:?       6.000000
0:?       7.000000
0:?       8.000000
0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)

// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 50

                              Capability Shader
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Fragment 4  "main" 41
                              ExecutionMode 4 OriginUpperLeft
                              Source HLSL 500
                              Name 4  "main"
                              Name 9  "@main("
                              Name 12  "bar"
                              Name 13  "CB"
                              MemberName 13(CB) 0  "foo"
                              Name 15  ""
                              Name 26  "a1"
                              Name 41  "@entryPointOutput"
                              MemberDecorate 13(CB) 0 Offset 0
                              Decorate 13(CB) Block
                              Decorate 15 DescriptorSet 0
                              Decorate 15 Binding 0
                              Decorate 41(@entryPointOutput) Location 0
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeFloat 32
               7:             TypeVector 6(float) 4
               8:             TypeFunction 7(fvec4)
              11:             TypePointer Private 7(fvec4)
         12(bar):     11(ptr) Variable Private
          13(CB):             TypeStruct 7(fvec4)
              14:             TypePointer Uniform 13(CB)
              15:     14(ptr) Variable Uniform
              16:             TypeInt 32 1
              17:     16(int) Constant 0
              18:             TypePointer Uniform 7(fvec4)
              21:             TypeVector 6(float) 2
              22:             TypeInt 32 0
              23:     22(int) Constant 2
              24:             TypeArray 21(fvec2) 23
              25:             TypePointer Private 24
          26(a1):     25(ptr) Variable Private
              27:    6(float) Constant 1065353216
              28:    6(float) Constant 1073741824
              29:   21(fvec2) ConstantComposite 27 28
              30:     22(int) Constant 0
              31:             TypePointer Uniform 6(float)
              34:    6(float) Constant 1082130432
              40:             TypePointer Output 7(fvec4)
41(@entryPointOutput):     40(ptr) Variable Output
              43:    6(float) Constant 1084227584
              44:    6(float) Constant 1086324736
              45:   21(fvec2) ConstantComposite 43 44
              46:    6(float) Constant 1088421888
              47:    6(float) Constant 1090519040
              48:   21(fvec2) ConstantComposite 46 47
              49:          24 ConstantComposite 45 48
         4(main):           2 Function None 3
               5:             Label
              19:     18(ptr) AccessChain 15 17
              20:    7(fvec4) Load 19
                              Store 12(bar) 20
              32:     31(ptr) AccessChain 15 17 30
              33:    6(float) Load 32
              35:   21(fvec2) CompositeConstruct 33 34
              36:          24 CompositeConstruct 29 35
                              Store 26(a1) 36
              42:    7(fvec4) FunctionCall 9(@main()
                              Store 41(@entryPointOutput) 42
                              Return
                              FunctionEnd
       9(@main():    7(fvec4) Function None 8
              10:             Label
              37:    7(fvec4) Load 12(bar)
                              ReturnValue 37
                              FunctionEnd