glslang-zig/Test/baseResults/spv.debuginfo.glsl.tesc.out
Chao Chen 979423d84f Add correct line number to OpDebugFunction and OpDebugScope for function:
1. Pull OpDebugFunction, OpDebugScope and OpDebugVariable for params out
   of makeFunctionEntry.
2. Put above in a separate function called setupDebugFunctionEntry,
   which also accept line number and set it correctly in builder.
3. Call setupDebugFunctionEntry in makeFunction. Also special case
   handle entry function since it's created ealier elsewhere.
2023-10-24 13:37:19 -07:00

716 lines
45 KiB
Text

spv.debuginfo.glsl.tesc
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 545
Capability Tessellation
Extension "SPV_KHR_non_semantic_info"
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint TessellationControl 14 "main" 252 256 282 373 386 501 515 522 536
ExecutionMode 14 OutputVertices 4
1: String ""
8: String "uint"
17: String "float"
29: String "screenSpaceTessFactor"
32: String "// OpModuleProcessed auto-map-locations
// OpModuleProcessed auto-map-bindings
// OpModuleProcessed client vulkan100
// OpModuleProcessed target-env vulkan1.0
// OpModuleProcessed keep-uncalled
// OpModuleProcessed entry-point main
#line 1
"
40: String "p0"
44: String "p1"
47: String "bool"
53: String "frustumCheck"
56: String "main"
65: String "midPoint"
77: String "radius"
88: String "v0"
99: String "modelview"
104: String "lightPos"
107: String "frustumPlanes"
109: String "tessellatedEdgeSize"
114: String "viewportDim"
118: String "UBO"
122: String "ubo"
124: String "int"
136: String "clip0"
157: String "clip1"
232: String "pos"
238: String "gl_Position"
241: String "gl_PointSize"
244: String "gl_CullDistance"
248: String "gl_PerVertex"
254: String "gl_in"
258: String "gl_InvocationID"
267: String "type.2d.image"
268: String "@type.2d.image"
272: String "type.sampled.image"
273: String "@type.sampled.image"
277: String "samplerHeight"
284: String "inUV"
303: String "i"
375: String "gl_TessLevelInner"
388: String "gl_TessLevelOuter"
503: String "gl_out"
517: String "outNormal"
524: String "inNormal"
538: String "outUV"
Name 14 "main"
Name 27 "screenSpaceTessFactor(vf4;vf4;"
Name 25 "p0"
Name 26 "p1"
Name 51 "frustumCheck("
Name 63 "midPoint"
Name 75 "radius"
Name 86 "v0"
Name 97 "UBO"
MemberName 97(UBO) 0 "projection"
MemberName 97(UBO) 1 "modelview"
MemberName 97(UBO) 2 "lightPos"
MemberName 97(UBO) 3 "frustumPlanes"
MemberName 97(UBO) 4 "displacementFactor"
MemberName 97(UBO) 5 "tessellationFactor"
MemberName 97(UBO) 6 "viewportDim"
MemberName 97(UBO) 7 "tessellatedEdgeSize"
Name 120 "ubo"
Name 134 "clip0"
Name 155 "clip1"
Name 230 "pos"
Name 236 "gl_PerVertex"
MemberName 236(gl_PerVertex) 0 "gl_Position"
MemberName 236(gl_PerVertex) 1 "gl_PointSize"
MemberName 236(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 236(gl_PerVertex) 3 "gl_CullDistance"
Name 252 "gl_in"
Name 256 "gl_InvocationID"
Name 275 "samplerHeight"
Name 282 "inUV"
Name 301 "i"
Name 373 "gl_TessLevelInner"
Name 386 "gl_TessLevelOuter"
Name 413 "param"
Name 416 "param"
Name 423 "param"
Name 426 "param"
Name 433 "param"
Name 436 "param"
Name 443 "param"
Name 446 "param"
Name 490 "gl_PerVertex"
MemberName 490(gl_PerVertex) 0 "gl_Position"
MemberName 490(gl_PerVertex) 1 "gl_PointSize"
MemberName 490(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 490(gl_PerVertex) 3 "gl_CullDistance"
Name 501 "gl_out"
Name 515 "outNormal"
Name 522 "inNormal"
Name 536 "outUV"
Decorate 93 ArrayStride 16
MemberDecorate 97(UBO) 0 ColMajor
MemberDecorate 97(UBO) 0 Offset 0
MemberDecorate 97(UBO) 0 MatrixStride 16
MemberDecorate 97(UBO) 1 ColMajor
MemberDecorate 97(UBO) 1 Offset 64
MemberDecorate 97(UBO) 1 MatrixStride 16
MemberDecorate 97(UBO) 2 Offset 128
MemberDecorate 97(UBO) 3 Offset 144
MemberDecorate 97(UBO) 4 Offset 240
MemberDecorate 97(UBO) 5 Offset 244
MemberDecorate 97(UBO) 6 Offset 248
MemberDecorate 97(UBO) 7 Offset 256
Decorate 97(UBO) Block
Decorate 120(ubo) DescriptorSet 0
Decorate 120(ubo) Binding 0
MemberDecorate 236(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 236(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 236(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 236(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 236(gl_PerVertex) Block
Decorate 256(gl_InvocationID) BuiltIn InvocationId
Decorate 275(samplerHeight) DescriptorSet 0
Decorate 275(samplerHeight) Binding 1
Decorate 282(inUV) Location 1
Decorate 373(gl_TessLevelInner) Patch
Decorate 373(gl_TessLevelInner) BuiltIn TessLevelInner
Decorate 386(gl_TessLevelOuter) Patch
Decorate 386(gl_TessLevelOuter) BuiltIn TessLevelOuter
MemberDecorate 490(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 490(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 490(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 490(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 490(gl_PerVertex) Block
Decorate 515(outNormal) Location 0
Decorate 522(inNormal) Location 0
Decorate 536(outUV) Location 1
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
10: 7(int) Constant 32
11: 7(int) Constant 6
12: 7(int) Constant 0
9: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
13: 7(int) Constant 3
6: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
16: TypeFloat 32
18: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 17 10 13 12
19: TypeVector 16(float) 4
20: 7(int) Constant 4
21: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 20
22: TypePointer Function 19(fvec4)
23: TypeFunction 16(float) 22(ptr) 22(ptr)
24: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 18 21 21
31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 32
33: 7(int) Constant 51
35: 7(int) Constant 1
36: 7(int) Constant 2
34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 35 20 31 36
30: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 29 24 31 33 12 34 29 13 33
39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 40 21 31 33 12 30 20 35
42: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 44 21 31 33 12 30 20 36
46: TypeBool
48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 36 12
49: TypeFunction 46(bool)
50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 48
55: 7(int) Constant 81
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 53 50 31 55 12 34 53 13 55
58: 7(int) Constant 98
57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 56 6 31 58 12 34 56 13 58
62: 7(int) Constant 54
64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 65 21 31 62 12 30 20
67: 16(float) Constant 1056964608
73: 7(int) Constant 56
74: TypePointer Function 16(float)
76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 77 18 31 73 12 30 20
82: 16(float) Constant 1073741824
85: 7(int) Constant 59
87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 21 31 85 12 30 20
90: TypeMatrix 19(fvec4) 4
92: 46(bool) ConstantTrue
91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 21 20 92
93: TypeArray 19(fvec4) 11
94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 21 11
95: TypeVector 16(float) 2
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 36
97(UBO): TypeStruct 90 90 19(fvec4) 93 16(float) 16(float) 95(fvec2) 16(float)
100: 7(int) Constant 30
101: 7(int) Constant 7
98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 99 91 31 100 101 12 12 13
102: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 99 91 31 100 101 12 12 13
105: 7(int) Constant 31
103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 104 21 31 105 101 12 12 13
106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 107 94 31 10 101 12 12 13
110: 7(int) Constant 36
111: 7(int) Constant 8
108: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 109 18 31 110 111 12 12 13
112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 109 18 31 110 111 12 12 13
115: 7(int) Constant 35
113: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 114 96 31 115 101 12 12 13
116: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 109 18 31 110 111 12 12 13
117: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 118 35 31 85 12 34 118 12 13 98 102 103 106 108 112 113 116
119: TypePointer Uniform 97(UBO)
120(ubo): 119(ptr) Variable Uniform
121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 122 117 31 85 12 34 122 120(ubo) 111
123: TypeInt 32 1
125: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 124 10 20 12
126: 123(int) Constant 1
127: TypePointer Uniform 90
133: 7(int) Constant 62
135: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 136 21 31 133 12 30 20
138: 123(int) Constant 0
143: TypeVector 16(float) 3
144: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 13
145: 16(float) Constant 0
146: 143(fvec3) ConstantComposite 145 145 145
154: 7(int) Constant 63
156: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 157 21 31 154 12 30 20
170: 7(int) Constant 66
177: 7(int) Constant 67
184: 7(int) Constant 70
185: 123(int) Constant 6
186: TypePointer Uniform 95(fvec2)
197: 7(int) Constant 71
208: 7(int) Constant 76
212: 123(int) Constant 7
213: TypePointer Uniform 16(float)
217: 123(int) Constant 5
221: 16(float) Constant 1065353216
222: 16(float) Constant 1115684864
229: 7(int) Constant 85
231: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 232 21 31 229 12 54 20
234: TypeArray 16(float) 35
235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 18 35
236(gl_PerVertex): TypeStruct 19(fvec4) 16(float) 234 234
239: 7(int) Constant 1756
237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 238 21 31 35 239 12 12 13
242: 7(int) Constant 1774
240: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 241 18 31 35 242 12 12 13
245: 7(int) Constant 1817
243: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 244 235 31 35 245 12 12 13
246: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 244 235 31 35 245 12 12 13
247: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 248 35 31 229 12 34 248 12 13 237 240 243 246
249: TypeArray 236(gl_PerVertex) 10
250: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 247 10
251: TypePointer Input 249
252(gl_in): 251(ptr) Variable Input
253: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 254 250 31 229 12 34 254 252(gl_in) 111
255: TypePointer Input 123(int)
256(gl_InvocationID): 255(ptr) Variable Input
257: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 258 125 31 229 12 34 258 256(gl_InvocationID) 111
260: TypePointer Input 19(fvec4)
264: 7(int) Constant 86
265: TypeImage 16(float) 2D sampled format:Unknown
269: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone)
266: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 267 12 31 264 12 34 268 269 13
270: TypeSampledImage 265
271: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 272 12 31 264 12 34 273 269 13
274: TypePointer UniformConstant 270
275(samplerHeight): 274(ptr) Variable UniformConstant
276: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 277 271 31 264 12 34 277 275(samplerHeight) 111
279: TypeArray 95(fvec2) 10
280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 96 10
281: TypePointer Input 279
282(inUV): 281(ptr) Variable Input
283: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 284 280 31 264 12 34 284 282(inUV) 111
285: TypePointer Input 95(fvec2)
290: 123(int) Constant 4
299: 7(int) Constant 89
300: TypePointer Function 123(int)
302: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 303 125 31 299 12 54 20
315: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 36 12
319: 7(int) Constant 90
321: 123(int) Constant 3
323: TypePointer Uniform 19(fvec4)
327: 16(float) Constant 1090519040
329: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 36 12
333: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 36 12
334: 46(bool) ConstantFalse
337: 7(int) Constant 92
343: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 36 12
346: 7(int) Constant 95
352: 7(int) Constant 100
354: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 36 12
360: 7(int) Constant 102
362: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 36 12
363: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 36 12
369: 7(int) Constant 104
370: TypeArray 16(float) 36
371: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 18 36
372: TypePointer Output 370
373(gl_TessLevelInner): 372(ptr) Variable Output
374: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 375 371 31 369 12 34 375 373(gl_TessLevelInner) 111
376: TypePointer Output 16(float)
379: 7(int) Constant 105
382: 7(int) Constant 106
383: TypeArray 16(float) 20
384: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 18 20
385: TypePointer Output 383
386(gl_TessLevelOuter): 385(ptr) Variable Output
387: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 388 384 31 382 12 34 388 386(gl_TessLevelOuter) 111
391: 7(int) Constant 107
394: 7(int) Constant 108
395: 123(int) Constant 2
398: 7(int) Constant 109
403: 7(int) Constant 113
406: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 47 10 36 12
412: 7(int) Constant 115
422: 7(int) Constant 116
432: 7(int) Constant 117
442: 7(int) Constant 118
452: 7(int) Constant 119
460: 7(int) Constant 120
470: 7(int) Constant 126
473: 7(int) Constant 127
476: 7(int) Constant 128
479: 7(int) Constant 129
482: 7(int) Constant 130
485: 7(int) Constant 131
489: 7(int) Constant 137
490(gl_PerVertex): TypeStruct 19(fvec4) 16(float) 234 234
492: 7(int) Constant 110
491: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 238 21 31 35 492 12 12 13
493: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 241 18 31 35 476 12 12 13
495: 7(int) Constant 171
494: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 244 235 31 35 495 12 12 13
496: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 244 235 31 35 495 12 12 13
497: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 248 35 31 489 12 34 248 12 13 491 493 494 496
498: TypeArray 490(gl_PerVertex) 20
499: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 497 20
500: TypePointer Output 498
501(gl_out): 500(ptr) Variable Output
502: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 503 499 31 489 12 34 503 501(gl_out) 111
508: TypePointer Output 19(fvec4)
511: 7(int) Constant 138
512: TypeArray 143(fvec3) 20
513: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 144 20
514: TypePointer Output 512
515(outNormal): 514(ptr) Variable Output
516: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 517 513 31 511 12 34 517 515(outNormal) 111
519: TypeArray 143(fvec3) 10
520: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 144 10
521: TypePointer Input 519
522(inNormal): 521(ptr) Variable Input
523: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 524 520 31 511 12 34 524 522(inNormal) 111
526: TypePointer Input 143(fvec3)
529: TypePointer Output 143(fvec3)
532: 7(int) Constant 139
533: TypeArray 95(fvec2) 20
534: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 96 20
535: TypePointer Output 533
536(outUV): 535(ptr) Variable Output
537: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 538 534 31 532 12 34 538 536(outUV) 111
543: TypePointer Output 95(fvec2)
Line 1 98 11
14(main): 4 Function None 5
15: Label
413(param): 22(ptr) Variable Function
416(param): 22(ptr) Variable Function
423(param): 22(ptr) Variable Function
426(param): 22(ptr) Variable Function
433(param): 22(ptr) Variable Function
436(param): 22(ptr) Variable Function
443(param): 22(ptr) Variable Function
446(param): 22(ptr) Variable Function
349: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 57 14(main)
350: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57
351: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 352 352 12 12
353: 123(int) Load 256(gl_InvocationID)
355: 46(bool) IEqual 353 138
SelectionMerge 357 None
BranchConditional 355 356 357
356: Label
358: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57
359: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 360 360 12 12
361: 46(bool) FunctionCall 51(frustumCheck()
364: 46(bool) LogicalNot 361
SelectionMerge 366 None
BranchConditional 364 365 400
365: Label
367: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57
368: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 369 369 12 12
377: 376(ptr) AccessChain 373(gl_TessLevelInner) 138
Store 377 145
378: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 379 379 12 12
380: 376(ptr) AccessChain 373(gl_TessLevelInner) 126
Store 380 145
381: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 382 382 12 12
389: 376(ptr) AccessChain 386(gl_TessLevelOuter) 138
Store 389 145
390: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 391 391 12 12
392: 376(ptr) AccessChain 386(gl_TessLevelOuter) 126
Store 392 145
393: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 394 394 12 12
396: 376(ptr) AccessChain 386(gl_TessLevelOuter) 395
Store 396 145
397: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 398 398 12 12
399: 376(ptr) AccessChain 386(gl_TessLevelOuter) 321
Store 399 145
Branch 366
400: Label
401: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57
402: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 403 403 12 12
404: 213(ptr) AccessChain 120(ubo) 217
405: 16(float) Load 404
407: 46(bool) FOrdGreaterThan 405 145
SelectionMerge 409 None
BranchConditional 407 408 467
408: Label
410: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57
411: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 412 412 12 12
414: 260(ptr) AccessChain 252(gl_in) 321 138
415: 19(fvec4) Load 414
Store 413(param) 415
417: 260(ptr) AccessChain 252(gl_in) 138 138
418: 19(fvec4) Load 417
Store 416(param) 418
419: 16(float) FunctionCall 27(screenSpaceTessFactor(vf4;vf4;) 413(param) 416(param)
420: 376(ptr) AccessChain 386(gl_TessLevelOuter) 138
Store 420 419
421: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 422 422 12 12
424: 260(ptr) AccessChain 252(gl_in) 138 138
425: 19(fvec4) Load 424
Store 423(param) 425
427: 260(ptr) AccessChain 252(gl_in) 126 138
428: 19(fvec4) Load 427
Store 426(param) 428
429: 16(float) FunctionCall 27(screenSpaceTessFactor(vf4;vf4;) 423(param) 426(param)
430: 376(ptr) AccessChain 386(gl_TessLevelOuter) 126
Store 430 429
431: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 432 432 12 12
434: 260(ptr) AccessChain 252(gl_in) 126 138
435: 19(fvec4) Load 434
Store 433(param) 435
437: 260(ptr) AccessChain 252(gl_in) 395 138
438: 19(fvec4) Load 437
Store 436(param) 438
439: 16(float) FunctionCall 27(screenSpaceTessFactor(vf4;vf4;) 433(param) 436(param)
440: 376(ptr) AccessChain 386(gl_TessLevelOuter) 395
Store 440 439
441: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 442 442 12 12
444: 260(ptr) AccessChain 252(gl_in) 395 138
445: 19(fvec4) Load 444
Store 443(param) 445
447: 260(ptr) AccessChain 252(gl_in) 321 138
448: 19(fvec4) Load 447
Store 446(param) 448
449: 16(float) FunctionCall 27(screenSpaceTessFactor(vf4;vf4;) 443(param) 446(param)
450: 376(ptr) AccessChain 386(gl_TessLevelOuter) 321
Store 450 449
451: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 452 452 12 12
453: 376(ptr) AccessChain 386(gl_TessLevelOuter) 138
454: 16(float) Load 453
455: 376(ptr) AccessChain 386(gl_TessLevelOuter) 321
456: 16(float) Load 455
457: 16(float) ExtInst 3(GLSL.std.450) 46(FMix) 454 456 67
458: 376(ptr) AccessChain 373(gl_TessLevelInner) 138
Store 458 457
459: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 460 460 12 12
461: 376(ptr) AccessChain 386(gl_TessLevelOuter) 395
462: 16(float) Load 461
463: 376(ptr) AccessChain 386(gl_TessLevelOuter) 126
464: 16(float) Load 463
465: 16(float) ExtInst 3(GLSL.std.450) 46(FMix) 462 464 67
466: 376(ptr) AccessChain 373(gl_TessLevelInner) 126
Store 466 465
Branch 409
467: Label
468: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57
469: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 470 470 12 12
471: 376(ptr) AccessChain 373(gl_TessLevelInner) 138
Store 471 221
472: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 473 473 12 12
474: 376(ptr) AccessChain 373(gl_TessLevelInner) 126
Store 474 221
475: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 476 476 12 12
477: 376(ptr) AccessChain 386(gl_TessLevelOuter) 138
Store 477 221
478: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 479 479 12 12
480: 376(ptr) AccessChain 386(gl_TessLevelOuter) 126
Store 480 221
481: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 482 482 12 12
483: 376(ptr) AccessChain 386(gl_TessLevelOuter) 395
Store 483 221
484: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 485 485 12 12
486: 376(ptr) AccessChain 386(gl_TessLevelOuter) 321
Store 486 221
Branch 409
409: Label
Branch 366
366: Label
Branch 357
357: Label
487: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 57
488: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 489 489 12 12
504: 123(int) Load 256(gl_InvocationID)
505: 123(int) Load 256(gl_InvocationID)
506: 260(ptr) AccessChain 252(gl_in) 505 138
507: 19(fvec4) Load 506
509: 508(ptr) AccessChain 501(gl_out) 504 138
Store 509 507
510: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 511 511 12 12
518: 123(int) Load 256(gl_InvocationID)
525: 123(int) Load 256(gl_InvocationID)
527: 526(ptr) AccessChain 522(inNormal) 525
528: 143(fvec3) Load 527
530: 529(ptr) AccessChain 515(outNormal) 518
Store 530 528
531: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 532 532 12 12
539: 123(int) Load 256(gl_InvocationID)
540: 123(int) Load 256(gl_InvocationID)
541: 285(ptr) AccessChain 282(inUV) 540
542: 95(fvec2) Load 541
544: 543(ptr) AccessChain 536(outUV) 539
Store 544 542
Return
FunctionEnd
Line 1 51 45
27(screenSpaceTessFactor(vf4;vf4;): 16(float) Function None 23
25(p0): 22(ptr) FunctionParameter
26(p1): 22(ptr) FunctionParameter
28: Label
63(midPoint): 22(ptr) Variable Function
75(radius): 74(ptr) Variable Function
86(v0): 22(ptr) Variable Function
134(clip0): 22(ptr) Variable Function
155(clip1): 22(ptr) Variable Function
37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 30
38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 33 33 12 12
41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 39 25(p0) 42
45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 43 26(p1) 42
59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 30 27(screenSpaceTessFactor(vf4;vf4;)
60: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 30
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 62 62 12 12
66: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 64 63(midPoint) 42
68: 19(fvec4) Load 25(p0)
69: 19(fvec4) Load 26(p1)
70: 19(fvec4) FAdd 68 69
71: 19(fvec4) VectorTimesScalar 70 67
Store 63(midPoint) 71
72: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 73 73 12 12
78: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 76 75(radius) 42
79: 19(fvec4) Load 25(p0)
80: 19(fvec4) Load 26(p1)
81: 16(float) ExtInst 3(GLSL.std.450) 67(Distance) 79 80
83: 16(float) FDiv 81 82
Store 75(radius) 83
84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 85 85 12 12
89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 87 86(v0) 42
128: 127(ptr) AccessChain 120(ubo) 126
129: 90 Load 128
130: 19(fvec4) Load 63(midPoint)
131: 19(fvec4) MatrixTimesVector 129 130
Store 86(v0) 131
132: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 133 133 12 12
137: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 135 134(clip0) 42
139: 127(ptr) AccessChain 120(ubo) 138
140: 90 Load 139
141: 19(fvec4) Load 86(v0)
142: 16(float) Load 75(radius)
147: 16(float) CompositeExtract 146 0
148: 16(float) CompositeExtract 146 1
149: 16(float) CompositeExtract 146 2
150: 19(fvec4) CompositeConstruct 142 147 148 149
151: 19(fvec4) FSub 141 150
152: 19(fvec4) MatrixTimesVector 140 151
Store 134(clip0) 152
153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 154 154 12 12
158: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 156 155(clip1) 42
159: 127(ptr) AccessChain 120(ubo) 138
160: 90 Load 159
161: 19(fvec4) Load 86(v0)
162: 16(float) Load 75(radius)
163: 16(float) CompositeExtract 146 0
164: 16(float) CompositeExtract 146 1
165: 16(float) CompositeExtract 146 2
166: 19(fvec4) CompositeConstruct 162 163 164 165
167: 19(fvec4) FAdd 161 166
168: 19(fvec4) MatrixTimesVector 160 167
Store 155(clip1) 168
169: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 170 170 12 12
171: 74(ptr) AccessChain 134(clip0) 13
172: 16(float) Load 171
173: 19(fvec4) Load 134(clip0)
174: 19(fvec4) CompositeConstruct 172 172 172 172
175: 19(fvec4) FDiv 173 174
Store 134(clip0) 175
176: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 177 177 12 12
178: 74(ptr) AccessChain 155(clip1) 13
179: 16(float) Load 178
180: 19(fvec4) Load 155(clip1)
181: 19(fvec4) CompositeConstruct 179 179 179 179
182: 19(fvec4) FDiv 180 181
Store 155(clip1) 182
183: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 184 184 12 12
187: 186(ptr) AccessChain 120(ubo) 185
188: 95(fvec2) Load 187
189: 19(fvec4) Load 134(clip0)
190: 95(fvec2) VectorShuffle 189 189 0 1
191: 95(fvec2) FMul 190 188
192: 74(ptr) AccessChain 134(clip0) 12
193: 16(float) CompositeExtract 191 0
Store 192 193
194: 74(ptr) AccessChain 134(clip0) 35
195: 16(float) CompositeExtract 191 1
Store 194 195
196: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 197 197 12 12
198: 186(ptr) AccessChain 120(ubo) 185
199: 95(fvec2) Load 198
200: 19(fvec4) Load 155(clip1)
201: 95(fvec2) VectorShuffle 200 200 0 1
202: 95(fvec2) FMul 201 199
203: 74(ptr) AccessChain 155(clip1) 12
204: 16(float) CompositeExtract 202 0
Store 203 204
205: 74(ptr) AccessChain 155(clip1) 35
206: 16(float) CompositeExtract 202 1
Store 205 206
207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 208 208 12 12
209: 19(fvec4) Load 134(clip0)
210: 19(fvec4) Load 155(clip1)
211: 16(float) ExtInst 3(GLSL.std.450) 67(Distance) 209 210
214: 213(ptr) AccessChain 120(ubo) 212
215: 16(float) Load 214
216: 16(float) FDiv 211 215
218: 213(ptr) AccessChain 120(ubo) 217
219: 16(float) Load 218
220: 16(float) FMul 216 219
223: 16(float) ExtInst 3(GLSL.std.450) 43(FClamp) 220 221 222
ReturnValue 223
FunctionEnd
Line 1 81 19
51(frustumCheck(): 46(bool) Function None 49
52: Label
230(pos): 22(ptr) Variable Function
301(i): 300(ptr) Variable Function
226: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 54 51(frustumCheck()
227: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54
228: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 229 229 12 12
233: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 231 230(pos) 42
259: 123(int) Load 256(gl_InvocationID)
261: 260(ptr) AccessChain 252(gl_in) 259 138
262: 19(fvec4) Load 261
Store 230(pos) 262
263: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 264 264 12 12
278: 270 Load 275(samplerHeight)
286: 285(ptr) AccessChain 282(inUV) 138
287: 95(fvec2) Load 286
288: 19(fvec4) ImageSampleExplicitLod 278 287 Lod 145
289: 16(float) CompositeExtract 288 0
291: 213(ptr) AccessChain 120(ubo) 290
292: 16(float) Load 291
293: 16(float) FMul 289 292
294: 74(ptr) AccessChain 230(pos) 35
295: 16(float) Load 294
296: 16(float) FSub 295 293
297: 74(ptr) AccessChain 230(pos) 35
Store 297 296
298: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 299 299 12 12
304: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 302 301(i) 42
Store 301(i) 138
Branch 305
305: Label
309: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54
310: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 299 299 12 12
LoopMerge 307 308 None
Branch 311
311: Label
312: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54
313: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 299 299 12 12
314: 123(int) Load 301(i)
316: 46(bool) SLessThan 314 185
BranchConditional 316 306 307
306: Label
317: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54
318: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 319 319 12 12
320: 19(fvec4) Load 230(pos)
322: 123(int) Load 301(i)
324: 323(ptr) AccessChain 120(ubo) 321 322
325: 19(fvec4) Load 324
326: 16(float) Dot 320 325
328: 16(float) FAdd 326 327
330: 46(bool) FOrdLessThan 328 145
SelectionMerge 332 None
BranchConditional 330 331 332
331: Label
335: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54
336: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 337 337 12 12
ReturnValue 334
332: Label
Branch 308
308: Label
339: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54
340: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 299 299 12 12
341: 123(int) Load 301(i)
342: 123(int) IAdd 341 126
Store 301(i) 342
Branch 305
307: Label
344: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 54
345: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 31 346 346 12 12
ReturnValue 92
FunctionEnd