yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
e4c40890
main
1spv.debuginfo.hlsl.geom 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 383 5 6 Capability Geometry 7 Capability MultiViewport 8 Extension "SPV_KHR_non_semantic_info" 9 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 10 3: ExtInstImport "GLSL.std.450" 11 MemoryModel Logical GLSL450 12 EntryPoint Geometry 6 "main" 280 289 294 301 306 311 316 332 339 344 368 371 13 ExecutionMode 6 Triangles 14 ExecutionMode 6 Invocations 2 15 ExecutionMode 6 OutputTriangleStrip 16 ExecutionMode 6 OutputVertices 3 17 2: String "spv.debuginfo.hlsl.geom" 18 9: String "float" 19 12: String "uint" 20 25: String "Pos" 21 27: String "/* 22The MIT License (MIT) 23 24Copyright (c) 2022 Google LLC 25Copyright (c) 2022 Sascha Willems 26 27Permission is hereby granted, free of charge, to any person obtaining a copy 28of this software and associated documentation files (the "Software"), to deal 29in the Software without restriction, including without limitation the rights 30to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 31copies of the Software, and to permit persons to whom the Software is 32furnished to do so, subject to the following conditions: 33 34The above copyright notice and this permission notice shall be included in all 35copies or substantial portions of the Software. 36 37THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 38IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 39FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 40AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 41LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 42OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 43SOFTWARE. 44*/ 45 46struct UBO 47{ 48 float4x4 projection[2]; 49 float4x4 modelview[2]; 50 float4 lightPos; 51}; 52 53cbuffer ubo : register(b0) { UBO ubo; } 54 55struct VSOutput 56{ 57 float4 Pos : SV_POSITION; 58[[vk::location(0)]] float3 Normal : NORMAL0; 59[[vk::location(1)]] float3 Color : COLOR0; 60}; 61 62struct GSOutput 63{ 64 float4 Pos : SV_POSITION; 65 uint ViewportIndex : SV_ViewportArrayIndex; 66 uint PrimitiveID : SV_PrimitiveID; 67[[vk::location(0)]] float3 Normal : NORMAL0; 68[[vk::location(1)]] float3 Color : COLOR0; 69[[vk::location(2)]] float3 ViewVec : TEXCOOR1; 70[[vk::location(3)]] float3 LightVec : TEXCOOR2; 71}; 72 73[maxvertexcount(3)] 74[instance(2)] 75void main(triangle VSOutput input[3], inout TriangleStream<GSOutput> outStream, uint InvocationID : SV_GSInstanceID, uint PrimitiveID : SV_PrimitiveID) 76{ 77 for(int i = 0; i < 3; i++) 78 { 79 GSOutput output = (GSOutput)0; 80 output.Normal = mul((float3x3)ubo.modelview[InvocationID], input[i].Normal); 81 output.Color = input[i].Color; 82 83 float4 pos = input[i].Pos; 84 float4 worldPos = mul(ubo.modelview[InvocationID], pos); 85 86 float3 lPos = mul(ubo.modelview[InvocationID], ubo.lightPos).xyz; 87 output.LightVec = lPos - worldPos.xyz; 88 output.ViewVec = -worldPos.xyz; 89 90 output.Pos = mul(ubo.projection[InvocationID], worldPos); 91 92 // Set the viewport index that the vertex will be emitted to 93 output.ViewportIndex = InvocationID; 94 output.PrimitiveID = PrimitiveID; 95 outStream.Append( output ); 96 } 97 98 outStream.RestartStrip(); 99} 100" 101 31: String "Normal" 102 35: String "Color" 103 39: String "VSOutput" 104 53: String "ViewportIndex" 105 57: String "PrimitiveID" 106 65: String "ViewVec" 107 69: String "LightVec" 108 72: String "GSOutput" 109 85: String "@main" 110 88: String "input" 111 94: String "outStream" 112 98: String "InvocationID" 113 108: String "int" 114 114: String "i" 115 131: String "bool" 116 137: String "output" 117 163: String "projection" 118 166: String "modelview" 119 170: String "lightPos" 120 174: String "UBO" 121 177: String "ubo" 122 184: String "" 123 214: String "pos" 124 223: String "worldPos" 125 234: String "lPos" 126 282: String "outStream.Pos" 127 291: String "outStream.ViewportIndex" 128 296: String "outStream.PrimitiveID" 129 303: String "outStream.Normal" 130 308: String "outStream.Color" 131 313: String "outStream.ViewVec" 132 318: String "outStream.LightVec" 133 Name 6 "main" 134 Name 23 "VSOutput" 135 MemberName 23(VSOutput) 0 "Pos" 136 MemberName 23(VSOutput) 1 "Normal" 137 MemberName 23(VSOutput) 2 "Color" 138 Name 49 "GSOutput" 139 MemberName 49(GSOutput) 0 "Pos" 140 MemberName 49(GSOutput) 1 "ViewportIndex" 141 MemberName 49(GSOutput) 2 "PrimitiveID" 142 MemberName 49(GSOutput) 3 "Normal" 143 MemberName 49(GSOutput) 4 "Color" 144 MemberName 49(GSOutput) 5 "ViewVec" 145 MemberName 49(GSOutput) 6 "LightVec" 146 Name 83 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;" 147 Name 79 "input" 148 Name 80 "outStream" 149 Name 81 "InvocationID" 150 Name 82 "PrimitiveID" 151 Name 112 "i" 152 Name 135 "output" 153 Name 161 "UBO" 154 MemberName 161(UBO) 0 "projection" 155 MemberName 161(UBO) 1 "modelview" 156 MemberName 161(UBO) 2 "lightPos" 157 Name 175 "ubo" 158 MemberName 175(ubo) 0 "ubo" 159 Name 182 "" 160 Name 212 "pos" 161 Name 221 "worldPos" 162 Name 232 "lPos" 163 Name 280 "outStream.Pos" 164 Name 289 "outStream.ViewportIndex" 165 Name 294 "outStream.PrimitiveID" 166 Name 301 "outStream.Normal" 167 Name 306 "outStream.Color" 168 Name 311 "outStream.ViewVec" 169 Name 316 "outStream.LightVec" 170 Name 329 "input" 171 Name 332 "input.Pos" 172 Name 339 "input.Normal" 173 Name 344 "input.Color" 174 Name 366 "InvocationID" 175 Name 368 "InvocationID" 176 Name 370 "PrimitiveID" 177 Name 371 "PrimitiveID" 178 Name 373 "outStream" 179 Name 374 "param" 180 Name 376 "param" 181 Name 377 "param" 182 Name 379 "param" 183 Decorate 157 ArrayStride 64 184 Decorate 159 ArrayStride 64 185 MemberDecorate 161(UBO) 0 RowMajor 186 MemberDecorate 161(UBO) 0 MatrixStride 16 187 MemberDecorate 161(UBO) 0 Offset 0 188 MemberDecorate 161(UBO) 1 RowMajor 189 MemberDecorate 161(UBO) 1 MatrixStride 16 190 MemberDecorate 161(UBO) 1 Offset 128 191 MemberDecorate 161(UBO) 2 Offset 256 192 Decorate 175(ubo) Block 193 MemberDecorate 175(ubo) 0 Offset 0 194 Decorate 182 Binding 0 195 Decorate 182 DescriptorSet 0 196 Decorate 280(outStream.Pos) BuiltIn Position 197 Decorate 289(outStream.ViewportIndex) BuiltIn ViewportIndex 198 Decorate 294(outStream.PrimitiveID) BuiltIn PrimitiveId 199 Decorate 301(outStream.Normal) Location 0 200 Decorate 306(outStream.Color) Location 1 201 Decorate 311(outStream.ViewVec) Location 2 202 Decorate 316(outStream.LightVec) Location 3 203 Decorate 332(input.Pos) BuiltIn Position 204 Decorate 339(input.Normal) Location 0 205 Decorate 344(input.Color) Location 1 206 Decorate 368(InvocationID) BuiltIn InvocationId 207 Decorate 371(PrimitiveID) BuiltIn PrimitiveId 208 4: TypeVoid 209 5: TypeFunction 4 210 8: TypeFloat 32 211 11: TypeInt 32 0 212 14: 11(int) Constant 32 213 15: 11(int) Constant 6 214 16: 11(int) Constant 0 215 13: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 14 15 16 216 17: 11(int) Constant 3 217 10: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 14 17 16 218 18: TypeVector 8(float) 4 219 19: 11(int) Constant 4 220 20: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 19 221 21: TypeVector 8(float) 3 222 22: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 223 23(VSOutput): TypeStruct 18(fvec4) 21(fvec3) 21(fvec3) 224 26: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 27 225 28: 11(int) Constant 37 226 29: 11(int) Constant 13 227 24: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 28 29 16 16 17 228 32: 11(int) Constant 38 229 33: 11(int) Constant 35 230 30: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 31 22 26 32 33 16 16 17 231 36: 11(int) Constant 39 232 37: 11(int) Constant 34 233 34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 35 22 26 36 37 16 16 17 234 40: 11(int) Constant 1 235 41: 11(int) Constant 56 236 43: 11(int) Constant 5 237 42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 40 19 26 43 238 38: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 39 40 26 41 16 42 39 16 17 24 30 34 239 44: TypeArray 23(VSOutput) 17 240 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 38 17 241 46: TypePointer Function 44 242 47: 11(int) Constant 7 243 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 45 47 16 244 49(GSOutput): TypeStruct 18(fvec4) 11(int) 11(int) 21(fvec3) 21(fvec3) 21(fvec3) 21(fvec3) 245 51: 11(int) Constant 44 246 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 51 29 16 16 17 247 54: 11(int) Constant 45 248 55: 11(int) Constant 21 249 52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 53 13 26 54 55 16 16 17 250 58: 11(int) Constant 46 251 59: 11(int) Constant 19 252 56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 57 13 26 58 59 16 16 17 253 61: 11(int) Constant 47 254 60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 31 22 26 61 33 16 16 17 255 63: 11(int) Constant 48 256 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 35 22 26 63 37 16 16 17 257 66: 11(int) Constant 49 258 67: 11(int) Constant 36 259 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 65 22 26 66 67 16 16 17 260 70: 11(int) Constant 50 261 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 69 22 26 70 28 16 16 17 262 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 72 40 26 41 16 42 72 16 17 50 52 56 60 62 64 68 263 73: TypePointer Function 49(GSOutput) 264 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 47 16 265 75: TypePointer Function 11(int) 266 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 47 16 267 77: TypeFunction 4 46(ptr) 73(ptr) 75(ptr) 75(ptr) 268 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 4 45 71 13 13 269 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 85 78 26 41 16 42 85 17 41 270 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 45 26 41 16 86 19 40 271 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 272 95: 11(int) Constant 2 273 93: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 94 71 26 41 16 86 19 95 274 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 98 13 26 41 16 86 19 17 275 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 57 13 26 41 16 86 19 19 276 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 26 16 16 86 277 105: 11(int) Constant 57 278 106: 11(int) Constant 10 279 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 26 105 106 103 280 107: TypeInt 32 1 281 109: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 108 14 19 16 282 110: TypePointer Function 107(int) 283 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 109 47 16 284 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 114 109 26 105 16 104 19 285 118: 107(int) Constant 0 286 129: 107(int) Constant 3 287 130: TypeBool 288 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 131 14 95 16 289 134: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 26 16 16 104 290 138: 11(int) Constant 59 291 136: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 137 71 26 138 16 134 19 292 142: 8(float) Constant 0 293 143: 18(fvec4) ConstantComposite 142 142 142 142 294 144: 21(fvec3) ConstantComposite 142 142 142 295 145:49(GSOutput) ConstantComposite 143 16 16 144 144 144 144 296 148: 11(int) Constant 60 297 149: 107(int) Constant 1 298 150: TypePointer Function 21(fvec3) 299 151: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 47 16 300 154: TypeMatrix 18(fvec4) 4 301 156: 130(bool) ConstantTrue 302 155: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 156 303 157: TypeArray 154 95 304 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 155 95 305 159: TypeArray 154 95 306 160: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 155 95 307 161(UBO): TypeStruct 157 159 18(fvec4) 308 164: 11(int) Constant 28 309 162: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 163 158 26 164 55 16 16 17 310 167: 11(int) Constant 29 311 168: 11(int) Constant 20 312 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 166 160 26 167 168 16 16 17 313 171: 11(int) Constant 30 314 172: 11(int) Constant 17 315 169: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 170 20 26 171 172 16 16 17 316 173: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 40 26 148 16 42 174 16 17 162 165 169 317 175(ubo): TypeStruct 161(UBO) 318 178: 11(int) Constant 33 319 176: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 177 173 26 178 28 16 16 17 320 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 177 40 26 148 16 42 177 16 17 176 321 180: TypePointer Uniform 175(ubo) 322 181: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 179 95 16 323 182: 180(ptr) Variable Uniform 324 185: 11(int) Constant 8 325 183: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 184 179 26 148 16 42 184 182 185 326 187: TypePointer Uniform 154 327 188: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 155 95 16 328 191: TypeMatrix 21(fvec3) 3 329 192: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 22 17 156 330 202: 107(int) Constant 4 331 205: 11(int) Constant 61 332 206: 107(int) Constant 2 333 210: TypePointer Function 18(fvec4) 334 211: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 47 16 335 215: 11(int) Constant 63 336 213: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 214 20 26 215 16 134 19 337 224: 11(int) Constant 64 338 222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 223 20 26 224 16 134 19 339 235: 11(int) Constant 66 340 233: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 234 22 26 235 16 134 19 341 238: TypePointer Uniform 18(fvec4) 342 239: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 95 16 343 247: 107(int) Constant 6 344 250: 11(int) Constant 67 345 255: 107(int) Constant 5 346 258: 11(int) Constant 68 347 264: 11(int) Constant 70 348 272: 11(int) Constant 73 349 276: 11(int) Constant 74 350 278: TypePointer Output 18(fvec4) 351 279: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 17 16 352280(outStream.Pos): 278(ptr) Variable Output 353 283: 11(int) Constant 75 354 281: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 282 20 26 283 16 42 282 280(outStream.Pos) 185 355 287: TypePointer Output 11(int) 356 288: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 17 16 357289(outStream.ViewportIndex): 287(ptr) Variable Output 358 290: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 291 13 26 283 16 42 291 289(outStream.ViewportIndex) 185 359294(outStream.PrimitiveID): 287(ptr) Variable Output 360 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 296 13 26 283 16 42 296 294(outStream.PrimitiveID) 185 361 299: TypePointer Output 21(fvec3) 362 300: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 17 16 363301(outStream.Normal): 299(ptr) Variable Output 364 302: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 303 22 26 283 16 42 303 301(outStream.Normal) 185 365306(outStream.Color): 299(ptr) Variable Output 366 307: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 308 22 26 283 16 42 308 306(outStream.Color) 185 367311(outStream.ViewVec): 299(ptr) Variable Output 368 312: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 313 22 26 283 16 42 313 311(outStream.ViewVec) 185 369316(outStream.LightVec): 299(ptr) Variable Output 370 317: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 318 22 26 283 16 42 318 316(outStream.LightVec) 185 371 327: 11(int) Constant 78 372 330: TypeArray 18(fvec4) 17 373 331: TypePointer Input 330 374 332(input.Pos): 331(ptr) Variable Input 375 333: TypePointer Input 18(fvec4) 376 337: TypeArray 21(fvec3) 17 377 338: TypePointer Input 337 378339(input.Normal): 338(ptr) Variable Input 379 340: TypePointer Input 21(fvec3) 380344(input.Color): 338(ptr) Variable Input 381 367: TypePointer Input 11(int) 382368(InvocationID): 367(ptr) Variable Input 383371(PrimitiveID): 367(ptr) Variable Input 384 6(main): 4 Function None 5 385 7: Label 386 329(input): 46(ptr) Variable Function 387366(InvocationID): 75(ptr) Variable Function 388370(PrimitiveID): 75(ptr) Variable Function 389 373(outStream): 73(ptr) Variable Function 390 374(param): 46(ptr) Variable Function 391 376(param): 73(ptr) Variable Function 392 377(param): 75(ptr) Variable Function 393 379(param): 75(ptr) Variable Function 394 334: 333(ptr) AccessChain 332(input.Pos) 118 395 335: 18(fvec4) Load 334 396 336: 210(ptr) AccessChain 329(input) 118 118 397 Store 336 335 398 341: 340(ptr) AccessChain 339(input.Normal) 118 399 342: 21(fvec3) Load 341 400 343: 150(ptr) AccessChain 329(input) 118 149 401 Store 343 342 402 345: 340(ptr) AccessChain 344(input.Color) 118 403 346: 21(fvec3) Load 345 404 347: 150(ptr) AccessChain 329(input) 118 206 405 Store 347 346 406 348: 333(ptr) AccessChain 332(input.Pos) 149 407 349: 18(fvec4) Load 348 408 350: 210(ptr) AccessChain 329(input) 149 118 409 Store 350 349 410 351: 340(ptr) AccessChain 339(input.Normal) 149 411 352: 21(fvec3) Load 351 412 353: 150(ptr) AccessChain 329(input) 149 149 413 Store 353 352 414 354: 340(ptr) AccessChain 344(input.Color) 149 415 355: 21(fvec3) Load 354 416 356: 150(ptr) AccessChain 329(input) 149 206 417 Store 356 355 418 357: 333(ptr) AccessChain 332(input.Pos) 206 419 358: 18(fvec4) Load 357 420 359: 210(ptr) AccessChain 329(input) 206 118 421 Store 359 358 422 360: 340(ptr) AccessChain 339(input.Normal) 206 423 361: 21(fvec3) Load 360 424 362: 150(ptr) AccessChain 329(input) 206 149 425 Store 362 361 426 363: 340(ptr) AccessChain 344(input.Color) 206 427 364: 21(fvec3) Load 363 428 365: 150(ptr) AccessChain 329(input) 206 206 429 Store 365 364 430 369: 11(int) Load 368(InvocationID) 431 Store 366(InvocationID) 369 432 372: 11(int) Load 371(PrimitiveID) 433 Store 370(PrimitiveID) 372 434 375: 44 Load 329(input) 435 Store 374(param) 375 436 378: 11(int) Load 366(InvocationID) 437 Store 377(param) 378 438 380: 11(int) Load 370(PrimitiveID) 439 Store 379(param) 380 440 381: 4 FunctionCall 83(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 374(param) 376(param) 377(param) 379(param) 441 382:49(GSOutput) Load 376(param) 442 Store 373(outStream) 382 443 Return 444 FunctionEnd 44583(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 4 Function None 77 446 79(input): 46(ptr) FunctionParameter 447 80(outStream): 73(ptr) FunctionParameter 44881(InvocationID): 75(ptr) FunctionParameter 449 82(PrimitiveID): 75(ptr) FunctionParameter 450 84: Label 451 112(i): 110(ptr) Variable Function 452 135(output): 73(ptr) Variable Function 453 212(pos): 210(ptr) Variable Function 454 221(worldPos): 210(ptr) Variable Function 455 232(lPos): 150(ptr) Variable Function 456 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 86 457 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 41 41 16 16 458 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 87 79(input) 90 459 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 93 80(outStream) 90 460 99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 97 81(InvocationID) 90 461 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 100 82(PrimitiveID) 90 462 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 86 83(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 463 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 104 464 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 105 105 16 16 465 115: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 113 112(i) 90 466 Store 112(i) 118 467 Branch 119 468 119: Label 469 123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 104 470 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 105 105 16 16 471 LoopMerge 121 122 None 472 Branch 125 473 125: Label 474 127: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 104 475 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 105 105 16 16 476 126: 107(int) Load 112(i) 477 133: 130(bool) SLessThan 126 129 478 BranchConditional 133 120 121 479 120: Label 480 140: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 134 481 141: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 138 138 16 16 482 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 136 135(output) 90 483 Store 135(output) 145 484 147: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 148 148 16 16 485 146: 107(int) Load 112(i) 486 152: 150(ptr) AccessChain 79(input) 146 149 487 153: 21(fvec3) Load 152 488 186: 11(int) Load 81(InvocationID) 489 189: 187(ptr) AccessChain 182 118 149 186 490 190: 154 Load 189 491 193: 18(fvec4) CompositeExtract 190 0 492 194: 21(fvec3) VectorShuffle 193 193 0 1 2 493 195: 18(fvec4) CompositeExtract 190 1 494 196: 21(fvec3) VectorShuffle 195 195 0 1 2 495 197: 18(fvec4) CompositeExtract 190 2 496 198: 21(fvec3) VectorShuffle 197 197 0 1 2 497 199: 191 CompositeConstruct 194 196 198 498 200: 21(fvec3) VectorTimesMatrix 153 199 499 201: 150(ptr) AccessChain 135(output) 129 500 Store 201 200 501 204: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 205 205 16 16 502 203: 107(int) Load 112(i) 503 207: 150(ptr) AccessChain 79(input) 203 206 504 208: 21(fvec3) Load 207 505 209: 150(ptr) AccessChain 135(output) 202 506 Store 209 208 507 217: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 215 215 16 16 508 216: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 213 212(pos) 90 509 218: 107(int) Load 112(i) 510 219: 210(ptr) AccessChain 79(input) 218 118 511 220: 18(fvec4) Load 219 512 Store 212(pos) 220 513 226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 224 224 16 16 514 225: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 222 221(worldPos) 90 515 227: 18(fvec4) Load 212(pos) 516 228: 11(int) Load 81(InvocationID) 517 229: 187(ptr) AccessChain 182 118 149 228 518 230: 154 Load 229 519 231: 18(fvec4) VectorTimesMatrix 227 230 520 Store 221(worldPos) 231 521 237: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 235 235 16 16 522 236: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 233 232(lPos) 90 523 240: 238(ptr) AccessChain 182 118 206 524 241: 18(fvec4) Load 240 525 242: 11(int) Load 81(InvocationID) 526 243: 187(ptr) AccessChain 182 118 149 242 527 244: 154 Load 243 528 245: 18(fvec4) VectorTimesMatrix 241 244 529 246: 21(fvec3) VectorShuffle 245 245 0 1 2 530 Store 232(lPos) 246 531 249: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 250 250 16 16 532 248: 21(fvec3) Load 232(lPos) 533 251: 18(fvec4) Load 221(worldPos) 534 252: 21(fvec3) VectorShuffle 251 251 0 1 2 535 253: 21(fvec3) FSub 248 252 536 254: 150(ptr) AccessChain 135(output) 247 537 Store 254 253 538 257: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 258 258 16 16 539 256: 18(fvec4) Load 221(worldPos) 540 259: 21(fvec3) VectorShuffle 256 256 0 1 2 541 260: 21(fvec3) FNegate 259 542 261: 150(ptr) AccessChain 135(output) 255 543 Store 261 260 544 263: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 264 264 16 16 545 262: 18(fvec4) Load 221(worldPos) 546 265: 11(int) Load 81(InvocationID) 547 266: 187(ptr) AccessChain 182 118 118 265 548 267: 154 Load 266 549 268: 18(fvec4) VectorTimesMatrix 262 267 550 269: 210(ptr) AccessChain 135(output) 118 551 Store 269 268 552 271: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 272 272 16 16 553 270: 11(int) Load 81(InvocationID) 554 273: 75(ptr) AccessChain 135(output) 149 555 Store 273 270 556 275: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 276 276 16 16 557 274: 11(int) Load 82(PrimitiveID) 558 277: 75(ptr) AccessChain 135(output) 206 559 Store 277 274 560 285: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 283 283 16 16 561 284: 210(ptr) AccessChain 135(output) 118 562 286: 18(fvec4) Load 284 563 Store 280(outStream.Pos) 286 564 292: 75(ptr) AccessChain 135(output) 149 565 293: 11(int) Load 292 566 Store 289(outStream.ViewportIndex) 293 567 297: 75(ptr) AccessChain 135(output) 206 568 298: 11(int) Load 297 569 Store 294(outStream.PrimitiveID) 298 570 304: 150(ptr) AccessChain 135(output) 129 571 305: 21(fvec3) Load 304 572 Store 301(outStream.Normal) 305 573 309: 150(ptr) AccessChain 135(output) 202 574 310: 21(fvec3) Load 309 575 Store 306(outStream.Color) 310 576 314: 150(ptr) AccessChain 135(output) 255 577 315: 21(fvec3) Load 314 578 Store 311(outStream.ViewVec) 315 579 319: 150(ptr) AccessChain 135(output) 247 580 320: 21(fvec3) Load 319 581 Store 316(outStream.LightVec) 320 582 EmitVertex 583 Branch 122 584 122: Label 585 322: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 104 586 323: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 105 105 16 16 587 321: 107(int) Load 112(i) 588 324: 107(int) IAdd 321 149 589 Store 112(i) 324 590 Branch 119 591 121: Label 592 325: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 103 593 326: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 327 327 16 16 594 EndPrimitive 595 328: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 86 596 Return 597 FunctionEnd