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 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
|
hlsl.array.frag
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:7 Sequence
0:7 move second child to first child ( temp 4-component vector of float)
0:7 'C' ( global 4-component vector of float)
0:7 Constant:
0:7 1.000000
0:7 2.000000
0:7 3.000000
0:7 4.000000
0:11 Sequence
0:11 move second child to first child ( temp 2-element array of 4-component vector of float)
0:11 'c2' ( global 2-element array of 4-component vector of float)
0:11 Construct vec4 ( temp 2-element array of 4-component vector of float)
0:11 'C' ( global 4-component vector of float)
0:11 Constant:
0:11 1.000000
0:11 2.000000
0:11 3.000000
0:11 4.000000
0:14 Function Definition: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
0:14 Function Parameters:
0:14 'i' ( in int)
0:14 'input' ( in 3-element array of 4-component vector of float)
0:? Sequence
0:15 Sequence
0:15 move second child to first child ( temp 10-element array of 4-component vector of float)
0:15 'b' ( temp 10-element array of 4-component vector of float)
0:15 Construct vec4 ( temp 10-element array of 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:16 Sequence
0:16 move second child to first child ( temp 4-component vector of float)
0:16 'tmp' ( temp 4-component vector of float)
0:16 add ( temp 4-component vector of float)
0:16 add ( temp 4-component vector of float)
0:16 add ( temp 4-component vector of float)
0:16 add ( temp 4-component vector of float)
0:16 'C' ( global 4-component vector of float)
0:16 direct index ( temp 4-component vector of float)
0:16 a1: direct index for structure ( uniform 1-element array of 4-component vector of float)
0:16 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:16 Constant:
0:16 2 (const uint)
0:16 Constant:
0:16 0 (const int)
0:16 Constant:
0:16 1.000000
0:16 2.000000
0:16 3.000000
0:16 4.000000
0:16 indirect index ( temp 4-component vector of float)
0:16 a2: direct index for structure ( uniform 2-element array of 4-component vector of float)
0:16 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:16 Constant:
0:16 3 (const uint)
0:16 'i' ( in int)
0:16 indirect index ( temp 4-component vector of float)
0:16 'c2' ( global 2-element array of 4-component vector of float)
0:16 'i' ( in int)
0:17 Branch: Return with expression
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 direct index ( temp 4-component vector of float)
0:17 a: direct index for structure ( uniform 4-element array of 4-component vector of float)
0:17 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:17 Constant:
0:17 0 (const uint)
0:17 Constant:
0:17 1 (const int)
0:17 indirect index ( temp 4-component vector of float)
0:17 a: direct index for structure ( uniform 4-element array of 4-component vector of float)
0:17 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:17 Constant:
0:17 0 (const uint)
0:17 'i' ( in int)
0:17 direct index ( temp 4-component vector of float)
0:17 'input' ( in 3-element array of 4-component vector of float)
0:17 Constant:
0:17 2 (const int)
0:17 indirect index ( temp 4-component vector of float)
0:17 'input' ( in 3-element array of 4-component vector of float)
0:17 'i' ( in int)
0:17 direct index ( temp 4-component vector of float)
0:17 'b' ( temp 10-element array of 4-component vector of float)
0:17 Constant:
0:17 5 (const int)
0:17 indirect index ( temp 4-component vector of float)
0:17 'b' ( temp 10-element array of 4-component vector of float)
0:17 'i' ( in int)
0:17 indirect index ( temp 4-component vector of float)
0:17 m: direct index for structure ( temp 7-element array of 4-component vector of float)
0:17 indirect index ( temp structure{ temp 7-element array of 4-component vector of float m})
0:17 s: direct index for structure ( uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m})
0:17 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:17 Constant:
0:17 1 (const uint)
0:17 'i' ( in int)
0:17 Constant:
0:17 0 (const int)
0:17 'i' ( in int)
0:17 'tmp' ( temp 4-component vector of float)
0:14 Function Definition: PixelShaderFunction( ( temp void)
0:14 Function Parameters:
0:? Sequence
0:14 move second child to first child ( temp int)
0:? 'i' ( temp int)
0:? 'i' (layout( location=0) flat in int)
0:14 move second child to first child ( temp 3-element array of 4-component vector of float)
0:? 'input' ( temp 3-element array of 4-component vector of float)
0:? 'input' (layout( location=1) in 3-element array of 4-component vector of float)
0:14 move second child to first child ( temp 4-component vector of float)
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:14 Function Call: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
0:? 'i' ( temp int)
0:? 'input' ( temp 3-element array of 4-component vector of float)
0:? Linker Objects
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:? 'C' ( global 4-component vector of float)
0:? 'c1' ( const 1-element array of 4-component vector of float)
0:? 1.000000
0:? 2.000000
0:? 3.000000
0:? 4.000000
0:? 'c2' ( global 2-element array of 4-component vector of float)
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:? 'i' (layout( location=0) flat in int)
0:? 'input' (layout( location=1) in 3-element array of 4-component vector of float)
Linked fragment stage:
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:7 Sequence
0:7 move second child to first child ( temp 4-component vector of float)
0:7 'C' ( global 4-component vector of float)
0:7 Constant:
0:7 1.000000
0:7 2.000000
0:7 3.000000
0:7 4.000000
0:11 Sequence
0:11 move second child to first child ( temp 2-element array of 4-component vector of float)
0:11 'c2' ( global 2-element array of 4-component vector of float)
0:11 Construct vec4 ( temp 2-element array of 4-component vector of float)
0:11 'C' ( global 4-component vector of float)
0:11 Constant:
0:11 1.000000
0:11 2.000000
0:11 3.000000
0:11 4.000000
0:14 Function Definition: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
0:14 Function Parameters:
0:14 'i' ( in int)
0:14 'input' ( in 3-element array of 4-component vector of float)
0:? Sequence
0:15 Sequence
0:15 move second child to first child ( temp 10-element array of 4-component vector of float)
0:15 'b' ( temp 10-element array of 4-component vector of float)
0:15 Construct vec4 ( temp 10-element array of 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:15 'C' ( global 4-component vector of float)
0:16 Sequence
0:16 move second child to first child ( temp 4-component vector of float)
0:16 'tmp' ( temp 4-component vector of float)
0:16 add ( temp 4-component vector of float)
0:16 add ( temp 4-component vector of float)
0:16 add ( temp 4-component vector of float)
0:16 add ( temp 4-component vector of float)
0:16 'C' ( global 4-component vector of float)
0:16 direct index ( temp 4-component vector of float)
0:16 a1: direct index for structure ( uniform 1-element array of 4-component vector of float)
0:16 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:16 Constant:
0:16 2 (const uint)
0:16 Constant:
0:16 0 (const int)
0:16 Constant:
0:16 1.000000
0:16 2.000000
0:16 3.000000
0:16 4.000000
0:16 indirect index ( temp 4-component vector of float)
0:16 a2: direct index for structure ( uniform 2-element array of 4-component vector of float)
0:16 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:16 Constant:
0:16 3 (const uint)
0:16 'i' ( in int)
0:16 indirect index ( temp 4-component vector of float)
0:16 'c2' ( global 2-element array of 4-component vector of float)
0:16 'i' ( in int)
0:17 Branch: Return with expression
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 add ( temp 4-component vector of float)
0:17 direct index ( temp 4-component vector of float)
0:17 a: direct index for structure ( uniform 4-element array of 4-component vector of float)
0:17 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:17 Constant:
0:17 0 (const uint)
0:17 Constant:
0:17 1 (const int)
0:17 indirect index ( temp 4-component vector of float)
0:17 a: direct index for structure ( uniform 4-element array of 4-component vector of float)
0:17 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:17 Constant:
0:17 0 (const uint)
0:17 'i' ( in int)
0:17 direct index ( temp 4-component vector of float)
0:17 'input' ( in 3-element array of 4-component vector of float)
0:17 Constant:
0:17 2 (const int)
0:17 indirect index ( temp 4-component vector of float)
0:17 'input' ( in 3-element array of 4-component vector of float)
0:17 'i' ( in int)
0:17 direct index ( temp 4-component vector of float)
0:17 'b' ( temp 10-element array of 4-component vector of float)
0:17 Constant:
0:17 5 (const int)
0:17 indirect index ( temp 4-component vector of float)
0:17 'b' ( temp 10-element array of 4-component vector of float)
0:17 'i' ( in int)
0:17 indirect index ( temp 4-component vector of float)
0:17 m: direct index for structure ( temp 7-element array of 4-component vector of float)
0:17 indirect index ( temp structure{ temp 7-element array of 4-component vector of float m})
0:17 s: direct index for structure ( uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m})
0:17 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:17 Constant:
0:17 1 (const uint)
0:17 'i' ( in int)
0:17 Constant:
0:17 0 (const int)
0:17 'i' ( in int)
0:17 'tmp' ( temp 4-component vector of float)
0:14 Function Definition: PixelShaderFunction( ( temp void)
0:14 Function Parameters:
0:? Sequence
0:14 move second child to first child ( temp int)
0:? 'i' ( temp int)
0:? 'i' (layout( location=0) flat in int)
0:14 move second child to first child ( temp 3-element array of 4-component vector of float)
0:? 'input' ( temp 3-element array of 4-component vector of float)
0:? 'input' (layout( location=1) in 3-element array of 4-component vector of float)
0:14 move second child to first child ( temp 4-component vector of float)
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:14 Function Call: @PixelShaderFunction(i1;vf4[3]; ( temp 4-component vector of float)
0:? 'i' ( temp int)
0:? 'input' ( temp 3-element array of 4-component vector of float)
0:? Linker Objects
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform 4-element array of 4-component vector of float a, uniform 11-element array of structure{ temp 7-element array of 4-component vector of float m} s, uniform 1-element array of 4-component vector of float a1, uniform 2-element array of 4-component vector of float a2})
0:? 'C' ( global 4-component vector of float)
0:? 'c1' ( const 1-element array of 4-component vector of float)
0:? 1.000000
0:? 2.000000
0:? 3.000000
0:? 4.000000
0:? 'c2' ( global 2-element array of 4-component vector of float)
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:? 'i' (layout( location=0) flat in int)
0:? 'input' (layout( location=1) in 3-element array of 4-component vector of float)
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 118
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "PixelShaderFunction" 103 107 110
ExecutionMode 4 OriginUpperLeft
Source HLSL 500
Name 4 "PixelShaderFunction"
Name 17 "@PixelShaderFunction(i1;vf4[3];"
Name 15 "i"
Name 16 "input"
Name 20 "C"
Name 29 "c2"
Name 35 "b"
Name 39 "tmp"
Name 45 ""
MemberName 45 0 "m"
Name 51 "$Global"
MemberName 51($Global) 0 "a"
MemberName 51($Global) 1 "s"
MemberName 51($Global) 2 "a1"
MemberName 51($Global) 3 "a2"
Name 53 ""
Name 101 "i"
Name 103 "i"
Name 105 "input"
Name 107 "input"
Name 110 "@entryPointOutput"
Name 111 "param"
Name 113 "param"
Decorate 42 ArrayStride 16
Decorate 44 ArrayStride 16
MemberDecorate 45 0 Offset 0
Decorate 47 ArrayStride 112
Decorate 49 ArrayStride 16
Decorate 50 ArrayStride 16
Decorate 51($Global) Block
MemberDecorate 51($Global) 0 Offset 0
MemberDecorate 51($Global) 1 Offset 64
MemberDecorate 51($Global) 2 Offset 1296
MemberDecorate 51($Global) 3 Offset 1312
Decorate 53 Binding 0
Decorate 53 DescriptorSet 0
Decorate 103(i) Flat
Decorate 103(i) Location 0
Decorate 107(input) Location 1
Decorate 110(@entryPointOutput) Location 0
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 1
7: TypePointer Function 6(int)
8: TypeFloat 32
9: TypeVector 8(float) 4
10: TypeInt 32 0
11: 10(int) Constant 3
12: TypeArray 9(fvec4) 11
13: TypePointer Function 12
14: TypeFunction 9(fvec4) 7(ptr) 13(ptr)
19: TypePointer Private 9(fvec4)
20(C): 19(ptr) Variable Private
21: 8(float) Constant 1065353216
22: 8(float) Constant 1073741824
23: 8(float) Constant 1077936128
24: 8(float) Constant 1082130432
25: 9(fvec4) ConstantComposite 21 22 23 24
26: 10(int) Constant 2
27: TypeArray 9(fvec4) 26
28: TypePointer Private 27
29(c2): 28(ptr) Variable Private
32: 10(int) Constant 10
33: TypeArray 9(fvec4) 32
34: TypePointer Function 33
38: TypePointer Function 9(fvec4)
41: 10(int) Constant 4
42: TypeArray 9(fvec4) 41
43: 10(int) Constant 7
44: TypeArray 9(fvec4) 43
45: TypeStruct 44
46: 10(int) Constant 11
47: TypeArray 45(struct) 46
48: 10(int) Constant 1
49: TypeArray 9(fvec4) 48
50: TypeArray 9(fvec4) 26
51($Global): TypeStruct 42 47 49 50
52: TypePointer Uniform 51($Global)
53: 52(ptr) Variable Uniform
54: 6(int) Constant 2
55: 6(int) Constant 0
56: TypePointer Uniform 9(fvec4)
61: 6(int) Constant 3
70: 6(int) Constant 1
84: 6(int) Constant 5
102: TypePointer Input 6(int)
103(i): 102(ptr) Variable Input
106: TypePointer Input 12
107(input): 106(ptr) Variable Input
109: TypePointer Output 9(fvec4)
110(@entryPointOutput): 109(ptr) Variable Output
116: TypeArray 9(fvec4) 48
117: 116 ConstantComposite 25
4(PixelShaderFunction): 2 Function None 3
5: Label
101(i): 7(ptr) Variable Function
105(input): 13(ptr) Variable Function
111(param): 7(ptr) Variable Function
113(param): 13(ptr) Variable Function
Store 20(C) 25
30: 9(fvec4) Load 20(C)
31: 27 CompositeConstruct 30 25
Store 29(c2) 31
104: 6(int) Load 103(i)
Store 101(i) 104
108: 12 Load 107(input)
Store 105(input) 108
112: 6(int) Load 101(i)
Store 111(param) 112
114: 12 Load 105(input)
Store 113(param) 114
115: 9(fvec4) FunctionCall 17(@PixelShaderFunction(i1;vf4[3];) 111(param) 113(param)
Store 110(@entryPointOutput) 115
Return
FunctionEnd
17(@PixelShaderFunction(i1;vf4[3];): 9(fvec4) Function None 14
15(i): 7(ptr) FunctionParameter
16(input): 13(ptr) FunctionParameter
18: Label
35(b): 34(ptr) Variable Function
39(tmp): 38(ptr) Variable Function
36: 9(fvec4) Load 20(C)
37: 33 CompositeConstruct 36 36 36 36 36 36 36 36 36 36
Store 35(b) 37
40: 9(fvec4) Load 20(C)
57: 56(ptr) AccessChain 53 54 55
58: 9(fvec4) Load 57
59: 9(fvec4) FAdd 40 58
60: 9(fvec4) FAdd 59 25
62: 6(int) Load 15(i)
63: 56(ptr) AccessChain 53 61 62
64: 9(fvec4) Load 63
65: 9(fvec4) FAdd 60 64
66: 6(int) Load 15(i)
67: 19(ptr) AccessChain 29(c2) 66
68: 9(fvec4) Load 67
69: 9(fvec4) FAdd 65 68
Store 39(tmp) 69
71: 56(ptr) AccessChain 53 55 70
72: 9(fvec4) Load 71
73: 6(int) Load 15(i)
74: 56(ptr) AccessChain 53 55 73
75: 9(fvec4) Load 74
76: 9(fvec4) FAdd 72 75
77: 38(ptr) AccessChain 16(input) 54
78: 9(fvec4) Load 77
79: 9(fvec4) FAdd 76 78
80: 6(int) Load 15(i)
81: 38(ptr) AccessChain 16(input) 80
82: 9(fvec4) Load 81
83: 9(fvec4) FAdd 79 82
85: 38(ptr) AccessChain 35(b) 84
86: 9(fvec4) Load 85
87: 9(fvec4) FAdd 83 86
88: 6(int) Load 15(i)
89: 38(ptr) AccessChain 35(b) 88
90: 9(fvec4) Load 89
91: 9(fvec4) FAdd 87 90
92: 6(int) Load 15(i)
93: 6(int) Load 15(i)
94: 56(ptr) AccessChain 53 70 92 55 93
95: 9(fvec4) Load 94
96: 9(fvec4) FAdd 91 95
97: 9(fvec4) Load 39(tmp)
98: 9(fvec4) FAdd 96 97
ReturnValue 98
FunctionEnd
|