yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

spencer-lunargFix ShaderDebugInfo having invalid line numbers in 1.0e4c40890

main
4.5 KiB80 linesraw
1spv.debuginfo.const_variables.glsl.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 56
5
6                              Capability Shader
7                              Extension  "SPV_KHR_non_semantic_info"
8               1:             ExtInstImport  "NonSemantic.Shader.DebugInfo.100"
9               3:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Fragment 14  "main" 38
12                              ExecutionMode 14 OriginUpperLeft
13               2:             String  "spv.debuginfo.const_variables.glsl.frag"
14               8:             String  "uint"
15              16:             String  "main"
16              19:             String  "#version 460
17
18const vec4 constGlobal = vec4(1.0, 0.0, 0.0, 1.0);
19
20out vec4 outColor;
21
22void main() {
23    const float constLocal = 3.14;
24    outColor = constGlobal * constLocal;
25}"
26              26:             String  "float"
27              34:             String  "constGlobal"
28              40:             String  "outColor"
29              47:             String  "constLocal"
30                              Name 14  "main"
31                              Name 38  "outColor"
32                              Decorate 38(outColor) Location 0
33               4:             TypeVoid
34               5:             TypeFunction 4
35               7:             TypeInt 32 0
36              10:      7(int) Constant 32
37              11:      7(int) Constant 6
38              12:      7(int) Constant 0
39               9:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
40              13:      7(int) Constant 3
41               6:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
42              18:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19
43              20:      7(int) Constant 7
44              22:      7(int) Constant 1
45              23:      7(int) Constant 4
46              24:      7(int) Constant 2
47              21:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24
48              17:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20
49              25:             TypeFloat 32
50              27:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 13 12
51              28:             TypeVector 25(float) 4
52              29:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23
53              30:   25(float) Constant 1065353216
54              31:   25(float) Constant 0
55              32:   28(fvec4) ConstantComposite 30 31 31 30
56              35:      7(int) Constant 8
57              33:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 34 29 18 13 12 21 34 32 35
58              36:             TypePointer Output 28(fvec4)
59              37:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 13 12
60    38(outColor):     36(ptr) Variable Output
61              41:      7(int) Constant 5
62              39:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 40 29 18 41 12 21 40 38(outColor) 35
63              45:   25(float) Constant 1078523331
64              46:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 27 18 35 12 17 23
65              49:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
66              51:   28(fvec4) ConstantComposite 45 31 31 45
67              53:      7(int) Constant 9
68              55:      7(int) Constant 10
69        14(main):           4 Function None 5
70              15:             Label
71              43:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
72              44:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12
73              42:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
74              50:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 35 35 12 12
75              48:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 46 45 49
76              52:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 53 53 12 12
77                              Store 38(outColor) 51
78              54:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 55 55 12 12
79                              Return
80                              FunctionEnd