glslang-zig/Test/baseResults/spv.debuginfo.hlsl.tese.out

642 lines
40 KiB
Text

spv.debuginfo.hlsl.tese
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 477
Capability Tessellation
Extension "SPV_KHR_non_semantic_info"
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint TessellationEvaluation 6 "main" 368 383 392 401 408 414 454 458 462 465 468 471 474
ExecutionMode 6 Quads
1: String ""
9: String "float"
12: String "uint"
26: String "TessLevelOuter"
28: String "// 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
"
32: String "TessLevelInner"
35: String "ConstantsHSOutput"
52: String "Pos"
55: String "Normal"
59: String "UV"
63: String "HSOutput"
71: String "WorldPos"
81: String "DSOutput"
89: String "@main"
95: String "input"
99: String "TessCoord"
102: String "patch"
112: String "output"
123: String "uv1"
126: String "int"
143: String "uv2"
167: String "n1"
179: String "n2"
202: String "pos1"
214: String "pos2"
226: String "pos"
238: String "type.2d.image"
239: String "@type.2d.image"
245: String "displacementMapTexture"
250: String "type.sampler"
251: String "@type.sampler"
256: String "displacementMapSampler"
260: String "type.sampled.image"
261: String "@type.sampled.image"
270: String "bool"
277: String "modelview"
282: String "lightPos"
286: String "frustumPlanes"
289: String "tessellatedEdgeSize"
293: String "viewportDim"
297: String "UBO"
300: String "ubo"
Name 6 "main"
Name 24 "ConstantsHSOutput"
MemberName 24(ConstantsHSOutput) 0 "TessLevelOuter"
MemberName 24(ConstantsHSOutput) 1 "TessLevelInner"
Name 50 "HSOutput"
MemberName 50(HSOutput) 0 "Pos"
MemberName 50(HSOutput) 1 "Normal"
MemberName 50(HSOutput) 2 "UV"
Name 66 "DSOutput"
MemberName 66(DSOutput) 0 "Pos"
MemberName 66(DSOutput) 1 "Normal"
MemberName 66(DSOutput) 2 "UV"
MemberName 66(DSOutput) 3 "ViewVec"
MemberName 66(DSOutput) 4 "LightVec"
MemberName 66(DSOutput) 5 "EyePos"
MemberName 66(DSOutput) 6 "WorldPos"
Name 87 "@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];"
Name 84 "input"
Name 85 "TessCoord"
Name 86 "patch"
Name 110 "output"
Name 121 "uv1"
Name 141 "uv2"
Name 165 "n1"
Name 177 "n2"
Name 200 "pos1"
Name 212 "pos2"
Name 224 "pos"
Name 243 "displacementMapTexture"
Name 254 "displacementMapSampler"
Name 275 "UBO"
MemberName 275(UBO) 0 "projection"
MemberName 275(UBO) 1 "modelview"
MemberName 275(UBO) 2 "lightPos"
MemberName 275(UBO) 3 "frustumPlanes"
MemberName 275(UBO) 4 "displacementFactor"
MemberName 275(UBO) 5 "tessellationFactor"
MemberName 275(UBO) 6 "viewportDim"
MemberName 275(UBO) 7 "tessellatedEdgeSize"
Name 298 "ubo"
MemberName 298(ubo) 0 "ubo"
Name 304 ""
Name 366 "input"
Name 368 "input.TessLevelOuter"
Name 383 "input.TessLevelInner"
Name 390 "TessCoord"
Name 392 "TessCoord"
Name 398 "patch"
Name 401 "patch.Pos"
Name 408 "patch.Normal"
Name 414 "patch.UV"
Name 446 "flattenTemp"
Name 448 "param"
Name 450 "param"
Name 454 "@entryPointOutput.Pos"
Name 458 "@entryPointOutput.Normal"
Name 462 "@entryPointOutput.UV"
Name 465 "@entryPointOutput.ViewVec"
Name 468 "@entryPointOutput.LightVec"
Name 471 "@entryPointOutput.EyePos"
Name 474 "@entryPointOutput.WorldPos"
Decorate 243(displacementMapTexture) DescriptorSet 0
Decorate 243(displacementMapTexture) Binding 1
Decorate 254(displacementMapSampler) DescriptorSet 0
Decorate 254(displacementMapSampler) Binding 1
Decorate 273 ArrayStride 16
MemberDecorate 275(UBO) 0 RowMajor
MemberDecorate 275(UBO) 0 Offset 0
MemberDecorate 275(UBO) 0 MatrixStride 16
MemberDecorate 275(UBO) 1 RowMajor
MemberDecorate 275(UBO) 1 Offset 64
MemberDecorate 275(UBO) 1 MatrixStride 16
MemberDecorate 275(UBO) 2 Offset 128
MemberDecorate 275(UBO) 3 Offset 144
MemberDecorate 275(UBO) 4 Offset 240
MemberDecorate 275(UBO) 5 Offset 244
MemberDecorate 275(UBO) 6 Offset 248
MemberDecorate 275(UBO) 7 Offset 256
MemberDecorate 298(ubo) 0 Offset 0
Decorate 298(ubo) Block
Decorate 304 DescriptorSet 0
Decorate 304 Binding 0
Decorate 368(input.TessLevelOuter) Patch
Decorate 368(input.TessLevelOuter) BuiltIn TessLevelOuter
Decorate 383(input.TessLevelInner) Patch
Decorate 383(input.TessLevelInner) BuiltIn TessLevelInner
Decorate 392(TessCoord) Patch
Decorate 392(TessCoord) BuiltIn TessCoord
Decorate 401(patch.Pos) BuiltIn Position
Decorate 408(patch.Normal) Location 0
Decorate 414(patch.UV) Location 1
Decorate 454(@entryPointOutput.Pos) BuiltIn Position
Decorate 458(@entryPointOutput.Normal) Location 0
Decorate 462(@entryPointOutput.UV) Location 1
Decorate 465(@entryPointOutput.ViewVec) Location 2
Decorate 468(@entryPointOutput.LightVec) Location 3
Decorate 471(@entryPointOutput.EyePos) Location 4
Decorate 474(@entryPointOutput.WorldPos) Location 5
4: TypeVoid
5: TypeFunction 4
8: TypeFloat 32
11: TypeInt 32 0
14: 11(int) Constant 32
15: 11(int) Constant 6
16: 11(int) Constant 0
13: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 14 15 16
17: 11(int) Constant 3
10: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 14 17 16
18: 11(int) Constant 4
19: TypeArray 8(float) 18
20: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 18
21: 11(int) Constant 2
22: TypeArray 8(float) 21
23: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 21
24(ConstantsHSOutput): TypeStruct 19 22
27: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 28
29: 11(int) Constant 51
30: 11(int) Constant 25
25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 26 20 27 29 30 16 16 17
33: 11(int) Constant 52
31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 32 23 27 33 30 16 16 17
36: 11(int) Constant 1
38: 11(int) Constant 5
37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 36 18 27 38
34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 35 36 27 16 16 37 35 16 17 25 31
39: TypePointer Function 24(ConstantsHSOutput)
40: 11(int) Constant 7
41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 34 40 16
42: TypeVector 8(float) 2
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 21
44: TypePointer Function 42(fvec2)
45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 43 40 16
46: TypeVector 8(float) 4
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 18
48: TypeVector 8(float) 3
49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17
50(HSOutput): TypeStruct 46(fvec4) 48(fvec3) 42(fvec2)
53: 11(int) Constant 44
51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 47 27 53 14 16 16 17
56: 11(int) Constant 45
57: 11(int) Constant 35
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 49 27 56 57 16 16 17
60: 11(int) Constant 46
61: 11(int) Constant 31
58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 59 43 27 60 61 16 16 17
62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 63 36 27 16 16 37 63 16 17 51 54 58
64: TypeArray 50(HSOutput) 18
65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 62 18
66(DSOutput): TypeStruct 46(fvec4) 48(fvec3) 42(fvec2) 48(fvec3) 48(fvec3) 48(fvec3) 48(fvec3)
68: 11(int) Constant 57
69: 11(int) Constant 13
67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 47 27 68 69 16 16 17
72: 11(int) Constant 63
73: 11(int) Constant 37
70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
75: 11(int) Constant 59
74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 59 43 27 75 61 16 16 17
76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
78: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
79: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 81 36 27 16 16 37 81 16 17 67 70 74 76 77 78 79
82: TypeFunction 66(DSOutput) 39(ptr) 44(ptr) 64
83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 80 34 43 62
91: 11(int) Constant 68
90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 89 83 27 91 16 37 89 17 91
94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 95 34 27 91 16 90 18 36
97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 99 43 27 91 16 90 18 21
101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 102 62 27 91 16 90 18 17
107: 11(int) Constant 70
108: TypePointer Function 66(DSOutput)
109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 80 40 16
111: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 112 80 27 107 16 90 18
114: 8(float) Constant 0
115: 46(fvec4) ConstantComposite 114 114 114 114
116: 48(fvec3) ConstantComposite 114 114 114
117: 42(fvec2) ConstantComposite 114 114
118:66(DSOutput) ConstantComposite 115 116 117 116 116 116 116
120: 11(int) Constant 71
122: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 123 43 27 120 16 90 18
125: TypeInt 32 1
127: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 126 14 18 16
128: 125(int) Constant 0
129: 125(int) Constant 2
131: 125(int) Constant 1
133: TypePointer Function 8(float)
134: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 40 16
140: 11(int) Constant 72
142: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 143 43 27 140 16 90 18
145: 125(int) Constant 3
153: 11(int) Constant 73
162: 11(int) Constant 75
163: TypePointer Function 48(fvec3)
164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 49 40 16
166: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 167 49 27 162 16 90 18
176: 11(int) Constant 76
178: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 179 49 27 176 16 90 18
188: 11(int) Constant 77
197: 11(int) Constant 80
198: TypePointer Function 46(fvec4)
199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 47 40 16
201: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 202 47 27 197 16 90 18
211: 11(int) Constant 81
213: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 214 47 27 211 16 90 18
223: 11(int) Constant 82
225: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 226 47 27 223 16 90 18
235: 11(int) Constant 84
236: TypeImage 8(float) 2D sampled format:Unknown
240: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone)
237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 238 16 27 235 16 37 239 240 17
241: TypePointer UniformConstant 236
242: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 237 16 16
243(displacementMapTexture): 241(ptr) Variable UniformConstant
246: 11(int) Constant 8
244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 245 237 27 235 16 37 245 243(displacementMapTexture) 246
248: TypeSampler
249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 250 36 27 235 16 37 251 240 17
252: TypePointer UniformConstant 248
253: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 249 16 16
254(displacementMapSampler): 252(ptr) Variable UniformConstant
255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 256 249 27 235 16 37 256 254(displacementMapSampler) 246
258: TypeSampledImage 236
259: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 260 16 27 235 16 37 261 240 17
267: TypeMatrix 46(fvec4) 4
269: TypeBool
271: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 270 14 21 16
272: 269(bool) ConstantTrue
268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 47 18 272
273: TypeArray 46(fvec4) 15
274: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 47 15
275(UBO): TypeStruct 267 267 46(fvec4) 273 8(float) 8(float) 42(fvec2) 8(float)
278: 11(int) Constant 29
279: 11(int) Constant 20
276: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 277 268 27 278 279 16 16 17
280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 277 268 27 278 279 16 16 17
283: 11(int) Constant 30
284: 11(int) Constant 17
281: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 282 47 27 283 284 16 16 17
287: 11(int) Constant 22
285: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 286 274 27 61 287 16 16 17
290: 11(int) Constant 27
288: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 289 10 27 57 290 16 16 17
291: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 289 10 27 57 290 16 16 17
294: 11(int) Constant 34
292: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 293 43 27 294 279 16 16 17
295: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 289 10 27 57 290 16 16 17
296: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 297 36 27 235 16 37 297 16 17 276 280 281 285 288 291 292 295
298(ubo): TypeStruct 275(UBO)
299: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 300 296 27 73 73 16 16 17
301: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 300 36 27 235 16 37 300 16 17 299
302: TypePointer Uniform 298(ubo)
303: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 301 21 16
304: 302(ptr) Variable Uniform
305: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 301 27 235 16 37 1 304 246
306: 125(int) Constant 4
307: TypePointer Uniform 8(float)
308: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 21 16
317: 11(int) Constant 86
319: TypePointer Uniform 267
320: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 268 21 16
329: 11(int) Constant 89
335: 11(int) Constant 90
336: TypePointer Uniform 46(fvec4)
337: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 47 21 16
347: 11(int) Constant 91
348: 125(int) Constant 6
353: 11(int) Constant 92
354: 125(int) Constant 5
362: 11(int) Constant 93
367: TypePointer Input 19
368(input.TessLevelOuter): 367(ptr) Variable Input
369: TypePointer Input 8(float)
382: TypePointer Input 22
383(input.TessLevelInner): 382(ptr) Variable Input
391: TypePointer Input 48(fvec3)
392(TessCoord): 391(ptr) Variable Input
397: TypePointer Function 64
399: TypeArray 46(fvec4) 18
400: TypePointer Input 399
401(patch.Pos): 400(ptr) Variable Input
402: TypePointer Input 46(fvec4)
406: TypeArray 48(fvec3) 18
407: TypePointer Input 406
408(patch.Normal): 407(ptr) Variable Input
412: TypeArray 42(fvec2) 18
413: TypePointer Input 412
414(patch.UV): 413(ptr) Variable Input
415: TypePointer Input 42(fvec2)
453: TypePointer Output 46(fvec4)
454(@entryPointOutput.Pos): 453(ptr) Variable Output
457: TypePointer Output 48(fvec3)
458(@entryPointOutput.Normal): 457(ptr) Variable Output
461: TypePointer Output 42(fvec2)
462(@entryPointOutput.UV): 461(ptr) Variable Output
465(@entryPointOutput.ViewVec): 457(ptr) Variable Output
468(@entryPointOutput.LightVec): 457(ptr) Variable Output
471(@entryPointOutput.EyePos): 457(ptr) Variable Output
474(@entryPointOutput.WorldPos): 457(ptr) Variable Output
Line 1 68 1
6(main): 4 Function None 5
7: Label
366(input): 39(ptr) Variable Function
390(TessCoord): 44(ptr) Variable Function
398(patch): 397(ptr) Variable Function
446(flattenTemp): 108(ptr) Variable Function
448(param): 39(ptr) Variable Function
450(param): 44(ptr) Variable Function
Line 1 68 0
370: 369(ptr) AccessChain 368(input.TessLevelOuter) 128
371: 8(float) Load 370
372: 133(ptr) AccessChain 366(input) 128 128
Store 372 371
373: 369(ptr) AccessChain 368(input.TessLevelOuter) 131
374: 8(float) Load 373
375: 133(ptr) AccessChain 366(input) 128 131
Store 375 374
376: 369(ptr) AccessChain 368(input.TessLevelOuter) 129
377: 8(float) Load 376
378: 133(ptr) AccessChain 366(input) 128 129
Store 378 377
379: 369(ptr) AccessChain 368(input.TessLevelOuter) 145
380: 8(float) Load 379
381: 133(ptr) AccessChain 366(input) 128 145
Store 381 380
384: 369(ptr) AccessChain 383(input.TessLevelInner) 128
385: 8(float) Load 384
386: 133(ptr) AccessChain 366(input) 131 128
Store 386 385
387: 369(ptr) AccessChain 383(input.TessLevelInner) 131
388: 8(float) Load 387
389: 133(ptr) AccessChain 366(input) 131 131
Store 389 388
393: 48(fvec3) Load 392(TessCoord)
394: 8(float) CompositeExtract 393 0
395: 8(float) CompositeExtract 393 1
396: 42(fvec2) CompositeConstruct 394 395
Store 390(TessCoord) 396
403: 402(ptr) AccessChain 401(patch.Pos) 128
404: 46(fvec4) Load 403
405: 198(ptr) AccessChain 398(patch) 128 128
Store 405 404
409: 391(ptr) AccessChain 408(patch.Normal) 128
410: 48(fvec3) Load 409
411: 163(ptr) AccessChain 398(patch) 128 131
Store 411 410
416: 415(ptr) AccessChain 414(patch.UV) 128
417: 42(fvec2) Load 416
418: 44(ptr) AccessChain 398(patch) 128 129
Store 418 417
419: 402(ptr) AccessChain 401(patch.Pos) 131
420: 46(fvec4) Load 419
421: 198(ptr) AccessChain 398(patch) 131 128
Store 421 420
422: 391(ptr) AccessChain 408(patch.Normal) 131
423: 48(fvec3) Load 422
424: 163(ptr) AccessChain 398(patch) 131 131
Store 424 423
425: 415(ptr) AccessChain 414(patch.UV) 131
426: 42(fvec2) Load 425
427: 44(ptr) AccessChain 398(patch) 131 129
Store 427 426
428: 402(ptr) AccessChain 401(patch.Pos) 129
429: 46(fvec4) Load 428
430: 198(ptr) AccessChain 398(patch) 129 128
Store 430 429
431: 391(ptr) AccessChain 408(patch.Normal) 129
432: 48(fvec3) Load 431
433: 163(ptr) AccessChain 398(patch) 129 131
Store 433 432
434: 415(ptr) AccessChain 414(patch.UV) 129
435: 42(fvec2) Load 434
436: 44(ptr) AccessChain 398(patch) 129 129
Store 436 435
437: 402(ptr) AccessChain 401(patch.Pos) 145
438: 46(fvec4) Load 437
439: 198(ptr) AccessChain 398(patch) 145 128
Store 439 438
440: 391(ptr) AccessChain 408(patch.Normal) 145
441: 48(fvec3) Load 440
442: 163(ptr) AccessChain 398(patch) 145 131
Store 442 441
443: 415(ptr) AccessChain 414(patch.UV) 145
444: 42(fvec2) Load 443
445: 44(ptr) AccessChain 398(patch) 145 129
Store 445 444
447: 64 Load 398(patch)
449:24(ConstantsHSOutput) Load 366(input)
Store 448(param) 449
451: 42(fvec2) Load 390(TessCoord)
Store 450(param) 451
452:66(DSOutput) FunctionCall 87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) 448(param) 450(param) 447
Store 446(flattenTemp) 452
455: 198(ptr) AccessChain 446(flattenTemp) 128
456: 46(fvec4) Load 455
Store 454(@entryPointOutput.Pos) 456
459: 163(ptr) AccessChain 446(flattenTemp) 131
460: 48(fvec3) Load 459
Store 458(@entryPointOutput.Normal) 460
463: 44(ptr) AccessChain 446(flattenTemp) 129
464: 42(fvec2) Load 463
Store 462(@entryPointOutput.UV) 464
466: 163(ptr) AccessChain 446(flattenTemp) 145
467: 48(fvec3) Load 466
Store 465(@entryPointOutput.ViewVec) 467
469: 163(ptr) AccessChain 446(flattenTemp) 306
470: 48(fvec3) Load 469
Store 468(@entryPointOutput.LightVec) 470
472: 163(ptr) AccessChain 446(flattenTemp) 354
473: 48(fvec3) Load 472
Store 471(@entryPointOutput.EyePos) 473
475: 163(ptr) AccessChain 446(flattenTemp) 348
476: 48(fvec3) Load 475
Store 474(@entryPointOutput.WorldPos) 476
Return
FunctionEnd
Line 1 68 1
87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];):66(DSOutput) Function None 82
84(input): 39(ptr) FunctionParameter
85(TessCoord): 44(ptr) FunctionParameter
86(patch): 64 FunctionParameter
88: Label
110(output): 108(ptr) Variable Function
121(uv1): 44(ptr) Variable Function
141(uv2): 44(ptr) Variable Function
165(n1): 163(ptr) Variable Function
177(n2): 163(ptr) Variable Function
200(pos1): 198(ptr) Variable Function
212(pos2): 198(ptr) Variable Function
224(pos): 198(ptr) Variable Function
92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 90
93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 91 91 16 16
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 94 84(input) 97
100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 98 85(TessCoord) 97
103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 101 86(patch) 97
104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 90 87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];)
105: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 90
106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 107 107 16 16
113: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 111 110(output) 97
Store 110(output) 118
119: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 120 120 16 16
124: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 122 121(uv1) 97
130: 42(fvec2) CompositeExtract 86(patch) 0 2
132: 42(fvec2) CompositeExtract 86(patch) 1 2
135: 133(ptr) AccessChain 85(TessCoord) 16
136: 8(float) Load 135
137: 42(fvec2) CompositeConstruct 136 136
138: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 130 132 137
Store 121(uv1) 138
139: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 140 140 16 16
144: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 142 141(uv2) 97
146: 42(fvec2) CompositeExtract 86(patch) 3 2
147: 42(fvec2) CompositeExtract 86(patch) 2 2
148: 133(ptr) AccessChain 85(TessCoord) 16
149: 8(float) Load 148
150: 42(fvec2) CompositeConstruct 149 149
151: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 146 147 150
Store 141(uv2) 151
152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 153 153 16 16
154: 42(fvec2) Load 121(uv1)
155: 42(fvec2) Load 141(uv2)
156: 133(ptr) AccessChain 85(TessCoord) 36
157: 8(float) Load 156
158: 42(fvec2) CompositeConstruct 157 157
159: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 154 155 158
160: 44(ptr) AccessChain 110(output) 129
Store 160 159
161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 162 162 16 16
168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 166 165(n1) 97
169: 48(fvec3) CompositeExtract 86(patch) 0 1
170: 48(fvec3) CompositeExtract 86(patch) 1 1
171: 133(ptr) AccessChain 85(TessCoord) 16
172: 8(float) Load 171
173: 48(fvec3) CompositeConstruct 172 172 172
174: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 169 170 173
Store 165(n1) 174
175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 176 176 16 16
180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 178 177(n2) 97
181: 48(fvec3) CompositeExtract 86(patch) 3 1
182: 48(fvec3) CompositeExtract 86(patch) 2 1
183: 133(ptr) AccessChain 85(TessCoord) 16
184: 8(float) Load 183
185: 48(fvec3) CompositeConstruct 184 184 184
186: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 181 182 185
Store 177(n2) 186
187: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 188 188 16 16
189: 48(fvec3) Load 165(n1)
190: 48(fvec3) Load 177(n2)
191: 133(ptr) AccessChain 85(TessCoord) 36
192: 8(float) Load 191
193: 48(fvec3) CompositeConstruct 192 192 192
194: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 189 190 193
195: 163(ptr) AccessChain 110(output) 131
Store 195 194
196: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 197 197 16 16
203: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 201 200(pos1) 97
204: 46(fvec4) CompositeExtract 86(patch) 0 0
205: 46(fvec4) CompositeExtract 86(patch) 1 0
206: 133(ptr) AccessChain 85(TessCoord) 16
207: 8(float) Load 206
208: 46(fvec4) CompositeConstruct 207 207 207 207
209: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 204 205 208
Store 200(pos1) 209
210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 211 211 16 16
215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 213 212(pos2) 97
216: 46(fvec4) CompositeExtract 86(patch) 3 0
217: 46(fvec4) CompositeExtract 86(patch) 2 0
218: 133(ptr) AccessChain 85(TessCoord) 16
219: 8(float) Load 218
220: 46(fvec4) CompositeConstruct 219 219 219 219
221: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 216 217 220
Store 212(pos2) 221
222: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 223 223 16 16
227: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 225 224(pos) 97
228: 46(fvec4) Load 200(pos1)
229: 46(fvec4) Load 212(pos2)
230: 133(ptr) AccessChain 85(TessCoord) 36
231: 8(float) Load 230
232: 46(fvec4) CompositeConstruct 231 231 231 231
233: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 228 229 232
Store 224(pos) 233
234: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 235 235 16 16
247: 236 Load 243(displacementMapTexture)
257: 248 Load 254(displacementMapSampler)
262: 258 SampledImage 247 257
263: 44(ptr) AccessChain 110(output) 129
264: 42(fvec2) Load 263
265: 46(fvec4) ImageSampleExplicitLod 262 264 Lod 114
266: 8(float) CompositeExtract 265 0
309: 307(ptr) AccessChain 304 128 306
310: 8(float) Load 309
311: 8(float) FMul 266 310
312: 133(ptr) AccessChain 224(pos) 36
313: 8(float) Load 312
314: 8(float) FSub 313 311
315: 133(ptr) AccessChain 224(pos) 36
Store 315 314
316: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 317 317 16 16
318: 46(fvec4) Load 224(pos)
321: 319(ptr) AccessChain 304 128 131
322: 267 Load 321
323: 46(fvec4) VectorTimesMatrix 318 322
324: 319(ptr) AccessChain 304 128 128
325: 267 Load 324
326: 46(fvec4) VectorTimesMatrix 323 325
327: 198(ptr) AccessChain 110(output) 128
Store 327 326
328: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 329 329 16 16
330: 46(fvec4) Load 224(pos)
331: 48(fvec3) VectorShuffle 330 330 0 1 2
332: 48(fvec3) FNegate 331
333: 163(ptr) AccessChain 110(output) 145
Store 333 332
334: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 335 335 16 16
338: 336(ptr) AccessChain 304 128 129
339: 46(fvec4) Load 338
340: 48(fvec3) VectorShuffle 339 339 0 1 2
341: 163(ptr) AccessChain 110(output) 145
342: 48(fvec3) Load 341
343: 48(fvec3) FAdd 340 342
344: 48(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 343
345: 163(ptr) AccessChain 110(output) 306
Store 345 344
346: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 347 347 16 16
349: 46(fvec4) Load 224(pos)
350: 48(fvec3) VectorShuffle 349 349 0 1 2
351: 163(ptr) AccessChain 110(output) 348
Store 351 350
352: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 353 353 16 16
355: 46(fvec4) Load 224(pos)
356: 319(ptr) AccessChain 304 128 131
357: 267 Load 356
358: 46(fvec4) VectorTimesMatrix 355 357
359: 48(fvec3) VectorShuffle 358 358 0 1 2
360: 163(ptr) AccessChain 110(output) 354
Store 360 359
361: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 362 362 16 16
363:66(DSOutput) Load 110(output)
ReturnValue 363
FunctionEnd