blob: 61e81d5380085c3a1d92354c7a59ef88ec256ea0 [file] [edit]
spv.debuginfo.interface_bool.glsl.comp
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 172
Capability Shader
Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint GLCompute 14 "main" 83
ExecutionMode 14 LocalSize 32 1 1
2: String "spv.debuginfo.interface_bool.glsl.comp"
8: String "uint"
16: String "main"
19: String "#version 450
layout (local_size_x = 32, local_size_y = 1) in;
uniform UBO
{
bool b;
bvec4 bv;
bool[4] ba;
};
buffer SSBO {
bool b;
bvec4 bv;
bool[4] ba;
} ssbo;
void main()
{
if (gl_GlobalInvocationID.x == 0 && gl_GlobalInvocationID.y == 0) {
ssbo.b = b;
ssbo.bv = bv;
for (int i = 0; i < 4; ++i) {
ssbo.ba[i] = ba[i];
}
}
}
"
26: String "bool"
35: String "int"
42: String "b"
45: String "bv"
48: String "ba"
52: String "UBO"
58: String ""
69: String "SSBO"
75: String "ssbo"
85: String "gl_GlobalInvocationID"
135: String "i"
171: String "gl_WorkGroupSize"
Name 14 "main"
Name 40 "UBO"
MemberName 40(UBO) 0 "b"
MemberName 40(UBO) 1 "bv"
MemberName 40(UBO) 2 "ba"
Name 56 ""
Name 61 "SSBO"
MemberName 61(SSBO) 0 "b"
MemberName 61(SSBO) 1 "bv"
MemberName 61(SSBO) 2 "ba"
Name 73 "ssbo"
Name 83 "gl_GlobalInvocationID"
Name 133 "i"
Decorate 32 ArrayStride 16
Decorate 40(UBO) Block
MemberDecorate 40(UBO) 0 Offset 0
MemberDecorate 40(UBO) 1 Offset 16
MemberDecorate 40(UBO) 2 Offset 32
Decorate 56 Binding 0
Decorate 56 DescriptorSet 0
Decorate 59 ArrayStride 4
Decorate 61(SSBO) BufferBlock
MemberDecorate 61(SSBO) 0 Offset 0
MemberDecorate 61(SSBO) 1 Offset 16
MemberDecorate 61(SSBO) 2 Offset 32
Decorate 73(ssbo) Binding 1
Decorate 73(ssbo) DescriptorSet 0
Decorate 83(gl_GlobalInvocationID) BuiltIn GlobalInvocationId
Decorate 169 BuiltIn WorkgroupSize
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 18
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: TypeBool
27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 24 12
28: TypeVector 7(int) 4
29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 23
30: TypeVector 25(bool) 4
31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23
32: TypeArray 7(int) 23
33: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 9 23
34: TypeInt 32 1
36: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 35 10 23 12
37: 34(int) Constant 4
38: TypeArray 25(bool) 37
39: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 27 37
40(UBO): TypeStruct 7(int) 28(ivec4) 32
43: 7(int) Constant 7
41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 27 18 43 43 12 12 13
46: 7(int) Constant 8
44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 45 31 18 46 46 12 12 13
49: 7(int) Constant 9
50: 7(int) Constant 10
47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 48 39 18 49 50 12 12 13
53: 7(int) Constant 5
51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 52 22 18 53 12 21 52 12 13 41 44 47
54: TypePointer Uniform 40(UBO)
55: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 51 24 12
56: 54(ptr) Variable Uniform
57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 58 51 18 53 12 21 58 56 46
59: TypeArray 7(int) 23
60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 9 23
61(SSBO): TypeStruct 7(int) 28(ivec4) 59
63: 7(int) Constant 13
62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 27 18 63 43 12 12 13
65: 7(int) Constant 14
64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 45 31 18 65 46 12 12 13
67: 7(int) Constant 15
66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 48 39 18 67 50 12 12 13
70: 7(int) Constant 12
68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 69 22 18 70 12 21 69 12 13 62 64 66
71: TypePointer Uniform 61(SSBO)
72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 68 24 12
73(ssbo): 71(ptr) Variable Uniform
74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 75 68 18 70 12 21 75 73(ssbo) 46
79: TypeVector 7(int) 3
80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 13
81: TypePointer Input 79(ivec3)
82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 80 22 12
83(gl_GlobalInvocationID): 81(ptr) Variable Input
86: 7(int) Constant 20
84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 85 80 18 86 12 21 85 83(gl_GlobalInvocationID) 46
87: TypePointer Input 7(int)
88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 22 12
106: 7(int) Constant 21
105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 106 50 17
107: 34(int) Constant 0
108: TypePointer Uniform 7(int)
109: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 24 12
117: 34(int) Constant 1
118: TypePointer Uniform 28(ivec4)
119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 24 12
122: 7(int) Constant 22
124: 28(ivec4) ConstantComposite 12 12 12 12
126: 28(ivec4) ConstantComposite 22 22 22 22
130: 7(int) Constant 23
129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 130 13 105
131: TypePointer Function 34(int)
132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 36 43 12
134: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 135 36 18 130 12 129 23
137: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
151: 34(int) Constant 2
155: 7(int) Constant 24
168: 7(int) Constant 27
169: 79(ivec3) ConstantComposite 10 22 22
170: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 171 80 18 168 12 21 171 169 46
14(main): 4 Function None 5
15: Label
133(i): 131(ptr) Variable Function
77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12
76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 86 86 12 12
89: 87(ptr) AccessChain 83(gl_GlobalInvocationID) 12
91: 7(int) Load 89
92: 25(bool) IEqual 91 12
SelectionMerge 94 None
BranchConditional 92 93 94
93: Label
96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 86 86 12 12
95: 87(ptr) AccessChain 83(gl_GlobalInvocationID) 22
98: 7(int) Load 95
99: 25(bool) IEqual 98 12
Branch 94
94: Label
100: 25(bool) Phi 92 15 99 93
103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 86 86 12 12
SelectionMerge 102 None
BranchConditional 100 101 102
101: Label
111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 105
112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 106 106 12 12
110: 108(ptr) AccessChain 56 107
113: 7(int) Load 110
114: 25(bool) INotEqual 113 12
115: 7(int) Select 114 22 12
116: 108(ptr) AccessChain 73(ssbo) 107
Store 116 115
121: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 122 122 12 12
120: 118(ptr) AccessChain 56 117
123: 28(ivec4) Load 120
125: 30(bvec4) INotEqual 123 124
127: 28(ivec4) Select 125 126 124
128: 118(ptr) AccessChain 73(ssbo) 117
Store 128 127
138: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
136: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 134 133(i) 137
Store 133(i) 107
Branch 140
140: Label
144: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
LoopMerge 142 143 None
Branch 146
146: Label
148: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
149: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
147: 34(int) Load 133(i)
150: 25(bool) SLessThan 147 37
BranchConditional 150 141 142
141: Label
153: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 155 155 12 12
152: 34(int) Load 133(i)
156: 34(int) Load 133(i)
157: 108(ptr) AccessChain 56 151 156
158: 7(int) Load 157
159: 25(bool) INotEqual 158 12
160: 7(int) Select 159 22 12
161: 108(ptr) AccessChain 73(ssbo) 151 152
Store 161 160
Branch 143
143: Label
163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
162: 34(int) Load 133(i)
165: 34(int) IAdd 162 117
Store 133(i) 165
Branch 140
142: Label
Branch 102
102: Label
166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 168 168 12 12
Return
FunctionEnd