aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/hlsl.sample.dx9.vert.out
blob: 59878a9903340a8e6216956ee996a5a10aacaf00 (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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
hlsl.sample.dx9.vert
Shader version: 500
0:? Sequence
0:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float Pos})
0:11    Function Parameters: 
0:?     Sequence
0:14      Sequence
0:14        move second child to first child ( temp 4-component vector of float)
0:14          'PosOut' ( temp 4-component vector of float)
0:14          Constant:
0:14            0.000000
0:14            0.000000
0:14            0.000000
0:14            0.000000
0:16      add second child into first child ( temp 4-component vector of float)
0:16        'PosOut' ( temp 4-component vector of float)
0:16        textureLod ( temp 4-component vector of float)
0:16          'g_sam' (layout( binding=0) uniform sampler2D)
0:16          Construct vec2 ( temp 2-component vector of float)
0:16            Constant:
0:16              0.300000
0:16              0.400000
0:16              0.000000
0:16              1.000000
0:16          direct index ( temp float)
0:16            Constant:
0:16              0.300000
0:16              0.400000
0:16              0.000000
0:16              1.000000
0:16            Constant:
0:16              3 (const int)
0:17      add second child into first child ( temp 4-component vector of float)
0:17        'PosOut' ( temp 4-component vector of float)
0:17        textureLod ( temp 4-component vector of float)
0:17          'g_sam2D' (layout( binding=1) uniform sampler2D)
0:17          Construct vec2 ( temp 2-component vector of float)
0:17            Constant:
0:17              0.500000
0:17              0.600000
0:17              0.000000
0:17              1.000000
0:17          direct index ( temp float)
0:17            Constant:
0:17              0.500000
0:17              0.600000
0:17              0.000000
0:17              1.000000
0:17            Constant:
0:17              3 (const int)
0:19      move second child to first child ( temp 4-component vector of float)
0:19        Pos: direct index for structure ( temp 4-component vector of float)
0:19          'vsout' ( temp structure{ temp 4-component vector of float Pos})
0:19          Constant:
0:19            0 (const int)
0:19        divide ( temp 4-component vector of float)
0:19          'PosOut' ( temp 4-component vector of float)
0:19          Constant:
0:19            2.000000
0:21      Branch: Return with expression
0:21        'vsout' ( temp structure{ temp 4-component vector of float Pos})
0:11  Function Definition: main( ( temp void)
0:11    Function Parameters: 
0:?     Sequence
0:11      Sequence
0:11        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.Pos' ( out 4-component vector of float Position)
0:11          Pos: direct index for structure ( temp 4-component vector of float)
0:11            Function Call: @main( ( temp structure{ temp 4-component vector of float Pos})
0:11            Constant:
0:11              0 (const int)
0:?   Linker Objects
0:?     'g_sam' (layout( binding=0) uniform sampler2D)
0:?     'g_sam2D' (layout( binding=1) uniform sampler2D)
0:?     '@entryPointOutput.Pos' ( out 4-component vector of float Position)


Linked vertex stage:


Shader version: 500
0:? Sequence
0:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float Pos})
0:11    Function Parameters: 
0:?     Sequence
0:14      Sequence
0:14        move second child to first child ( temp 4-component vector of float)
0:14          'PosOut' ( temp 4-component vector of float)
0:14          Constant:
0:14            0.000000
0:14            0.000000
0:14            0.000000
0:14            0.000000
0:16      add second child into first child ( temp 4-component vector of float)
0:16        'PosOut' ( temp 4-component vector of float)
0:16        textureLod ( temp 4-component vector of float)
0:16          'g_sam' (layout( binding=0) uniform sampler2D)
0:16          Construct vec2 ( temp 2-component vector of float)
0:16            Constant:
0:16              0.300000
0:16              0.400000
0:16              0.000000
0:16              1.000000
0:16          direct index ( temp float)
0:16            Constant:
0:16              0.300000
0:16              0.400000
0:16              0.000000
0:16              1.000000
0:16            Constant:
0:16              3 (const int)
0:17      add second child into first child ( temp 4-component vector of float)
0:17        'PosOut' ( temp 4-component vector of float)
0:17        textureLod ( temp 4-component vector of float)
0:17          'g_sam2D' (layout( binding=1) uniform sampler2D)
0:17          Construct vec2 ( temp 2-component vector of float)
0:17            Constant:
0:17              0.500000
0:17              0.600000
0:17              0.000000
0:17              1.000000
0:17          direct index ( temp float)
0:17            Constant:
0:17              0.500000
0:17              0.600000
0:17              0.000000
0:17              1.000000
0:17            Constant:
0:17              3 (const int)
0:19      move second child to first child ( temp 4-component vector of float)
0:19        Pos: direct index for structure ( temp 4-component vector of float)
0:19          'vsout' ( temp structure{ temp 4-component vector of float Pos})
0:19          Constant:
0:19            0 (const int)
0:19        divide ( temp 4-component vector of float)
0:19          'PosOut' ( temp 4-component vector of float)
0:19          Constant:
0:19            2.000000
0:21      Branch: Return with expression
0:21        'vsout' ( temp structure{ temp 4-component vector of float Pos})
0:11  Function Definition: main( ( temp void)
0:11    Function Parameters: 
0:?     Sequence
0:11      Sequence
0:11        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.Pos' ( out 4-component vector of float Position)
0:11          Pos: direct index for structure ( temp 4-component vector of float)
0:11            Function Call: @main( ( temp structure{ temp 4-component vector of float Pos})
0:11            Constant:
0:11              0 (const int)
0:?   Linker Objects
0:?     'g_sam' (layout( binding=0) uniform sampler2D)
0:?     'g_sam2D' (layout( binding=1) uniform sampler2D)
0:?     '@entryPointOutput.Pos' ( out 4-component vector of float Position)

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

                              Capability Shader
               2:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Vertex 5  "main" 61
               1:             String  ""
                              Source HLSL 500 1  "// OpModuleProcessed auto-map-locations
// OpModuleProcessed auto-map-bindings
// OpModuleProcessed entry-point main
// OpModuleProcessed client vulkan100
// OpModuleProcessed target-env vulkan1.0
// OpModuleProcessed keep-uncalled
// OpModuleProcessed hlsl-offsets
#line 1
"
                              Name 5  "main"
                              Name 9  "VS_OUTPUT"
                              MemberName 9(VS_OUTPUT) 0  "Pos"
                              Name 11  "@main("
                              Name 14  "PosOut"
                              Name 20  "g_sam"
                              Name 36  "g_sam2D"
                              Name 49  "vsout"
                              Name 61  "@entryPointOutput.Pos"
                              Decorate 20(g_sam) DescriptorSet 0
                              Decorate 20(g_sam) Binding 0
                              Decorate 36(g_sam2D) DescriptorSet 0
                              Decorate 36(g_sam2D) Binding 1
                              Decorate 61(@entryPointOutput.Pos) BuiltIn Position
               3:             TypeVoid
               4:             TypeFunction 3
               7:             TypeFloat 32
               8:             TypeVector 7(float) 4
    9(VS_OUTPUT):             TypeStruct 8(fvec4)
              10:             TypeFunction 9(VS_OUTPUT)
              13:             TypePointer Function 8(fvec4)
              15:    7(float) Constant 0
              16:    8(fvec4) ConstantComposite 15 15 15 15
              17:             TypeImage 7(float) 2D sampled format:Unknown
              18:             TypeSampledImage 17
              19:             TypePointer UniformConstant 18
       20(g_sam):     19(ptr) Variable UniformConstant
              22:    7(float) Constant 1050253722
              23:    7(float) Constant 1053609165
              24:    7(float) Constant 1065353216
              25:    8(fvec4) ConstantComposite 22 23 15 24
              26:             TypeVector 7(float) 2
              30:             TypeInt 32 0
              31:     30(int) Constant 3
     36(g_sam2D):     19(ptr) Variable UniformConstant
              38:    7(float) Constant 1056964608
              39:    7(float) Constant 1058642330
              40:    8(fvec4) ConstantComposite 38 39 15 24
              48:             TypePointer Function 9(VS_OUTPUT)
              50:             TypeInt 32 1
              51:     50(int) Constant 0
              53:    7(float) Constant 1073741824
              60:             TypePointer Output 8(fvec4)
61(@entryPointOutput.Pos):     60(ptr) Variable Output
                              Line 1 11 1
         5(main):           3 Function None 4
               6:             Label
                              Line 1 11 0
              62:9(VS_OUTPUT) FunctionCall 11(@main()
              63:    8(fvec4) CompositeExtract 62 0
                              Store 61(@entryPointOutput.Pos) 63
                              Return
                              FunctionEnd
                              Line 1 11 1
      11(@main():9(VS_OUTPUT) Function None 10
              12:             Label
      14(PosOut):     13(ptr) Variable Function
       49(vsout):     48(ptr) Variable Function
                              Line 1 14 0
                              Store 14(PosOut) 16
                              Line 1 16 0
              21:          18 Load 20(g_sam)
              27:    7(float) CompositeExtract 25 0
              28:    7(float) CompositeExtract 25 1
              29:   26(fvec2) CompositeConstruct 27 28
              32:    7(float) CompositeExtract 25 3
              33:    8(fvec4) ImageSampleExplicitLod 21 29 Lod 32
              34:    8(fvec4) Load 14(PosOut)
              35:    8(fvec4) FAdd 34 33
                              Store 14(PosOut) 35
                              Line 1 17 0
              37:          18 Load 36(g_sam2D)
              41:    7(float) CompositeExtract 40 0
              42:    7(float) CompositeExtract 40 1
              43:   26(fvec2) CompositeConstruct 41 42
              44:    7(float) CompositeExtract 40 3
              45:    8(fvec4) ImageSampleExplicitLod 37 43 Lod 44
              46:    8(fvec4) Load 14(PosOut)
              47:    8(fvec4) FAdd 46 45
                              Store 14(PosOut) 47
                              Line 1 19 0
              52:    8(fvec4) Load 14(PosOut)
              54:    8(fvec4) CompositeConstruct 53 53 53 53
              55:    8(fvec4) FDiv 52 54
              56:     13(ptr) AccessChain 49(vsout) 51
                              Store 56 55
                              Line 1 21 0
              57:9(VS_OUTPUT) Load 49(vsout)
                              ReturnValue 57
                              FunctionEnd