blob: 6bc1c0b9ec08e04ef7da57023690b82686ef0e05 [file] [edit]
spv.debuginfo.declaration.glsl.frag
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 137
Capability Shader
Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 14 "main" 46
ExecutionMode 14 OriginUpperLeft
2: String "spv.debuginfo.declaration.glsl.frag"
8: String "uint"
16: String "main"
19: String "#version 460
uniform UBO {
int x;
};
out vec4 outColor;
void main() {
int x = 41;
{
int x = 42;
while (bool test = x < 45) {
x += 1;
}
for (int x = 50; bool test = x < 53; ) {
x += 1;
}
outColor = vec4(x);
}
}"
26: String "int"
30: String "x"
32: String "UBO"
37: String ""
40: String "float"
48: String "outColor"
81: String "bool"
87: String "test"
Name 14 "main"
Name 28 "UBO"
MemberName 28(UBO) 0 "x"
Name 35 ""
Name 46 "outColor"
Name 55 "x"
Name 65 "x"
Name 85 "test"
Name 102 "x"
Name 115 "test"
Decorate 28(UBO) Block
MemberDecorate 28(UBO) 0 Offset 0
Decorate 35 Binding 0
Decorate 35 DescriptorSet 0
Decorate 46(outColor) Location 0
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 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
13: 7(int) Constant 3
6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19
20: 7(int) Constant 9
22: 7(int) Constant 1
23: 7(int) Constant 4
24: 7(int) Constant 2
21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24
17: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20
25: TypeInt 32 1
27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 23 12
28(UBO): TypeStruct 25(int)
29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 30 27 18 23 20 12 12 13
31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 32 22 18 13 12 21 32 12 13 29
33: TypePointer Uniform 28(UBO)
34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 24 12
35: 33(ptr) Variable Uniform
38: 7(int) Constant 8
36: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 37 31 18 13 12 21 37 35 38
39: TypeFloat 32
41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 40 10 13 12
42: TypeVector 39(float) 4
43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 41 23
44: TypePointer Output 42(fvec4)
45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 43 13 12
46(outColor): 44(ptr) Variable Output
49: 7(int) Constant 7
47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 48 43 18 49 12 21 48 46(outColor) 38
53: TypePointer Function 25(int)
54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 49 12
57: 7(int) Constant 10
56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 30 27 18 57 12 17 23
59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
61: 25(int) Constant 41
63: 7(int) Constant 12
64: 7(int) Constant 13
62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 63 64 17
66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 30 27 18 63 12 62 23
70: 25(int) Constant 42
72: 7(int) Constant 14
71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 72 20 62
80: TypeBool
82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 81 10 24 12
83: TypePointer Function 80(bool)
84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 82 49 12
86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 82 18 72 12 71 23
92: 25(int) Constant 45
94: 25(int) Constant 1
98: 7(int) Constant 15
101: 7(int) Constant 18
100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 101 20 62
103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 30 27 18 101 12 100 23
107: 25(int) Constant 50
116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 82 18 101 12 100 23
121: 25(int) Constant 53
126: 7(int) Constant 19
131: 7(int) Constant 22
136: 7(int) Constant 24
14(main): 4 Function None 5
15: Label
55(x): 53(ptr) Variable Function
65(x): 53(ptr) Variable Function
85(test): 83(ptr) Variable Function
102(x): 53(ptr) Variable Function
115(test): 83(ptr) Variable Function
51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12
50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 57 57 12 12
58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 56 55(x) 59
Store 55(x) 61
68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62
69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 63 63 12 12
67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 66 65(x) 59
Store 65(x) 70
Branch 73
73: Label
77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 71
78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 72 72 12 12
LoopMerge 75 76 None
Branch 79
79: Label
89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 71
90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 72 72 12 12
88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 85(test) 59
91: 25(int) Load 65(x)
93: 80(bool) SLessThan 91 92
Store 85(test) 93
BranchConditional 93 74 75
74: Label
96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 71
97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 98 98 12 12
95: 25(int) Load 65(x)
99: 25(int) IAdd 95 94
Store 65(x) 99
Branch 76
76: Label
Branch 73
75: Label
105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100
106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 101 101 12 12
104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 103 102(x) 59
Store 102(x) 107
Branch 108
108: Label
112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100
113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 101 101 12 12
LoopMerge 110 111 None
Branch 114
114: Label
118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100
119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 101 101 12 12
117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 116 115(test) 59
120: 25(int) Load 102(x)
122: 80(bool) SLessThan 120 121
Store 115(test) 122
BranchConditional 122 109 110
109: Label
124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100
125: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 126 126 12 12
123: 25(int) Load 102(x)
127: 25(int) IAdd 123 94
Store 102(x) 127
Branch 111
111: Label
Branch 108
110: Label
129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62
130: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 131 131 12 12
128: 25(int) Load 65(x)
132: 39(float) ConvertSToF 128
133: 42(fvec4) CompositeConstruct 132 132 132 132
Store 46(outColor) 133
134: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 136 136 12 12
Return
FunctionEnd