Emit DebugTypePointer when non-semantic debug info is enabled

This commit is contained in:
Sajjad Mirza 2023-12-28 08:00:37 -08:00 committed by GitHub
parent 89824a83b7
commit e17ecb0e80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 9174 additions and 8925 deletions

View file

@ -1,7 +1,7 @@
spv.debuginfo.glsl.geom
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 257
// Id's are bound by 272
Capability Geometry
Capability MultiViewport
@ -9,7 +9,7 @@ spv.debuginfo.glsl.geom
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Geometry 14 "main" 63 95 114 124 127 158 197 206 223 235 241 244
EntryPoint Geometry 14 "main" 66 99 120 131 134 167 209 218 236 250 256 259
ExecutionMode 14 Triangles
ExecutionMode 14 Invocations 2
ExecutionMode 14 OutputTriangleStrip
@ -26,97 +26,97 @@ spv.debuginfo.glsl.geom
#line 1
"
30: String "int"
35: String "i"
51: String "bool"
58: String "float"
65: String "outNormal"
78: String "projection"
82: String "modelview"
85: String "lightPos"
88: String "UBO"
92: String "ubo"
97: String "gl_InvocationID"
116: String "inNormal"
126: String "outColor"
129: String "inColor"
138: String "pos"
144: String "gl_Position"
147: String "gl_PointSize"
150: String "gl_CullDistance"
154: String "gl_PerVertex"
160: String "gl_in"
169: String "worldPos"
181: String "lPos"
199: String "outLightVec"
208: String "outViewVec"
237: String "gl_ViewportIndex"
243: String "gl_PrimitiveID"
246: String "gl_PrimitiveIDIn"
37: String "i"
53: String "bool"
60: String "float"
68: String "outNormal"
81: String "projection"
84: String "modelview"
87: String "lightPos"
90: String "UBO"
95: String "ubo"
101: String "gl_InvocationID"
122: String "inNormal"
133: String "outColor"
136: String "inColor"
146: String "pos"
152: String "gl_Position"
155: String "gl_PointSize"
158: String "gl_CullDistance"
162: String "gl_PerVertex"
169: String "gl_in"
179: String "worldPos"
192: String "lPos"
211: String "outLightVec"
220: String "outViewVec"
252: String "gl_ViewportIndex"
258: String "gl_PrimitiveID"
261: String "gl_PrimitiveIDIn"
SourceExtension "GL_ARB_viewport_array"
Name 14 "main"
Name 33 "i"
Name 63 "outNormal"
Name 76 "UBO"
MemberName 76(UBO) 0 "projection"
MemberName 76(UBO) 1 "modelview"
MemberName 76(UBO) 2 "lightPos"
Name 90 "ubo"
Name 95 "gl_InvocationID"
Name 114 "inNormal"
Name 124 "outColor"
Name 127 "inColor"
Name 136 "pos"
Name 142 "gl_PerVertex"
MemberName 142(gl_PerVertex) 0 "gl_Position"
MemberName 142(gl_PerVertex) 1 "gl_PointSize"
MemberName 142(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 142(gl_PerVertex) 3 "gl_CullDistance"
Name 158 "gl_in"
Name 167 "worldPos"
Name 179 "lPos"
Name 197 "outLightVec"
Name 206 "outViewVec"
Name 214 "gl_PerVertex"
MemberName 214(gl_PerVertex) 0 "gl_Position"
MemberName 214(gl_PerVertex) 1 "gl_PointSize"
MemberName 214(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 214(gl_PerVertex) 3 "gl_CullDistance"
Name 223 ""
Name 235 "gl_ViewportIndex"
Name 241 "gl_PrimitiveID"
Name 244 "gl_PrimitiveIDIn"
Decorate 63(outNormal) Location 0
Decorate 72 ArrayStride 64
Decorate 74 ArrayStride 64
MemberDecorate 76(UBO) 0 ColMajor
MemberDecorate 76(UBO) 0 Offset 0
MemberDecorate 76(UBO) 0 MatrixStride 16
MemberDecorate 76(UBO) 1 ColMajor
MemberDecorate 76(UBO) 1 Offset 128
MemberDecorate 76(UBO) 1 MatrixStride 16
MemberDecorate 76(UBO) 2 Offset 256
Decorate 76(UBO) Block
Decorate 90(ubo) DescriptorSet 0
Decorate 90(ubo) Binding 0
Decorate 95(gl_InvocationID) BuiltIn InvocationId
Decorate 114(inNormal) Location 0
Decorate 124(outColor) Location 1
Decorate 127(inColor) Location 1
MemberDecorate 142(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 142(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 142(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 142(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 142(gl_PerVertex) Block
Decorate 197(outLightVec) Location 3
Decorate 206(outViewVec) Location 2
MemberDecorate 214(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 214(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 214(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 214(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 214(gl_PerVertex) Block
Decorate 235(gl_ViewportIndex) BuiltIn ViewportIndex
Decorate 241(gl_PrimitiveID) BuiltIn PrimitiveId
Decorate 244(gl_PrimitiveIDIn) BuiltIn PrimitiveId
Name 35 "i"
Name 66 "outNormal"
Name 79 "UBO"
MemberName 79(UBO) 0 "projection"
MemberName 79(UBO) 1 "modelview"
MemberName 79(UBO) 2 "lightPos"
Name 93 "ubo"
Name 99 "gl_InvocationID"
Name 120 "inNormal"
Name 131 "outColor"
Name 134 "inColor"
Name 144 "pos"
Name 150 "gl_PerVertex"
MemberName 150(gl_PerVertex) 0 "gl_Position"
MemberName 150(gl_PerVertex) 1 "gl_PointSize"
MemberName 150(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 150(gl_PerVertex) 3 "gl_CullDistance"
Name 167 "gl_in"
Name 177 "worldPos"
Name 190 "lPos"
Name 209 "outLightVec"
Name 218 "outViewVec"
Name 226 "gl_PerVertex"
MemberName 226(gl_PerVertex) 0 "gl_Position"
MemberName 226(gl_PerVertex) 1 "gl_PointSize"
MemberName 226(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 226(gl_PerVertex) 3 "gl_CullDistance"
Name 236 ""
Name 250 "gl_ViewportIndex"
Name 256 "gl_PrimitiveID"
Name 259 "gl_PrimitiveIDIn"
Decorate 66(outNormal) Location 0
Decorate 75 ArrayStride 64
Decorate 77 ArrayStride 64
MemberDecorate 79(UBO) 0 ColMajor
MemberDecorate 79(UBO) 0 Offset 0
MemberDecorate 79(UBO) 0 MatrixStride 16
MemberDecorate 79(UBO) 1 ColMajor
MemberDecorate 79(UBO) 1 Offset 128
MemberDecorate 79(UBO) 1 MatrixStride 16
MemberDecorate 79(UBO) 2 Offset 256
Decorate 79(UBO) Block
Decorate 93(ubo) DescriptorSet 0
Decorate 93(ubo) Binding 0
Decorate 99(gl_InvocationID) BuiltIn InvocationId
Decorate 120(inNormal) Location 0
Decorate 131(outColor) Location 1
Decorate 134(inColor) Location 1
MemberDecorate 150(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 150(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 150(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 150(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 150(gl_PerVertex) Block
Decorate 209(outLightVec) Location 3
Decorate 218(outViewVec) Location 2
MemberDecorate 226(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 226(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 226(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 226(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 226(gl_PerVertex) Block
Decorate 250(gl_ViewportIndex) BuiltIn ViewportIndex
Decorate 256(gl_PrimitiveID) BuiltIn PrimitiveId
Decorate 259(gl_PrimitiveIDIn) BuiltIn PrimitiveId
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
@ -137,229 +137,244 @@ spv.debuginfo.glsl.geom
29: TypeInt 32 1
31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 30 10 23 12
32: TypePointer Function 29(int)
34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 35 31 18 28 12 17 23
37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
38: 29(int) Constant 0
49: 29(int) Constant 3
50: TypeBool
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 51 10 24 12
56: 7(int) Constant 51
57: TypeFloat 32
59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 58 10 13 12
60: TypeVector 57(float) 3
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 59 13
62: TypePointer Output 60(fvec3)
63(outNormal): 62(ptr) Variable Output
66: 7(int) Constant 8
64: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 65 61 18 56 12 21 65 63(outNormal) 66
67: TypeVector 57(float) 4
68: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 59 23
69: TypeMatrix 67(fvec4) 4
71: 50(bool) ConstantTrue
70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 68 23 71
72: TypeArray 69 24
73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 70 24
74: TypeArray 69 24
75: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 70 24
76(UBO): TypeStruct 72 74 67(fvec4)
79: 7(int) Constant 34
80: 7(int) Constant 7
77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 78 73 18 79 80 12 12 13
83: 7(int) Constant 35
81: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 82 75 18 83 80 12 12 13
86: 7(int) Constant 36
84: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 85 68 18 86 80 12 12 13
87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 88 22 18 56 12 21 88 12 13 77 81 84
89: TypePointer Uniform 76(UBO)
90(ubo): 89(ptr) Variable Uniform
91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 92 87 18 56 12 21 92 90(ubo) 66
93: 29(int) Constant 1
94: TypePointer Input 29(int)
95(gl_InvocationID): 94(ptr) Variable Input
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 97 31 18 56 12 21 97 95(gl_InvocationID) 66
99: TypePointer Uniform 69
102: TypeMatrix 60(fvec3) 3
103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 61 13 71
111: TypeArray 60(fvec3) 13
112: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 61 13
113: TypePointer Input 111
114(inNormal): 113(ptr) Variable Input
115: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 116 112 18 56 12 21 116 114(inNormal) 66
118: TypePointer Input 60(fvec3)
123: 7(int) Constant 52
124(outColor): 62(ptr) Variable Output
125: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 126 61 18 123 12 21 126 124(outColor) 66
127(inColor): 113(ptr) Variable Input
128: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 129 112 18 123 12 21 129 127(inColor) 66
134: 7(int) Constant 54
135: TypePointer Function 67(fvec4)
137: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 138 68 18 134 12 17 23
140: TypeArray 57(float) 22
141: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 59 22
142(gl_PerVertex): TypeStruct 67(fvec4) 57(float) 140 140
145: 7(int) Constant 23
143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 144 68 18 24 145 12 12 13
148: 7(int) Constant 41
146: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 147 59 18 24 148 12 12 13
151: 7(int) Constant 84
149: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 141 18 24 151 12 12 13
152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 141 18 24 151 12 12 13
153: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 154 22 18 134 12 21 154 12 13 143 146 149 152
155: TypeArray 142(gl_PerVertex) 13
156: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 153 13
157: TypePointer Input 155
158(gl_in): 157(ptr) Variable Input
159: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 160 156 18 134 12 21 160 158(gl_in) 66
162: TypePointer Input 67(fvec4)
166: 7(int) Constant 55
168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 169 68 18 166 12 17 23
177: 7(int) Constant 57
178: TypePointer Function 60(fvec3)
180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 181 61 18 177 12 17 23
186: 29(int) Constant 2
187: TypePointer Uniform 67(fvec4)
196: 7(int) Constant 58
197(outLightVec): 62(ptr) Variable Output
198: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 199 61 18 196 12 21 199 197(outLightVec) 66
205: 7(int) Constant 59
206(outViewVec): 62(ptr) Variable Output
207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 208 61 18 205 12 21 208 206(outViewVec) 66
213: 7(int) Constant 61
214(gl_PerVertex): TypeStruct 67(fvec4) 57(float) 140 140
216: 7(int) Constant 215
215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 144 68 18 24 216 12 12 13
218: 7(int) Constant 233
217: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 147 59 18 24 218 12 12 13
219: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 141 18 13 80 12 12 13
220: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 141 18 13 80 12 12 13
221: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 154 22 18 213 12 21 154 12 13 215 217 219 220
222: TypePointer Output 214(gl_PerVertex)
223: 222(ptr) Variable Output
224: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 221 18 213 12 21 1 223 66
230: TypePointer Output 67(fvec4)
233: 7(int) Constant 64
234: TypePointer Output 29(int)
235(gl_ViewportIndex): 234(ptr) Variable Output
236: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 237 31 18 233 12 21 237 235(gl_ViewportIndex) 66
240: 7(int) Constant 65
241(gl_PrimitiveID): 234(ptr) Variable Output
242: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 243 31 18 240 12 21 243 241(gl_PrimitiveID) 66
244(gl_PrimitiveIDIn): 94(ptr) Variable Input
245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 246 31 18 240 12 21 246 244(gl_PrimitiveIDIn) 66
249: 7(int) Constant 66
256: 7(int) Constant 68
33: 7(int) Constant 7
34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 33 12
36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 37 31 18 28 12 17 23
39: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
40: 29(int) Constant 0
51: 29(int) Constant 3
52: TypeBool
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 53 10 24 12
58: 7(int) Constant 51
59: TypeFloat 32
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 60 10 13 12
62: TypeVector 59(float) 3
63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 61 13
64: TypePointer Output 62(fvec3)
65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 63 13 12
66(outNormal): 64(ptr) Variable Output
69: 7(int) Constant 8
67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 68 63 18 58 12 21 68 66(outNormal) 69
70: TypeVector 59(float) 4
71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 61 23
72: TypeMatrix 70(fvec4) 4
74: 52(bool) ConstantTrue
73: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 71 23 74
75: TypeArray 72 24
76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 73 24
77: TypeArray 72 24
78: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 73 24
79(UBO): TypeStruct 75 77 70(fvec4)
82: 7(int) Constant 34
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 81 76 18 82 33 12 12 13
85: 7(int) Constant 35
83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 84 78 18 85 33 12 12 13
88: 7(int) Constant 36
86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 87 71 18 88 33 12 12 13
89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 90 22 18 58 12 21 90 12 13 80 83 86
91: TypePointer Uniform 79(UBO)
92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 89 24 12
93(ubo): 91(ptr) Variable Uniform
94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 95 89 18 58 12 21 95 93(ubo) 69
96: 29(int) Constant 1
97: TypePointer Input 29(int)
98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 22 12
99(gl_InvocationID): 97(ptr) Variable Input
100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 101 31 18 58 12 21 101 99(gl_InvocationID) 69
103: TypePointer Uniform 72
104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 73 24 12
107: TypeMatrix 62(fvec3) 3
108: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 63 13 74
116: TypeArray 62(fvec3) 13
117: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 63 13
118: TypePointer Input 116
119: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 117 22 12
120(inNormal): 118(ptr) Variable Input
121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 122 117 18 58 12 21 122 120(inNormal) 69
124: TypePointer Input 62(fvec3)
125: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 63 22 12
130: 7(int) Constant 52
131(outColor): 64(ptr) Variable Output
132: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 133 63 18 130 12 21 133 131(outColor) 69
134(inColor): 118(ptr) Variable Input
135: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 136 117 18 130 12 21 136 134(inColor) 69
141: 7(int) Constant 54
142: TypePointer Function 70(fvec4)
143: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 33 12
145: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 146 71 18 141 12 17 23
148: TypeArray 59(float) 22
149: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 61 22
150(gl_PerVertex): TypeStruct 70(fvec4) 59(float) 148 148
153: 7(int) Constant 23
151: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 71 18 24 153 12 12 13
156: 7(int) Constant 41
154: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 61 18 24 156 12 12 13
159: 7(int) Constant 84
157: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 149 18 24 159 12 12 13
160: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 149 18 24 159 12 12 13
161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 22 18 141 12 21 162 12 13 151 154 157 160
163: TypeArray 150(gl_PerVertex) 13
164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 161 13
165: TypePointer Input 163
166: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 164 22 12
167(gl_in): 165(ptr) Variable Input
168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 169 164 18 141 12 21 169 167(gl_in) 69
171: TypePointer Input 70(fvec4)
172: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 22 12
176: 7(int) Constant 55
178: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 179 71 18 176 12 17 23
187: 7(int) Constant 57
188: TypePointer Function 62(fvec3)
189: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 63 33 12
191: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 192 63 18 187 12 17 23
197: 29(int) Constant 2
198: TypePointer Uniform 70(fvec4)
199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 24 12
208: 7(int) Constant 58
209(outLightVec): 64(ptr) Variable Output
210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 211 63 18 208 12 21 211 209(outLightVec) 69
217: 7(int) Constant 59
218(outViewVec): 64(ptr) Variable Output
219: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 220 63 18 217 12 21 220 218(outViewVec) 69
225: 7(int) Constant 61
226(gl_PerVertex): TypeStruct 70(fvec4) 59(float) 148 148
228: 7(int) Constant 215
227: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 152 71 18 24 228 12 12 13
230: 7(int) Constant 233
229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 61 18 24 230 12 12 13
231: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 149 18 13 33 12 12 13
232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 158 149 18 13 33 12 12 13
233: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 22 18 225 12 21 162 12 13 227 229 231 232
234: TypePointer Output 226(gl_PerVertex)
235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 233 13 12
236: 234(ptr) Variable Output
237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 233 18 225 12 21 1 236 69
243: TypePointer Output 70(fvec4)
244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 13 12
247: 7(int) Constant 64
248: TypePointer Output 29(int)
249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 13 12
250(gl_ViewportIndex): 248(ptr) Variable Output
251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 252 31 18 247 12 21 252 250(gl_ViewportIndex) 69
255: 7(int) Constant 65
256(gl_PrimitiveID): 248(ptr) Variable Output
257: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 258 31 18 255 12 21 258 256(gl_PrimitiveID) 69
259(gl_PrimitiveIDIn): 97(ptr) Variable Input
260: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 261 31 18 255 12 21 261 259(gl_PrimitiveIDIn) 69
264: 7(int) Constant 66
271: 7(int) Constant 68
Line 1 47 15
14(main): 4 Function None 5
15: Label
33(i): 32(ptr) Variable Function
136(pos): 135(ptr) Variable Function
167(worldPos): 135(ptr) Variable Function
179(lPos): 178(ptr) Variable Function
35(i): 32(ptr) Variable Function
144(pos): 142(ptr) Variable Function
177(worldPos): 142(ptr) Variable Function
190(lPos): 188(ptr) Variable Function
25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
27: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
36: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 34 33(i) 37
Store 33(i) 38
Branch 39
39: Label
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
44: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
LoopMerge 41 42 None
Branch 45
45: Label
46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
48: 29(int) Load 33(i)
53: 50(bool) SLessThan 48 49
BranchConditional 53 40 41
40: Label
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
55: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 56 56 12 12
98: 29(int) Load 95(gl_InvocationID)
100: 99(ptr) AccessChain 90(ubo) 93 98
101: 69 Load 100
104: 67(fvec4) CompositeExtract 101 0
105: 60(fvec3) VectorShuffle 104 104 0 1 2
106: 67(fvec4) CompositeExtract 101 1
107: 60(fvec3) VectorShuffle 106 106 0 1 2
108: 67(fvec4) CompositeExtract 101 2
109: 60(fvec3) VectorShuffle 108 108 0 1 2
110: 102 CompositeConstruct 105 107 109
117: 29(int) Load 33(i)
119: 118(ptr) AccessChain 114(inNormal) 117
120: 60(fvec3) Load 119
121: 60(fvec3) MatrixTimesVector 110 120
Store 63(outNormal) 121
122: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 123 123 12 12
130: 29(int) Load 33(i)
131: 118(ptr) AccessChain 127(inColor) 130
132: 60(fvec3) Load 131
Store 124(outColor) 132
133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 134 134 12 12
139: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 137 136(pos) 37
161: 29(int) Load 33(i)
163: 162(ptr) AccessChain 158(gl_in) 161 38
164: 67(fvec4) Load 163
Store 136(pos) 164
165: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 166 166 12 12
170: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 168 167(worldPos) 37
171: 29(int) Load 95(gl_InvocationID)
172: 99(ptr) AccessChain 90(ubo) 93 171
173: 69 Load 172
174: 67(fvec4) Load 136(pos)
175: 67(fvec4) MatrixTimesVector 173 174
Store 167(worldPos) 175
176: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 177 177 12 12
182: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 180 179(lPos) 37
183: 29(int) Load 95(gl_InvocationID)
184: 99(ptr) AccessChain 90(ubo) 93 183
185: 69 Load 184
188: 187(ptr) AccessChain 90(ubo) 186
189: 67(fvec4) Load 188
190: 67(fvec4) MatrixTimesVector 185 189
191: 57(float) CompositeExtract 190 0
192: 57(float) CompositeExtract 190 1
193: 57(float) CompositeExtract 190 2
194: 60(fvec3) CompositeConstruct 191 192 193
Store 179(lPos) 194
195: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 196 196 12 12
200: 60(fvec3) Load 179(lPos)
201: 67(fvec4) Load 167(worldPos)
202: 60(fvec3) VectorShuffle 201 201 0 1 2
203: 60(fvec3) FSub 200 202
Store 197(outLightVec) 203
204: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 205 205 12 12
209: 67(fvec4) Load 167(worldPos)
210: 60(fvec3) VectorShuffle 209 209 0 1 2
211: 60(fvec3) FNegate 210
Store 206(outViewVec) 211
212: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 213 213 12 12
225: 29(int) Load 95(gl_InvocationID)
226: 99(ptr) AccessChain 90(ubo) 38 225
227: 69 Load 226
228: 67(fvec4) Load 167(worldPos)
229: 67(fvec4) MatrixTimesVector 227 228
231: 230(ptr) AccessChain 223 38
Store 231 229
232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 233 233 12 12
238: 29(int) Load 95(gl_InvocationID)
Store 235(gl_ViewportIndex) 238
239: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 240 240 12 12
247: 29(int) Load 244(gl_PrimitiveIDIn)
Store 241(gl_PrimitiveID) 247
248: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 249 249 12 12
EmitVertex
Branch 42
42: Label
250: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
252: 29(int) Load 33(i)
253: 29(int) IAdd 252 93
Store 33(i) 253
Branch 39
38: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 36 35(i) 39
Store 35(i) 40
Branch 41
41: Label
254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 256 256 12 12
45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
46: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
LoopMerge 43 44 None
Branch 47
47: Label
48: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
50: 29(int) Load 35(i)
55: 52(bool) SLessThan 50 51
BranchConditional 55 42 43
42: Label
56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
57: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 58 58 12 12
102: 29(int) Load 99(gl_InvocationID)
105: 103(ptr) AccessChain 93(ubo) 96 102
106: 72 Load 105
109: 70(fvec4) CompositeExtract 106 0
110: 62(fvec3) VectorShuffle 109 109 0 1 2
111: 70(fvec4) CompositeExtract 106 1
112: 62(fvec3) VectorShuffle 111 111 0 1 2
113: 70(fvec4) CompositeExtract 106 2
114: 62(fvec3) VectorShuffle 113 113 0 1 2
115: 107 CompositeConstruct 110 112 114
123: 29(int) Load 35(i)
126: 124(ptr) AccessChain 120(inNormal) 123
127: 62(fvec3) Load 126
128: 62(fvec3) MatrixTimesVector 115 127
Store 66(outNormal) 128
129: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
137: 29(int) Load 35(i)
138: 124(ptr) AccessChain 134(inColor) 137
139: 62(fvec3) Load 138
Store 131(outColor) 139
140: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 141 141 12 12
147: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 145 144(pos) 39
170: 29(int) Load 35(i)
173: 171(ptr) AccessChain 167(gl_in) 170 40
174: 70(fvec4) Load 173
Store 144(pos) 174
175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 176 176 12 12
180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 178 177(worldPos) 39
181: 29(int) Load 99(gl_InvocationID)
182: 103(ptr) AccessChain 93(ubo) 96 181
183: 72 Load 182
184: 70(fvec4) Load 144(pos)
185: 70(fvec4) MatrixTimesVector 183 184
Store 177(worldPos) 185
186: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 187 187 12 12
193: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 191 190(lPos) 39
194: 29(int) Load 99(gl_InvocationID)
195: 103(ptr) AccessChain 93(ubo) 96 194
196: 72 Load 195
200: 198(ptr) AccessChain 93(ubo) 197
201: 70(fvec4) Load 200
202: 70(fvec4) MatrixTimesVector 196 201
203: 59(float) CompositeExtract 202 0
204: 59(float) CompositeExtract 202 1
205: 59(float) CompositeExtract 202 2
206: 62(fvec3) CompositeConstruct 203 204 205
Store 190(lPos) 206
207: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 208 208 12 12
212: 62(fvec3) Load 190(lPos)
213: 70(fvec4) Load 177(worldPos)
214: 62(fvec3) VectorShuffle 213 213 0 1 2
215: 62(fvec3) FSub 212 214
Store 209(outLightVec) 215
216: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 217 217 12 12
221: 70(fvec4) Load 177(worldPos)
222: 62(fvec3) VectorShuffle 221 221 0 1 2
223: 62(fvec3) FNegate 222
Store 218(outViewVec) 223
224: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 225 225 12 12
238: 29(int) Load 99(gl_InvocationID)
239: 103(ptr) AccessChain 93(ubo) 40 238
240: 72 Load 239
241: 70(fvec4) Load 177(worldPos)
242: 70(fvec4) MatrixTimesVector 240 241
245: 243(ptr) AccessChain 236 40
Store 245 242
246: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 247 247 12 12
253: 29(int) Load 99(gl_InvocationID)
Store 250(gl_ViewportIndex) 253
254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 255 255 12 12
262: 29(int) Load 259(gl_PrimitiveIDIn)
Store 256(gl_PrimitiveID) 262
263: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 264 264 12 12
EmitVertex
Branch 44
44: Label
265: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
266: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
267: 29(int) Load 35(i)
268: 29(int) IAdd 267 96
Store 35(i) 268
Branch 41
43: Label
269: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
270: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 271 271 12 12
EndPrimitive
Return
FunctionEnd