blob: c747d3a118e37d651662eeb734db52a825b3b3bb [file] [log] [blame]
spv.debuginfo.hlsl.geom
Validation failed
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 322
Capability Geometry
Capability MultiViewport
Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Geometry 5 "main" 228 235 240 246 251 256 261 271 278 283 307 310
ExecutionMode 5 Triangles
ExecutionMode 5 Invocations 2
ExecutionMode 5 OutputTriangleStrip
ExecutionMode 5 OutputVertices 3
9: String "float"
12: String "uint"
24: String "Pos"
26: String ""
30: String "Color"
35: String "VSOutput"
46: String "PrimitiveID"
51: String "LightVec"
57: String "GSOutput"
67: String "@main"
73: String "input"
77: String "outStream"
81: String "InvocationID"
87: String "int"
92: String "i"
104: String "bool"
109: String "output"
130: String "projection"
134: String "modelview"
138: String "lightPos"
142: String "UBO"
146: String "ubo"
177: String "pos"
185: String "worldPos"
195: String "lPos"
230: String "outStream.Pos"
237: String "outStream.ViewportIndex"
242: String "outStream.PrimitiveID"
248: String "outStream.Normal"
253: String "outStream.Color"
258: String "outStream.ViewVec"
263: String "outStream.LightVec"
Name 5 "main"
Name 22 "VSOutput"
MemberName 22(VSOutput) 0 "Pos"
MemberName 22(VSOutput) 1 "Normal"
MemberName 22(VSOutput) 2 "Color"
Name 42 "GSOutput"
MemberName 42(GSOutput) 0 "Pos"
MemberName 42(GSOutput) 1 "ViewportIndex"
MemberName 42(GSOutput) 2 "PrimitiveID"
MemberName 42(GSOutput) 3 "Normal"
MemberName 42(GSOutput) 4 "Color"
MemberName 42(GSOutput) 5 "ViewVec"
MemberName 42(GSOutput) 6 "LightVec"
Name 66 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;"
Name 62 "input"
Name 63 "outStream"
Name 64 "InvocationID"
Name 65 "PrimitiveID"
Name 90 "i"
Name 107 "output"
Name 128 "UBO"
MemberName 128(UBO) 0 "projection"
MemberName 128(UBO) 1 "modelview"
MemberName 128(UBO) 2 "lightPos"
Name 144 "ubo"
MemberName 144(ubo) 0 "ubo"
Name 150 ""
Name 175 "pos"
Name 183 "worldPos"
Name 193 "lPos"
Name 228 "outStream.Pos"
Name 235 "outStream.ViewportIndex"
Name 240 "outStream.PrimitiveID"
Name 246 "outStream.Normal"
Name 251 "outStream.Color"
Name 256 "outStream.ViewVec"
Name 261 "outStream.LightVec"
Name 268 "input"
Name 271 "input.Pos"
Name 278 "input.Normal"
Name 283 "input.Color"
Name 305 "InvocationID"
Name 307 "InvocationID"
Name 309 "PrimitiveID"
Name 310 "PrimitiveID"
Name 312 "outStream"
Name 313 "param"
Name 315 "param"
Name 316 "param"
Name 318 "param"
Decorate 124 ArrayStride 64
Decorate 126 ArrayStride 64
MemberDecorate 128(UBO) 0 RowMajor
MemberDecorate 128(UBO) 0 Offset 0
MemberDecorate 128(UBO) 0 MatrixStride 16
MemberDecorate 128(UBO) 1 RowMajor
MemberDecorate 128(UBO) 1 Offset 128
MemberDecorate 128(UBO) 1 MatrixStride 16
MemberDecorate 128(UBO) 2 Offset 256
MemberDecorate 144(ubo) 0 Offset 0
Decorate 144(ubo) Block
Decorate 150 DescriptorSet 0
Decorate 150 Binding 0
Decorate 228(outStream.Pos) BuiltIn Position
Decorate 235(outStream.ViewportIndex) BuiltIn ViewportIndex
Decorate 240(outStream.PrimitiveID) BuiltIn PrimitiveId
Decorate 246(outStream.Normal) Location 0
Decorate 251(outStream.Color) Location 1
Decorate 256(outStream.ViewVec) Location 2
Decorate 261(outStream.LightVec) Location 3
Decorate 271(input.Pos) BuiltIn Position
Decorate 278(input.Normal) Location 0
Decorate 283(input.Color) Location 1
Decorate 307(InvocationID) BuiltIn InvocationId
Decorate 310(PrimitiveID) BuiltIn PrimitiveId
3: TypeVoid
4: TypeFunction 3
7: TypeFloat 32
10: TypeInt 32 0
13: 10(int) Constant 32
14: 10(int) Constant 6
15: 10(int) Constant 0
11: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 12 13 14 15
16: 10(int) Constant 3
8: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 9 13 16 15
17: TypeVector 7(float) 4
18: 10(int) Constant 4
19: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 8 18
20: TypeVector 7(float) 3
21: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 8 16
22(VSOutput): TypeStruct 17(fvec4) 20(fvec3) 20(fvec3)
25: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(Modf) 0 26
27: 10(int) Constant 37
28: 10(int) Constant 13
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 24 19 25 27 28 15 15 16
31: 10(int) Constant 39
32: 10(int) Constant 34
29: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 30 21 25 31 32 15 15 16
33: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 30 21 25 31 32 15 15 16
36: 10(int) Constant 1
38: 10(int) Constant 5
37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(Round) 36 18 25 38
34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 35 36 25 15 15 37 35 15 16 23 29 33
39: TypeArray 22(VSOutput) 16
40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 34 16
41: TypePointer Function 39
42(GSOutput): TypeStruct 17(fvec4) 10(int) 10(int) 20(fvec3) 20(fvec3) 20(fvec3) 20(fvec3)
44: 10(int) Constant 44
43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 24 19 25 44 28 15 15 16
47: 10(int) Constant 46
48: 10(int) Constant 19
45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 46 11 25 47 48 15 15 16
49: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 46 11 25 47 48 15 15 16
52: 10(int) Constant 50
50: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 51 21 25 52 27 15 15 16
53: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 51 21 25 52 27 15 15 16
54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 51 21 25 52 27 15 15 16
55: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 51 21 25 52 27 15 15 16
56: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 57 36 25 15 15 37 57 15 16 43 45 49 50 53 54 55
58: TypePointer Function 42(GSOutput)
59: TypePointer Function 10(int)
60: TypeFunction 3 41(ptr) 58(ptr) 59(ptr) 59(ptr)
61: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(Floor) 16 3 40 56 11 11
68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(Cosh) 67 61 25 15 15 37 67 16 15
72: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 73 40 25 15 15 68 18 36
75: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
78: 10(int) Constant 2
76: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 77 56 25 15 15 68 18 78
80: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 81 11 25 15 15 68 18 16
83: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 46 11 25 15 15 68 18 18
86: TypeInt 32 1
88: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 87 13 18 15
89: TypePointer Function 86(int)
93: 10(int) Constant 57
91: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 92 88 25 93 15 68 18
95: 86(int) Constant 0
102: 86(int) Constant 3
103: TypeBool
105: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 104 13 78 15
110: 10(int) Constant 59
108: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 109 56 25 110 15 68 18
112: 7(float) Constant 0
113: 17(fvec4) ConstantComposite 112 112 112 112
114: 20(fvec3) ConstantComposite 112 112 112
115:42(GSOutput) ConstantComposite 113 15 15 114 114 114 114
117: 86(int) Constant 1
118: TypePointer Function 20(fvec3)
121: TypeMatrix 17(fvec4) 4
123: 103(bool) ConstantTrue
122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 19 18 123
124: TypeArray 121 78
125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 122 78
126: TypeArray 121 78
127: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 122 78
128(UBO): TypeStruct 124 126 17(fvec4)
131: 10(int) Constant 28
132: 10(int) Constant 21
129: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 130 125 25 131 132 15 15 16
135: 10(int) Constant 29
136: 10(int) Constant 20
133: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 134 127 25 135 136 15 15 16
139: 10(int) Constant 30
140: 10(int) Constant 17
137: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 138 19 25 139 140 15 15 16
143: 10(int) Constant 60
141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 142 36 25 143 15 37 142 15 16 129 133 137
144(ubo): TypeStruct 128(UBO)
147: 10(int) Constant 33
145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 146 141 25 147 27 15 15 16
148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 146 36 25 143 15 37 146 15 16 145
149: TypePointer Uniform 144(ubo)
150: 149(ptr) Variable Uniform
152: 10(int) Constant 8
151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 26 148 25 143 15 37 26 150 152
154: TypePointer Uniform 121
157: TypeMatrix 20(fvec3) 3
158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108 21 16 123
168: 86(int) Constant 4
170: 86(int) Constant 2
174: TypePointer Function 17(fvec4)
178: 10(int) Constant 63
176: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 177 19 25 178 15 68 18
186: 10(int) Constant 64
184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 185 19 25 186 15 68 18
196: 10(int) Constant 66
194: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 195 21 25 196 15 68 18
198: TypePointer Uniform 17(fvec4)
206: 86(int) Constant 6
212: 86(int) Constant 5
227: TypePointer Output 17(fvec4)
228(outStream.Pos): 227(ptr) Variable Output
231: 10(int) Constant 75
229: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 230 19 25 231 15 37 230 228(outStream.Pos) 152
234: TypePointer Output 10(int)
235(outStream.ViewportIndex): 234(ptr) Variable Output
236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 237 11 25 231 15 37 237 235(outStream.ViewportIndex) 152
240(outStream.PrimitiveID): 234(ptr) Variable Output
241: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 242 11 25 231 15 37 242 240(outStream.PrimitiveID) 152
245: TypePointer Output 20(fvec3)
246(outStream.Normal): 245(ptr) Variable Output
247: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 248 21 25 231 15 37 248 246(outStream.Normal) 152
251(outStream.Color): 245(ptr) Variable Output
252: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 253 21 25 231 15 37 253 251(outStream.Color) 152
256(outStream.ViewVec): 245(ptr) Variable Output
257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 258 21 25 231 15 37 258 256(outStream.ViewVec) 152
261(outStream.LightVec): 245(ptr) Variable Output
262: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 263 21 25 231 15 37 263 261(outStream.LightVec) 152
269: TypeArray 17(fvec4) 16
270: TypePointer Input 269
271(input.Pos): 270(ptr) Variable Input
272: TypePointer Input 17(fvec4)
276: TypeArray 20(fvec3) 16
277: TypePointer Input 276
278(input.Normal): 277(ptr) Variable Input
279: TypePointer Input 20(fvec3)
283(input.Color): 277(ptr) Variable Input
306: TypePointer Input 10(int)
307(InvocationID): 306(ptr) Variable Input
310(PrimitiveID): 306(ptr) Variable Input
5(main): 3 Function None 4
6: Label
268(input): 41(ptr) Variable Function
305(InvocationID): 59(ptr) Variable Function
309(PrimitiveID): 59(ptr) Variable Function
312(outStream): 58(ptr) Variable Function
313(param): 41(ptr) Variable Function
315(param): 58(ptr) Variable Function
316(param): 59(ptr) Variable Function
318(param): 59(ptr) Variable Function
273: 272(ptr) AccessChain 271(input.Pos) 95
274: 17(fvec4) Load 273
275: 174(ptr) AccessChain 268(input) 95 95
Store 275 274
280: 279(ptr) AccessChain 278(input.Normal) 95
281: 20(fvec3) Load 280
282: 118(ptr) AccessChain 268(input) 95 117
Store 282 281
284: 279(ptr) AccessChain 283(input.Color) 95
285: 20(fvec3) Load 284
286: 118(ptr) AccessChain 268(input) 95 170
Store 286 285
287: 272(ptr) AccessChain 271(input.Pos) 117
288: 17(fvec4) Load 287
289: 174(ptr) AccessChain 268(input) 117 95
Store 289 288
290: 279(ptr) AccessChain 278(input.Normal) 117
291: 20(fvec3) Load 290
292: 118(ptr) AccessChain 268(input) 117 117
Store 292 291
293: 279(ptr) AccessChain 283(input.Color) 117
294: 20(fvec3) Load 293
295: 118(ptr) AccessChain 268(input) 117 170
Store 295 294
296: 272(ptr) AccessChain 271(input.Pos) 170
297: 17(fvec4) Load 296
298: 174(ptr) AccessChain 268(input) 170 95
Store 298 297
299: 279(ptr) AccessChain 278(input.Normal) 170
300: 20(fvec3) Load 299
301: 118(ptr) AccessChain 268(input) 170 117
Store 301 300
302: 279(ptr) AccessChain 283(input.Color) 170
303: 20(fvec3) Load 302
304: 118(ptr) AccessChain 268(input) 170 170
Store 304 303
308: 10(int) Load 307(InvocationID)
Store 305(InvocationID) 308
311: 10(int) Load 310(PrimitiveID)
Store 309(PrimitiveID) 311
314: 39 Load 268(input)
Store 313(param) 314
317: 10(int) Load 305(InvocationID)
Store 316(param) 317
319: 10(int) Load 309(PrimitiveID)
Store 318(param) 319
320: 3 FunctionCall 66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 313(param) 315(param) 316(param) 318(param)
321:42(GSOutput) Load 315(param)
Store 312(outStream) 321
Return
FunctionEnd
66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 3 Function None 60
62(input): 41(ptr) FunctionParameter
63(outStream): 58(ptr) FunctionParameter
64(InvocationID): 59(ptr) FunctionParameter
65(PrimitiveID): 59(ptr) FunctionParameter
69: Label
90(i): 89(ptr) Variable Function
107(output): 58(ptr) Variable Function
175(pos): 174(ptr) Variable Function
183(worldPos): 174(ptr) Variable Function
193(lPos): 118(ptr) Variable Function
70: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(Acosh) 68
71: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103 25 15 15 15 15
74: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 72 62(input) 75
79: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 76 63(outStream) 75
82: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 80 64(InvocationID) 75
84: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 83 65(PrimitiveID) 75
85: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 68 66(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;)
94: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 91 90(i) 75
Store 90(i) 95
Branch 96
96: Label
LoopMerge 98 99 None
Branch 100
100: Label
101: 86(int) Load 90(i)
106: 103(bool) SLessThan 101 102
BranchConditional 106 97 98
97: Label
111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 108 107(output) 75
Store 107(output) 115
116: 86(int) Load 90(i)
119: 118(ptr) AccessChain 62(input) 116 117
120: 20(fvec3) Load 119
153: 10(int) Load 64(InvocationID)
155: 154(ptr) AccessChain 150 95 117 153
156: 121 Load 155
159: 17(fvec4) CompositeExtract 156 0
160: 20(fvec3) VectorShuffle 159 159 0 1 2
161: 17(fvec4) CompositeExtract 156 1
162: 20(fvec3) VectorShuffle 161 161 0 1 2
163: 17(fvec4) CompositeExtract 156 2
164: 20(fvec3) VectorShuffle 163 163 0 1 2
165: 157 CompositeConstruct 160 162 164
166: 20(fvec3) VectorTimesMatrix 120 165
167: 118(ptr) AccessChain 107(output) 102
Store 167 166
169: 86(int) Load 90(i)
171: 118(ptr) AccessChain 62(input) 169 170
172: 20(fvec3) Load 171
173: 118(ptr) AccessChain 107(output) 168
Store 173 172
179: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 176 175(pos) 75
180: 86(int) Load 90(i)
181: 174(ptr) AccessChain 62(input) 180 95
182: 17(fvec4) Load 181
Store 175(pos) 182
187: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 184 183(worldPos) 75
188: 17(fvec4) Load 175(pos)
189: 10(int) Load 64(InvocationID)
190: 154(ptr) AccessChain 150 95 117 189
191: 121 Load 190
192: 17(fvec4) VectorTimesMatrix 188 191
Store 183(worldPos) 192
197: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 194 193(lPos) 75
199: 198(ptr) AccessChain 150 95 170
200: 17(fvec4) Load 199
201: 10(int) Load 64(InvocationID)
202: 154(ptr) AccessChain 150 95 117 201
203: 121 Load 202
204: 17(fvec4) VectorTimesMatrix 200 203
205: 20(fvec3) VectorShuffle 204 204 0 1 2
Store 193(lPos) 205
207: 20(fvec3) Load 193(lPos)
208: 17(fvec4) Load 183(worldPos)
209: 20(fvec3) VectorShuffle 208 208 0 1 2
210: 20(fvec3) FSub 207 209
211: 118(ptr) AccessChain 107(output) 206
Store 211 210
213: 17(fvec4) Load 183(worldPos)
214: 20(fvec3) VectorShuffle 213 213 0 1 2
215: 20(fvec3) FNegate 214
216: 118(ptr) AccessChain 107(output) 212
Store 216 215
217: 17(fvec4) Load 183(worldPos)
218: 10(int) Load 64(InvocationID)
219: 154(ptr) AccessChain 150 95 95 218
220: 121 Load 219
221: 17(fvec4) VectorTimesMatrix 217 220
222: 174(ptr) AccessChain 107(output) 95
Store 222 221
223: 10(int) Load 64(InvocationID)
224: 59(ptr) AccessChain 107(output) 117
Store 224 223
225: 10(int) Load 65(PrimitiveID)
226: 59(ptr) AccessChain 107(output) 170
Store 226 225
232: 174(ptr) AccessChain 107(output) 95
233: 17(fvec4) Load 232
Store 228(outStream.Pos) 233
238: 59(ptr) AccessChain 107(output) 117
239: 10(int) Load 238
Store 235(outStream.ViewportIndex) 239
243: 59(ptr) AccessChain 107(output) 170
244: 10(int) Load 243
Store 240(outStream.PrimitiveID) 244
249: 118(ptr) AccessChain 107(output) 102
250: 20(fvec3) Load 249
Store 246(outStream.Normal) 250
254: 118(ptr) AccessChain 107(output) 168
255: 20(fvec3) Load 254
Store 251(outStream.Color) 255
259: 118(ptr) AccessChain 107(output) 212
260: 20(fvec3) Load 259
Store 256(outStream.ViewVec) 260
264: 118(ptr) AccessChain 107(output) 206
265: 20(fvec3) Load 264
Store 261(outStream.LightVec) 265
EmitVertex
Branch 99
99: Label
266: 86(int) Load 90(i)
267: 86(int) IAdd 266 117
Store 90(i) 267
Branch 96
98: Label
EndPrimitive
Return
FunctionEnd