diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp index 0fd79b1a..dc0a4f9f 100755 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp @@ -5518,12 +5518,16 @@ void TGlslangToSpvTraverser::makeFunctions(const glslang::TIntermSequence& glslF glslang::TIntermAggregate* glslFunction = glslFunctions[f]->getAsAggregate(); if (! glslFunction || glslFunction->getOp() != glslang::EOpFunction) continue; + + builder.setDebugSourceLocation(glslFunction->getLoc().line, glslFunction->getLoc().getFilename()); + if (isShaderEntryPoint(glslFunction)) { + // For HLSL, the entry function is actually a compiler generated function to resolve the difference of + // entry function signature between HLSL and SPIR-V. So we don't emit debug information for that. if (glslangIntermediate->getSource() != glslang::EShSourceHlsl) { - builder.setupDebugFunctionEntry(shaderEntry, glslangIntermediate->getEntryPointMangledName().c_str(), - glslFunction->getLoc().line, - std::vector(), // main function has no param - std::vector()); + builder.setupFunctionDebugInfo(shaderEntry, glslangIntermediate->getEntryPointMangledName().c_str(), + std::vector(), // main function has no param + std::vector()); } continue; } @@ -5576,8 +5580,7 @@ void TGlslangToSpvTraverser::makeFunctions(const glslang::TIntermSequence& glslF TranslatePrecisionDecoration(glslFunction->getType()), convertGlslangToSpvType(glslFunction->getType()), glslFunction->getName().c_str(), convertGlslangLinkageToSpv(glslFunction->getLinkType()), paramTypes, paramDecorations, &functionBlock); - builder.setupDebugFunctionEntry(function, glslFunction->getName().c_str(), glslFunction->getLoc().line, - paramTypes, paramNames); + builder.setupFunctionDebugInfo(function, glslFunction->getName().c_str(), paramTypes, paramNames); if (implicitThis) function->setImplicitThis(); diff --git a/SPIRV/SpvBuilder.cpp b/SPIRV/SpvBuilder.cpp index 738c9169..def3fa2e 100644 --- a/SPIRV/SpvBuilder.cpp +++ b/SPIRV/SpvBuilder.cpp @@ -2236,14 +2236,13 @@ Function* Builder::makeFunctionEntry(Decoration precision, Id returnType, const return function; } -void Builder::setupDebugFunctionEntry(Function* function, const char* name, int line, const std::vector& paramTypes, - const std::vector& paramNames) +void Builder::setupFunctionDebugInfo(Function* function, const char* name, const std::vector& paramTypes, + const std::vector& paramNames) { if (!emitNonSemanticShaderDebugInfo) return; - currentLine = line; Id nameId = getStringId(unmangleFunctionName(name)); Id funcTypeId = function->getFuncTypeId(); assert(debugId[funcTypeId] != 0); diff --git a/SPIRV/SpvBuilder.h b/SPIRV/SpvBuilder.h index ab4d5abe..f86dd81b 100644 --- a/SPIRV/SpvBuilder.h +++ b/SPIRV/SpvBuilder.h @@ -247,9 +247,12 @@ public: Id makeDebugFunction(Function* function, Id nameId, Id funcTypeId); Id makeDebugLexicalBlock(uint32_t line); std::string unmangleFunctionName(std::string const& name) const; - void setupDebugFunctionEntry(Function* function, const char* name, int line, - const std::vector& paramTypes, - const std::vector& paramNames); + + // Initialize non-semantic debug information for a function, including those of: + // - The function definition + // - The function parameters + void setupFunctionDebugInfo(Function* function, const char* name, const std::vector& paramTypes, + const std::vector& paramNames); // accelerationStructureNV type Id makeAccelerationStructureType(); diff --git a/Test/baseResults/hlsl.pp.line2.frag.out b/Test/baseResults/hlsl.pp.line2.frag.out index 48697a6e..0d8131ca 100644 --- a/Test/baseResults/hlsl.pp.line2.frag.out +++ b/Test/baseResults/hlsl.pp.line2.frag.out @@ -9,7 +9,7 @@ hlsl.pp.line2.frag EntryPoint Fragment 5 "MainPs" 71 75 ExecutionMode 5 OriginUpperLeft 1: String "hlsl.pp.line2.frag" - 17: String "foo.frag" + 7: String "foo.frag" 32: String "foo.h" 42: String "foo2.h" Source HLSL 500 1 "// OpModuleProcessed auto-map-locations @@ -62,12 +62,12 @@ PS_OUTPUT MainPs ( PS_INPUT i ) " Name 5 "MainPs" - Name 9 "PS_INPUT" - MemberName 9(PS_INPUT) 0 "vTextureCoords" - Name 12 "PS_OUTPUT" - MemberName 12(PS_OUTPUT) 0 "vColor" - Name 15 "@MainPs(struct-PS_INPUT-vf21;" - Name 14 "i" + Name 10 "PS_INPUT" + MemberName 10(PS_INPUT) 0 "vTextureCoords" + Name 13 "PS_OUTPUT" + MemberName 13(PS_OUTPUT) 0 "vColor" + Name 16 "@MainPs(struct-PS_INPUT-vf21;" + Name 15 "i" Name 19 "PerViewConstantBuffer_t" MemberName 19(PerViewConstantBuffer_t) 0 "g_nDataIdx" MemberName 19(PerViewConstantBuffer_t) 1 "g_nDataIdx2" @@ -93,13 +93,13 @@ PS_OUTPUT MainPs ( PS_INPUT i ) Decorate 75(@entryPointOutput.vColor) Location 0 3: TypeVoid 4: TypeFunction 3 - 7: TypeFloat 32 - 8: TypeVector 7(float) 2 - 9(PS_INPUT): TypeStruct 8(fvec2) - 10: TypePointer Function 9(PS_INPUT) - 11: TypeVector 7(float) 4 - 12(PS_OUTPUT): TypeStruct 11(fvec4) - 13: TypeFunction 12(PS_OUTPUT) 10(ptr) + 8: TypeFloat 32 + 9: TypeVector 8(float) 2 + 10(PS_INPUT): TypeStruct 9(fvec2) + 11: TypePointer Function 10(PS_INPUT) + 12: TypeVector 8(float) 4 + 13(PS_OUTPUT): TypeStruct 12(fvec4) + 14: TypeFunction 13(PS_OUTPUT) 11(ptr) 18: TypeInt 32 0 19(PerViewConstantBuffer_t): TypeStruct 18(int) 18(int) 18(int) 20: TypePointer PushConstant 19(PerViewConstantBuffer_t) @@ -112,8 +112,8 @@ PS_OUTPUT MainPs ( PS_INPUT i ) 33: TypePointer Function 18(int) 35: 22(int) Constant 0 39: 22(int) Constant 1 - 43: TypePointer Function 12(PS_OUTPUT) - 45: TypeImage 7(float) 2D sampled format:Unknown + 43: TypePointer Function 13(PS_OUTPUT) + 45: TypeImage 8(float) 2D sampled format:Unknown 46: 18(int) Constant 128 47: TypeArray 45 46 48: TypePointer UniformConstant 47 @@ -123,35 +123,35 @@ PS_OUTPUT MainPs ( PS_INPUT i ) 55: TypePointer UniformConstant 54 56(g_sAniso): 55(ptr) Variable UniformConstant 58: TypeSampledImage 45 - 60: TypePointer Function 8(fvec2) - 64: TypePointer Function 11(fvec4) - 70: TypePointer Input 8(fvec2) + 60: TypePointer Function 9(fvec2) + 64: TypePointer Function 12(fvec4) + 70: TypePointer Input 9(fvec2) 71(i.vTextureCoords): 70(ptr) Variable Input - 74: TypePointer Output 11(fvec4) + 74: TypePointer Output 12(fvec4) 75(@entryPointOutput.vColor): 74(ptr) Variable Output - Line 17 23 1 + Line 7 23 1 5(MainPs): 3 Function None 4 6: Label - 69(i): 10(ptr) Variable Function - 76(param): 10(ptr) Variable Function - Line 17 23 0 - 72: 8(fvec2) Load 71(i.vTextureCoords) + 69(i): 11(ptr) Variable Function + 76(param): 11(ptr) Variable Function + Line 7 23 0 + 72: 9(fvec2) Load 71(i.vTextureCoords) 73: 60(ptr) AccessChain 69(i) 35 Store 73 72 - 77: 9(PS_INPUT) Load 69(i) + 77:10(PS_INPUT) Load 69(i) Store 76(param) 77 - 78:12(PS_OUTPUT) FunctionCall 15(@MainPs(struct-PS_INPUT-vf21;) 76(param) - 79: 11(fvec4) CompositeExtract 78 0 + 78:13(PS_OUTPUT) FunctionCall 16(@MainPs(struct-PS_INPUT-vf21;) 76(param) + 79: 12(fvec4) CompositeExtract 78 0 Store 75(@entryPointOutput.vColor) 79 Return FunctionEnd - Line 17 23 1 -15(@MainPs(struct-PS_INPUT-vf21;):12(PS_OUTPUT) Function None 13 - 14(i): 10(ptr) FunctionParameter - 16: Label + Line 7 23 1 +16(@MainPs(struct-PS_INPUT-vf21;):13(PS_OUTPUT) Function None 14 + 15(i): 11(ptr) FunctionParameter + 17: Label 34(u): 33(ptr) Variable Function 44(ps_output): 43(ptr) Variable Function - Line 17 47 0 + Line 7 47 0 25: 24(ptr) AccessChain 21 23 26: 18(int) Load 25 29: 27(bool) INotEqual 26 28 @@ -176,12 +176,12 @@ PS_OUTPUT MainPs ( PS_INPUT i ) 53: 45 Load 52 57: 54 Load 56(g_sAniso) 59: 58 SampledImage 53 57 - 61: 60(ptr) AccessChain 14(i) 35 - 62: 8(fvec2) Load 61 - 63: 11(fvec4) ImageSampleImplicitLod 59 62 + 61: 60(ptr) AccessChain 15(i) 35 + 62: 9(fvec2) Load 61 + 63: 12(fvec4) ImageSampleImplicitLod 59 62 65: 64(ptr) AccessChain 44(ps_output) 35 Store 65 63 Line 42 105 0 - 66:12(PS_OUTPUT) Load 44(ps_output) + 66:13(PS_OUTPUT) Load 44(ps_output) ReturnValue 66 FunctionEnd diff --git a/Test/baseResults/hlsl.pp.line4.frag.out b/Test/baseResults/hlsl.pp.line4.frag.out index af2ac0fe..aeca142a 100644 --- a/Test/baseResults/hlsl.pp.line4.frag.out +++ b/Test/baseResults/hlsl.pp.line4.frag.out @@ -9,7 +9,7 @@ hlsl.pp.line4.frag EntryPoint Fragment 5 "MainPs" 70 74 ExecutionMode 5 OriginUpperLeft 1: String "hlsl.pp.line4.frag" - 17: String "C:\\Users\\Greg\\shaders\\line\\foo4.frag" + 7: String "C:\\Users\\Greg\\shaders\\line\\foo4.frag" 32: String "C:\\Users\\Greg\\shaders\\line\\u1.h" Source HLSL 500 1 "// OpModuleProcessed auto-map-locations // OpModuleProcessed auto-map-bindings @@ -84,9 +84,9 @@ PS_OUTPUT MainPs ( PS_INPUT i ) Decorate 74(@entryPointOutput.vColor) Location 0 3: TypeVoid 4: TypeFunction 3 - 7: TypeFloat 32 - 8: TypeVector 7(float) 2 - 11: TypeVector 7(float) 4 + 8: TypeFloat 32 + 9: TypeVector 8(float) 2 + 12: TypeVector 8(float) 4 18: TypeInt 32 0 19(PerViewConstantBuffer_t): TypeStruct 18(int) 18(int) 18(int) 20: TypePointer PushConstant 19(PerViewConstantBuffer_t) @@ -98,7 +98,7 @@ PS_OUTPUT MainPs ( PS_INPUT i ) 28: 18(int) Constant 0 35: 22(int) Constant 0 39: 22(int) Constant 1 - 44: TypeImage 7(float) 2D sampled format:Unknown + 44: TypeImage 8(float) 2D sampled format:Unknown 45: 18(int) Constant 128 46: TypeArray 44 45 47: TypePointer UniformConstant 46 @@ -108,17 +108,17 @@ PS_OUTPUT MainPs ( PS_INPUT i ) 54: TypePointer UniformConstant 53 55(g_sAniso): 54(ptr) Variable UniformConstant 57: TypeSampledImage 44 - 69: TypePointer Input 8(fvec2) + 69: TypePointer Input 9(fvec2) 70(i.vTextureCoords): 69(ptr) Variable Input - 73: TypePointer Output 11(fvec4) + 73: TypePointer Output 12(fvec4) 74(@entryPointOutput.vColor): 73(ptr) Variable Output - Line 17 25 1 + Line 7 25 1 5(MainPs): 3 Function None 4 NoLine 6: Label - Line 17 25 0 - 71: 8(fvec2) Load 70(i.vTextureCoords) - Line 17 29 0 + Line 7 25 0 + 71: 9(fvec2) Load 70(i.vTextureCoords) + Line 7 29 0 83: 24(ptr) AccessChain 21 23 84: 18(int) Load 83 85: 27(bool) INotEqual 84 28 @@ -130,19 +130,19 @@ PS_OUTPUT MainPs ( PS_INPUT i ) 88: 18(int) Load 87 Branch 92 89: Label - Line 17 32 0 + Line 7 32 0 90: 24(ptr) AccessChain 21 39 91: 18(int) Load 90 Branch 92 92: Label 115: 18(int) Phi 88 86 91 89 - Line 17 33 0 + Line 7 33 0 94: 50(ptr) AccessChain 48(g_tColor) 115 95: 44 Load 94 96: 53 Load 55(g_sAniso) 97: 57 SampledImage 95 96 - 100: 11(fvec4) ImageSampleImplicitLod 97 71 - Line 17 25 0 + 100: 12(fvec4) ImageSampleImplicitLod 97 71 + Line 7 25 0 Store 74(@entryPointOutput.vColor) 100 Return FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.glsl.frag.out b/Test/baseResults/spv.debuginfo.glsl.frag.out index b2370599..cf30e573 100644 --- a/Test/baseResults/spv.debuginfo.glsl.frag.out +++ b/Test/baseResults/spv.debuginfo.glsl.frag.out @@ -223,29 +223,29 @@ void main() 56: String "offset" 64: String "filterPCF" 68: String "sc" - 83: String "shadow" - 87: String "fragcolor" - 91: String "fragpos" - 93: String "main" - 97: String "int" - 103: String "global_var" - 118: String "shadowCoord" - 140: String "bool" - 161: String "dist" - 168: String "type.2d.image" - 169: String "@type.2d.image" - 173: String "type.sampled.image" - 174: String "@type.sampled.image" - 179: String "samplerShadowMap" - 229: String "texDim" - 241: String "scale" - 248: String "dx" - 262: String "dy" - 274: String "shadowFactor" - 280: String "count" - 286: String "range" - 293: String "x" - 313: String "y" + 84: String "shadow" + 88: String "fragcolor" + 93: String "fragpos" + 95: String "main" + 99: String "int" + 105: String "global_var" + 120: String "shadowCoord" + 142: String "bool" + 163: String "dist" + 170: String "type.2d.image" + 171: String "@type.2d.image" + 175: String "type.sampled.image" + 176: String "@type.sampled.image" + 181: String "samplerShadowMap" + 230: String "texDim" + 242: String "scale" + 249: String "dx" + 263: String "dy" + 275: String "shadowFactor" + 281: String "count" + 287: String "range" + 294: String "x" + 314: String "y" 379: String "i" 397: String "shadowClip" 407: String "color" @@ -286,26 +286,26 @@ void main() Name 62 "filterPCF(vf4;f1;" Name 60 "sc" Name 61 "layer" - Name 81 "shadow(vf3;vf3;" - Name 79 "fragcolor" - Name 80 "fragpos" - Name 101 "global_var" - Name 110 "shadow" - Name 116 "shadowCoord" - Name 159 "dist" - Name 177 "samplerShadowMap" - Name 227 "texDim" - Name 239 "scale" - Name 246 "dx" - Name 260 "dy" - Name 272 "shadowFactor" - Name 278 "count" - Name 284 "range" - Name 291 "x" - Name 311 "y" - Name 344 "param" - Name 346 "param" - Name 348 "param" + Name 82 "shadow(vf3;vf3;" + Name 80 "fragcolor" + Name 81 "fragpos" + Name 103 "global_var" + Name 112 "shadow" + Name 118 "shadowCoord" + Name 161 "dist" + Name 179 "samplerShadowMap" + Name 228 "texDim" + Name 240 "scale" + Name 247 "dx" + Name 261 "dy" + Name 273 "shadowFactor" + Name 279 "count" + Name 285 "range" + Name 292 "x" + Name 312 "y" + Name 345 "param" + Name 347 "param" + Name 349 "param" Name 377 "i" Name 395 "shadowClip" Name 405 "Light" @@ -352,8 +352,8 @@ void main() Name 814 "spec" Name 861 "param" Name 866 "param" - Decorate 177(samplerShadowMap) Binding 5 - Decorate 177(samplerShadowMap) DescriptorSet 0 + Decorate 179(samplerShadowMap) Binding 5 + Decorate 179(samplerShadowMap) DescriptorSet 0 MemberDecorate 405(Light) 0 Offset 0 MemberDecorate 405(Light) 1 Offset 16 MemberDecorate 405(Light) 2 Offset 32 @@ -416,93 +416,93 @@ void main() 66: 7(int) Constant 76 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 64 59 41 66 12 44 64 13 66 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 68 21 41 66 12 65 20 45 - 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 18 41 66 12 65 20 28 - 73: TypeVector 16(float) 3 - 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 13 - 75: TypePointer Function 73(fvec3) - 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 74 23 12 - 77: TypeFunction 73(fvec3) 75(ptr) 75(ptr) - 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 74 74 74 - 85: 7(int) Constant 99 - 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 83 78 41 85 12 44 83 13 85 - 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 74 41 85 12 84 20 45 - 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 91 74 41 85 12 84 20 28 - 95: 7(int) Constant 116 - 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 93 6 41 95 12 44 93 13 95 - 96: TypeInt 32 1 - 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 97 10 20 12 - 99: TypePointer Private 96(int) - 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 98 11 12 - 101(global_var): 99(ptr) Variable Private - 104: 7(int) Constant 41 - 105: 7(int) Constant 8 - 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 103 98 41 104 12 44 103 101(global_var) 105 - 106: 96(int) Constant 0 - 112: 7(int) Constant 61 - 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 18 41 112 12 40 20 - 115: 16(float) Constant 1065353216 - 119: 7(int) Constant 62 - 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 118 21 41 119 12 40 20 - 129: 7(int) Constant 63 - 131: 16(float) Constant 1056964608 - 139: TypeBool - 141: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 140 10 28 12 - 144: 7(int) Constant 65 - 146: 16(float) Constant 3212836864 - 162: 7(int) Constant 67 - 160: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 161 18 41 162 12 40 20 - 166: TypeImage 16(float) 2D array sampled format:Unknown - 170: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 168 12 41 162 12 44 169 170 13 - 171: TypeSampledImage 166 - 172: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 173 12 41 162 12 44 174 170 13 - 175: TypePointer UniformConstant 171 - 176: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 172 12 12 -177(samplerShadowMap): 175(ptr) Variable UniformConstant - 178: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 179 172 41 162 12 44 179 177(samplerShadowMap) 105 - 193: 7(int) Constant 68 - 195: 16(float) Constant 0 - 209: 16(float) Constant 1048576000 - 212: 7(int) Constant 70 - 217: 7(int) Constant 73 - 223: TypeVector 96(int) 2 - 224: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 98 28 - 225: TypePointer Function 223(ivec2) - 226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 224 23 12 - 230: 7(int) Constant 78 - 228: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 229 224 41 230 12 65 20 - 235: TypeVector 96(int) 3 - 236: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 98 13 - 242: 7(int) Constant 79 - 240: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 241 18 41 242 12 65 20 - 245: 16(float) Constant 1069547520 - 249: 7(int) Constant 80 - 247: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 248 18 41 249 12 65 20 - 254: TypePointer Function 96(int) - 255: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 98 23 12 - 263: 7(int) Constant 81 - 261: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 262 18 41 263 12 65 20 - 275: 7(int) Constant 83 - 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 274 18 41 275 12 65 20 - 281: 7(int) Constant 84 - 279: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 280 98 41 281 12 65 20 - 287: 7(int) Constant 85 - 285: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 286 98 41 287 12 65 20 - 290: 96(int) Constant 1 - 294: 7(int) Constant 87 - 292: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 293 98 41 294 12 65 20 - 314: 7(int) Constant 89 - 312: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 313 98 41 314 12 65 20 - 335: 7(int) Constant 91 - 354: 7(int) Constant 92 - 368: 7(int) Constant 96 + 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 18 41 66 12 65 20 28 + 74: TypeVector 16(float) 3 + 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 13 + 76: TypePointer Function 74(fvec3) + 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 75 23 12 + 78: TypeFunction 74(fvec3) 76(ptr) 76(ptr) + 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 75 75 75 + 86: 7(int) Constant 99 + 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 84 79 41 86 12 44 84 13 86 + 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 75 41 86 12 85 20 45 + 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 75 41 86 12 85 20 28 + 97: 7(int) Constant 116 + 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 95 6 41 97 12 44 95 13 97 + 98: TypeInt 32 1 + 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 99 10 20 12 + 101: TypePointer Private 98(int) + 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 100 11 12 + 103(global_var): 101(ptr) Variable Private + 106: 7(int) Constant 41 + 107: 7(int) Constant 8 + 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 105 100 41 106 12 44 105 103(global_var) 107 + 108: 98(int) Constant 0 + 114: 7(int) Constant 61 + 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 84 18 41 114 12 40 20 + 117: 16(float) Constant 1065353216 + 121: 7(int) Constant 62 + 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 120 21 41 121 12 40 20 + 131: 7(int) Constant 63 + 133: 16(float) Constant 1056964608 + 141: TypeBool + 143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 142 10 28 12 + 146: 7(int) Constant 65 + 148: 16(float) Constant 3212836864 + 164: 7(int) Constant 67 + 162: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 163 18 41 164 12 40 20 + 168: TypeImage 16(float) 2D array sampled format:Unknown + 172: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) + 169: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 170 12 41 164 12 44 171 172 13 + 173: TypeSampledImage 168 + 174: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 175 12 41 164 12 44 176 172 13 + 177: TypePointer UniformConstant 173 + 178: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 174 12 12 +179(samplerShadowMap): 177(ptr) Variable UniformConstant + 180: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 181 174 41 164 12 44 181 179(samplerShadowMap) 107 + 195: 7(int) Constant 68 + 197: 16(float) Constant 0 + 211: 16(float) Constant 1048576000 + 214: 7(int) Constant 70 + 219: 7(int) Constant 73 + 224: TypeVector 98(int) 2 + 225: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 100 28 + 226: TypePointer Function 224(ivec2) + 227: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 225 23 12 + 231: 7(int) Constant 78 + 229: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 230 225 41 231 12 65 20 + 236: TypeVector 98(int) 3 + 237: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 100 13 + 243: 7(int) Constant 79 + 241: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 242 18 41 243 12 65 20 + 246: 16(float) Constant 1069547520 + 250: 7(int) Constant 80 + 248: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 249 18 41 250 12 65 20 + 255: TypePointer Function 98(int) + 256: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 100 23 12 + 264: 7(int) Constant 81 + 262: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 263 18 41 264 12 65 20 + 276: 7(int) Constant 83 + 274: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 275 18 41 276 12 65 20 + 282: 7(int) Constant 84 + 280: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 281 100 41 282 12 65 20 + 288: 7(int) Constant 85 + 286: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 287 100 41 288 12 65 20 + 291: 98(int) Constant 1 + 295: 7(int) Constant 87 + 293: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 294 100 41 295 12 65 20 + 315: 7(int) Constant 89 + 313: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 314 100 41 315 12 65 20 + 336: 7(int) Constant 91 + 355: 7(int) Constant 92 + 369: 7(int) Constant 96 380: 7(int) Constant 100 - 378: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 379 98 41 380 12 84 20 - 393: 96(int) Constant 3 + 378: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 379 100 41 380 12 85 20 + 393: 98(int) Constant 3 398: 7(int) Constant 102 - 396: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 397 21 41 398 12 84 20 + 396: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 397 21 41 398 12 85 20 402: TypeMatrix 19(fvec4) 4 - 404: 139(bool) ConstantTrue + 404: 141(bool) ConstantTrue 403: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 21 20 404 405(Light): TypeStruct 19(fvec4) 19(fvec4) 19(fvec4) 402 408: 7(int) Constant 47 @@ -514,56 +514,56 @@ void main() 414: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 415 45 41 398 12 44 415 12 13 406 409 410 411 416: TypeArray 405(Light) 13 417: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 414 13 - 418(UBO): TypeStruct 19(fvec4) 416 96(int) 96(int) + 418(UBO): TypeStruct 19(fvec4) 416 98(int) 98(int) 419: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 407 21 41 408 23 12 12 13 422: 7(int) Constant 54 - 420: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 421 417 41 422 105 12 12 13 + 420: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 421 417 41 422 107 12 12 13 425: 7(int) Constant 56 - 423: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 424 98 41 425 11 12 12 13 - 426: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 424 98 41 425 11 12 12 13 + 423: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 424 100 41 425 11 12 12 13 + 426: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 424 100 41 425 11 12 12 13 427: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 428 45 41 398 12 44 428 12 13 419 420 423 426 429: TypePointer Uniform 418(UBO) 430: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 427 28 12 431(ubo): 429(ptr) Variable Uniform - 432: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 433 427 41 398 12 44 433 431(ubo) 105 + 432: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 433 427 41 398 12 44 433 431(ubo) 107 435: TypePointer Uniform 402 436: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 403 28 12 447: 7(int) Constant 106 - 446: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 274 18 41 447 12 84 20 + 446: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 275 18 41 447 12 85 20 458: 7(int) Constant 111 468: 7(int) Constant 113 478: 7(int) Constant 119 - 476: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 477 74 41 478 12 94 20 + 476: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 477 75 41 478 12 96 20 481: TypeImage 16(float) 2D sampled format:Unknown - 482: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 168 12 41 478 12 44 169 170 13 + 482: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 170 12 41 478 12 44 171 172 13 483: TypeSampledImage 481 - 484: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 173 12 41 478 12 44 174 170 13 + 484: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 175 12 41 478 12 44 176 172 13 485: TypePointer UniformConstant 483 486: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 484 12 12 487(samplerposition): 485(ptr) Variable UniformConstant - 488: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 489 484 41 478 12 44 489 487(samplerposition) 105 + 488: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 489 484 41 478 12 44 489 487(samplerposition) 107 491: TypePointer Input 27(fvec2) 492: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 45 12 493(inUV): 491(ptr) Variable Input - 494: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 495 29 41 478 12 44 495 493(inUV) 105 + 494: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 495 29 41 478 12 44 495 493(inUV) 107 502: 7(int) Constant 120 - 500: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 501 74 41 502 12 94 20 + 500: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 501 75 41 502 12 96 20 505(samplerNormal): 485(ptr) Variable UniformConstant - 506: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 507 484 41 502 12 44 507 505(samplerNormal) 105 + 506: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 507 484 41 502 12 44 507 505(samplerNormal) 107 515: 7(int) Constant 121 - 513: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 514 21 41 515 12 94 20 + 513: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 514 21 41 515 12 96 20 518(samplerAlbedo): 485(ptr) Variable UniformConstant - 519: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 520 484 41 515 12 44 520 518(samplerAlbedo) 105 - 524: TypePointer Uniform 96(int) - 525: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 98 28 12 + 519: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 520 484 41 515 12 44 520 518(samplerAlbedo) 107 + 524: TypePointer Uniform 98(int) + 525: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 100 28 12 528: 7(int) Constant 124 536: 7(int) Constant 125 544: TypePointer Output 19(fvec4) 545: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 21 13 12 546(outFragColor): 544(ptr) Variable Output 549: 7(int) Constant 127 - 547: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 548 21 41 549 12 44 548 546(outFragColor) 105 - 550: 73(fvec3) ConstantComposite 115 115 115 + 547: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 548 21 41 549 12 44 548 546(outFragColor) 107 + 550: 74(fvec3) ConstantComposite 117 117 117 557: TypePointer Output 16(float) 558: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 18 13 12 566: 7(int) Constant 128 @@ -578,102 +578,102 @@ void main() 631: 7(int) Constant 142 633: 7(int) Constant 143 638: 7(int) Constant 147 - 637: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 74 41 638 12 94 20 + 637: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 75 41 638 12 96 20 644: 16(float) Constant 1036831949 649: 7(int) Constant 149 - 647: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 648 74 41 649 12 94 20 + 647: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 648 75 41 649 12 96 20 656: 7(int) Constant 151 - 655: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 379 98 41 656 12 94 20 + 655: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 379 100 41 656 12 96 20 673: 7(int) Constant 154 - 671: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 672 74 41 673 12 94 20 + 671: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 672 75 41 673 12 96 20 678: TypePointer Uniform 19(fvec4) 679: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 21 28 12 687: 7(int) Constant 156 - 686: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 161 18 41 687 12 94 20 + 686: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 163 18 41 687 12 96 20 694: 7(int) Constant 157 699: 7(int) Constant 160 - 697: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 698 74 41 699 12 94 20 + 697: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 698 75 41 699 12 96 20 709: 7(int) Constant 161 714: 7(int) Constant 163 - 712: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 713 18 41 714 12 94 20 + 712: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 713 18 41 714 12 96 20 717: 16(float) Constant 1064781546 721: 7(int) Constant 164 - 719: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 720 18 41 721 12 94 20 + 719: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 720 18 41 721 12 96 20 724: 16(float) Constant 1063781322 728: 7(int) Constant 165 - 726: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 727 18 41 728 12 94 20 + 726: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 727 18 41 728 12 96 20 731: 16(float) Constant 1120403456 735: 7(int) Constant 168 - 733: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 734 74 41 735 12 94 20 + 733: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 734 75 41 735 12 96 20 751: 7(int) Constant 171 - 749: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 750 18 41 751 12 94 20 + 749: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 750 18 41 751 12 96 20 760: 7(int) Constant 172 - 758: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 759 18 41 760 12 94 20 + 758: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 759 18 41 760 12 96 20 770: 7(int) Constant 173 - 768: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 769 18 41 770 12 94 20 + 768: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 769 18 41 770 12 96 20 779: 7(int) Constant 176 - 777: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 778 18 41 779 12 94 20 + 777: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 778 18 41 779 12 96 20 789: 7(int) Constant 177 - 787: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 788 74 41 789 12 94 20 + 787: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 788 75 41 789 12 96 20 797: 7(int) Constant 180 - 795: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 796 74 41 797 12 94 20 + 795: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 796 75 41 797 12 96 20 807: 7(int) Constant 181 - 805: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 806 18 41 807 12 94 20 + 805: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 806 18 41 807 12 96 20 817: 7(int) Constant 182 - 815: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 816 74 41 817 12 94 20 + 815: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 816 75 41 817 12 96 20 821: 16(float) Constant 1098907648 826: 16(float) Constant 1075838976 831: 7(int) Constant 184 - 839: 96(int) Constant 2 + 839: 98(int) Constant 2 856: 7(int) Constant 188 865: 7(int) Constant 190 872: 7(int) Constant 193 14(main): 4 Function None 5 15: Label - 475(fragPos): 75(ptr) Variable Function - 499(normal): 75(ptr) Variable Function + 475(fragPos): 76(ptr) Variable Function + 499(normal): 76(ptr) Variable Function 512(albedo): 22(ptr) Variable Function - 551(param): 75(ptr) Variable Function - 554(param): 75(ptr) Variable Function - 636(fragcolor): 75(ptr) Variable Function - 646(N): 75(ptr) Variable Function - 654(i): 254(ptr) Variable Function - 670(L): 75(ptr) Variable Function + 551(param): 76(ptr) Variable Function + 554(param): 76(ptr) Variable Function + 636(fragcolor): 76(ptr) Variable Function + 646(N): 76(ptr) Variable Function + 654(i): 255(ptr) Variable Function + 670(L): 76(ptr) Variable Function 685(dist): 25(ptr) Variable Function - 696(V): 75(ptr) Variable Function + 696(V): 76(ptr) Variable Function 711(lightCosInnerAngle): 25(ptr) Variable Function 718(lightCosOuterAngle): 25(ptr) Variable Function 725(lightRange): 25(ptr) Variable Function - 732(dir): 75(ptr) Variable Function + 732(dir): 76(ptr) Variable Function 748(cosDir): 25(ptr) Variable Function 757(spotEffect): 25(ptr) Variable Function 767(heightAttenuation): 25(ptr) Variable Function 776(NdotL): 25(ptr) Variable Function - 786(diff): 75(ptr) Variable Function - 794(R): 75(ptr) Variable Function + 786(diff): 76(ptr) Variable Function + 794(R): 76(ptr) Variable Function 804(NdotR): 25(ptr) Variable Function - 814(spec): 75(ptr) Variable Function - 861(param): 75(ptr) Variable Function - 866(param): 75(ptr) Variable Function - 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44 - 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 104 104 12 12 - Store 101(global_var) 106 - 473: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 - 474: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 95 95 12 12 - 472: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 94 14(main) + 814(spec): 76(ptr) Variable Function + 861(param): 76(ptr) Variable Function + 866(param): 76(ptr) Variable Function + 109: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44 + 110: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 106 106 12 12 + Store 103(global_var) 108 + 473: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 + 474: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 97 97 12 12 + 472: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 96 14(main) 480: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 478 478 12 12 479: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 476 475(fragPos) 49 490: 483 Load 487(samplerposition) 496: 27(fvec2) Load 493(inUV) 497: 19(fvec4) ImageSampleImplicitLod 490 496 - 498: 73(fvec3) VectorShuffle 497 497 0 1 2 + 498: 74(fvec3) VectorShuffle 497 497 0 1 2 Store 475(fragPos) 498 504: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 502 502 12 12 503: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 500 499(normal) 49 508: 483 Load 505(samplerNormal) 509: 27(fvec2) Load 493(inUV) 510: 19(fvec4) ImageSampleImplicitLod 508 509 - 511: 73(fvec3) VectorShuffle 510 510 0 1 2 + 511: 74(fvec3) VectorShuffle 510 510 0 1 2 Store 499(normal) 511 517: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 515 515 12 12 516: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 513 512(albedo) 49 @@ -683,15 +683,15 @@ void main() Store 512(albedo) 523 527: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 528 528 12 12 526: 524(ptr) AccessChain 431(ubo) 393 - 529: 96(int) Load 526 - 530: 139(bool) SGreaterThan 529 106 + 529: 98(int) Load 526 + 530: 141(bool) SGreaterThan 529 108 SelectionMerge 532 None BranchConditional 530 531 532 531: Label - 534: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 534: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 535: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 536 536 12 12 533: 524(ptr) AccessChain 431(ubo) 393 - 537: 96(int) Load 533 + 537: 98(int) Load 533 SelectionMerge 543 None Switch 537 543 case 1: 538 @@ -700,12 +700,12 @@ void main() case 4: 541 case 5: 542 538: Label - 552: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 552: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 553: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 549 549 12 12 Store 551(param) 550 - 555: 73(fvec3) Load 475(fragPos) + 555: 74(fvec3) Load 475(fragPos) Store 554(param) 555 - 556: 73(fvec3) FunctionCall 81(shadow(vf3;vf3;) 551(param) 554(param) + 556: 74(fvec3) FunctionCall 82(shadow(vf3;vf3;) 551(param) 554(param) 559: 557(ptr) AccessChain 546(outFragColor) 12 560: 16(float) CompositeExtract 556 0 Store 559 560 @@ -718,9 +718,9 @@ void main() 565: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 566 566 12 12 Branch 543 539: Label - 570: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 570: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 571: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 572 572 12 12 - 569: 73(fvec3) Load 475(fragPos) + 569: 74(fvec3) Load 475(fragPos) 573: 557(ptr) AccessChain 546(outFragColor) 12 574: 16(float) CompositeExtract 569 0 Store 573 574 @@ -733,9 +733,9 @@ void main() 579: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 580 580 12 12 Branch 543 540: Label - 584: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 584: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 585: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 586 586 12 12 - 583: 73(fvec3) Load 499(normal) + 583: 74(fvec3) Load 499(normal) 587: 557(ptr) AccessChain 546(outFragColor) 12 588: 16(float) CompositeExtract 583 0 Store 587 588 @@ -748,10 +748,10 @@ void main() 593: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 594 594 12 12 Branch 543 541: Label - 598: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 598: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 599: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 600 600 12 12 597: 19(fvec4) Load 512(albedo) - 601: 73(fvec3) VectorShuffle 597 597 0 1 2 + 601: 74(fvec3) VectorShuffle 597 597 0 1 2 602: 557(ptr) AccessChain 546(outFragColor) 12 603: 16(float) CompositeExtract 601 0 Store 602 603 @@ -764,10 +764,10 @@ void main() 608: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 609 609 12 12 Branch 543 542: Label - 613: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 613: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 614: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 615 615 12 12 612: 19(fvec4) Load 512(albedo) - 616: 73(fvec3) VectorShuffle 612 612 3 3 3 + 616: 74(fvec3) VectorShuffle 612 612 3 3 3 617: 557(ptr) AccessChain 546(outFragColor) 12 618: 16(float) CompositeExtract 616 0 Store 617 618 @@ -780,71 +780,71 @@ void main() 623: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 624 624 12 12 Branch 543 543: Label - 629: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 629: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 630: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 631 631 12 12 628: 557(ptr) AccessChain 546(outFragColor) 13 - Store 628 115 + Store 628 117 632: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 633 633 12 12 Return 532: Label - 640: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 640: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 641: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 638 638 12 12 639: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 637 636(fragcolor) 49 642: 19(fvec4) Load 512(albedo) - 643: 73(fvec3) VectorShuffle 642 642 0 1 2 - 645: 73(fvec3) VectorTimesScalar 643 644 + 643: 74(fvec3) VectorShuffle 642 642 0 1 2 + 645: 74(fvec3) VectorTimesScalar 643 644 Store 636(fragcolor) 645 651: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 649 649 12 12 650: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 647 646(N) 49 - 652: 73(fvec3) Load 499(normal) - 653: 73(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 652 + 652: 74(fvec3) Load 499(normal) + 653: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 652 Store 646(N) 653 658: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 656 656 12 12 657: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 655 654(i) 49 - Store 654(i) 106 + Store 654(i) 108 Branch 659 659: Label - 663: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 663: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 664: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 656 656 12 12 LoopMerge 661 662 None Branch 665 665: Label - 667: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 667: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 668: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 656 656 12 12 - 666: 96(int) Load 654(i) - 669: 139(bool) SLessThan 666 393 + 666: 98(int) Load 654(i) + 669: 141(bool) SLessThan 666 393 BranchConditional 669 660 661 660: Label - 675: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 675: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 676: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 673 673 12 12 674: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 671 670(L) 49 - 677: 96(int) Load 654(i) - 680: 678(ptr) AccessChain 431(ubo) 290 677 106 + 677: 98(int) Load 654(i) + 680: 678(ptr) AccessChain 431(ubo) 291 677 108 681: 19(fvec4) Load 680 - 682: 73(fvec3) VectorShuffle 681 681 0 1 2 - 683: 73(fvec3) Load 475(fragPos) - 684: 73(fvec3) FSub 682 683 + 682: 74(fvec3) VectorShuffle 681 681 0 1 2 + 683: 74(fvec3) Load 475(fragPos) + 684: 74(fvec3) FSub 682 683 Store 670(L) 684 689: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 687 687 12 12 688: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 686 685(dist) 49 - 690: 73(fvec3) Load 670(L) + 690: 74(fvec3) Load 670(L) 691: 16(float) ExtInst 3(GLSL.std.450) 66(Length) 690 Store 685(dist) 691 693: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 694 694 12 12 - 692: 73(fvec3) Load 670(L) - 695: 73(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 692 + 692: 74(fvec3) Load 670(L) + 695: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 692 Store 670(L) 695 701: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 699 699 12 12 700: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 697 696(V) 49 - 702: 678(ptr) AccessChain 431(ubo) 106 + 702: 678(ptr) AccessChain 431(ubo) 108 703: 19(fvec4) Load 702 - 704: 73(fvec3) VectorShuffle 703 703 0 1 2 - 705: 73(fvec3) Load 475(fragPos) - 706: 73(fvec3) FSub 704 705 + 704: 74(fvec3) VectorShuffle 703 703 0 1 2 + 705: 74(fvec3) Load 475(fragPos) + 706: 74(fvec3) FSub 704 705 Store 696(V) 706 708: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 709 709 12 12 - 707: 73(fvec3) Load 696(V) - 710: 73(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 707 + 707: 74(fvec3) Load 696(V) + 710: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 707 Store 696(V) 710 716: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 714 714 12 12 715: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 712 711(lightCosInnerAngle) 49 @@ -857,21 +857,21 @@ void main() Store 725(lightRange) 731 737: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 735 735 12 12 736: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 733 732(dir) 49 - 738: 96(int) Load 654(i) - 739: 678(ptr) AccessChain 431(ubo) 290 738 106 + 738: 98(int) Load 654(i) + 739: 678(ptr) AccessChain 431(ubo) 291 738 108 740: 19(fvec4) Load 739 - 741: 73(fvec3) VectorShuffle 740 740 0 1 2 - 742: 96(int) Load 654(i) - 743: 678(ptr) AccessChain 431(ubo) 290 742 290 + 741: 74(fvec3) VectorShuffle 740 740 0 1 2 + 742: 98(int) Load 654(i) + 743: 678(ptr) AccessChain 431(ubo) 291 742 291 744: 19(fvec4) Load 743 - 745: 73(fvec3) VectorShuffle 744 744 0 1 2 - 746: 73(fvec3) FSub 741 745 - 747: 73(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 746 + 745: 74(fvec3) VectorShuffle 744 744 0 1 2 + 746: 74(fvec3) FSub 741 745 + 747: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 746 Store 732(dir) 747 753: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 751 751 12 12 752: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 749 748(cosDir) 49 - 754: 73(fvec3) Load 670(L) - 755: 73(fvec3) Load 732(dir) + 754: 74(fvec3) Load 670(L) + 755: 74(fvec3) Load 732(dir) 756: 16(float) Dot 754 755 Store 748(cosDir) 756 762: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 760 760 12 12 @@ -885,33 +885,33 @@ void main() 771: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 768 767(heightAttenuation) 49 773: 16(float) Load 725(lightRange) 774: 16(float) Load 685(dist) - 775: 16(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 773 195 774 + 775: 16(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 773 197 774 Store 767(heightAttenuation) 775 781: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 779 779 12 12 780: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 777 776(NdotL) 49 - 782: 73(fvec3) Load 646(N) - 783: 73(fvec3) Load 670(L) + 782: 74(fvec3) Load 646(N) + 783: 74(fvec3) Load 670(L) 784: 16(float) Dot 782 783 - 785: 16(float) ExtInst 3(GLSL.std.450) 40(FMax) 195 784 + 785: 16(float) ExtInst 3(GLSL.std.450) 40(FMax) 197 784 Store 776(NdotL) 785 791: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 789 789 12 12 790: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 787 786(diff) 49 792: 16(float) Load 776(NdotL) - 793: 73(fvec3) CompositeConstruct 792 792 792 + 793: 74(fvec3) CompositeConstruct 792 792 792 Store 786(diff) 793 799: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 797 797 12 12 798: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 795 794(R) 49 - 800: 73(fvec3) Load 670(L) - 801: 73(fvec3) FNegate 800 - 802: 73(fvec3) Load 646(N) - 803: 73(fvec3) ExtInst 3(GLSL.std.450) 71(Reflect) 801 802 + 800: 74(fvec3) Load 670(L) + 801: 74(fvec3) FNegate 800 + 802: 74(fvec3) Load 646(N) + 803: 74(fvec3) ExtInst 3(GLSL.std.450) 71(Reflect) 801 802 Store 794(R) 803 809: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 807 807 12 12 808: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 805 804(NdotR) 49 - 810: 73(fvec3) Load 794(R) - 811: 73(fvec3) Load 696(V) + 810: 74(fvec3) Load 794(R) + 811: 74(fvec3) Load 696(V) 812: 16(float) Dot 810 811 - 813: 16(float) ExtInst 3(GLSL.std.450) 40(FMax) 195 812 + 813: 16(float) ExtInst 3(GLSL.std.450) 40(FMax) 197 812 Store 804(NdotR) 813 819: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 817 817 12 12 818: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 815 814(spec) 49 @@ -921,61 +921,61 @@ void main() 824: 16(float) Load 823 825: 16(float) FMul 822 824 827: 16(float) FMul 825 826 - 828: 73(fvec3) CompositeConstruct 827 827 827 + 828: 74(fvec3) CompositeConstruct 827 827 827 Store 814(spec) 828 830: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 831 831 12 12 - 829: 73(fvec3) Load 786(diff) - 832: 73(fvec3) Load 814(spec) - 833: 73(fvec3) FAdd 829 832 + 829: 74(fvec3) Load 786(diff) + 832: 74(fvec3) Load 814(spec) + 833: 74(fvec3) FAdd 829 832 834: 16(float) Load 757(spotEffect) - 835: 73(fvec3) VectorTimesScalar 833 834 + 835: 74(fvec3) VectorTimesScalar 833 834 836: 16(float) Load 767(heightAttenuation) - 837: 73(fvec3) VectorTimesScalar 835 836 - 838: 96(int) Load 654(i) - 840: 678(ptr) AccessChain 431(ubo) 290 838 839 + 837: 74(fvec3) VectorTimesScalar 835 836 + 838: 98(int) Load 654(i) + 840: 678(ptr) AccessChain 431(ubo) 291 838 839 841: 19(fvec4) Load 840 - 842: 73(fvec3) VectorShuffle 841 841 0 1 2 - 843: 73(fvec3) FMul 837 842 + 842: 74(fvec3) VectorShuffle 841 841 0 1 2 + 843: 74(fvec3) FMul 837 842 844: 19(fvec4) Load 512(albedo) - 845: 73(fvec3) VectorShuffle 844 844 0 1 2 - 846: 73(fvec3) FMul 843 845 - 847: 73(fvec3) Load 636(fragcolor) - 848: 73(fvec3) FAdd 847 846 + 845: 74(fvec3) VectorShuffle 844 844 0 1 2 + 846: 74(fvec3) FMul 843 845 + 847: 74(fvec3) Load 636(fragcolor) + 848: 74(fvec3) FAdd 847 846 Store 636(fragcolor) 848 Branch 662 662: Label - 850: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 850: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 851: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 656 656 12 12 - 849: 96(int) Load 654(i) - 852: 96(int) IAdd 849 290 + 849: 98(int) Load 654(i) + 852: 98(int) IAdd 849 291 Store 654(i) 852 Branch 659 661: Label - 854: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 854: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 855: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 856 856 12 12 853: 524(ptr) AccessChain 431(ubo) 839 - 857: 96(int) Load 853 - 858: 139(bool) SGreaterThan 857 106 + 857: 98(int) Load 853 + 858: 141(bool) SGreaterThan 857 108 SelectionMerge 860 None BranchConditional 858 859 860 859: Label - 863: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 863: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 864: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 865 865 12 12 - 862: 73(fvec3) Load 636(fragcolor) + 862: 74(fvec3) Load 636(fragcolor) Store 861(param) 862 - 867: 73(fvec3) Load 475(fragPos) + 867: 74(fvec3) Load 475(fragPos) Store 866(param) 867 - 868: 73(fvec3) FunctionCall 81(shadow(vf3;vf3;) 861(param) 866(param) + 868: 74(fvec3) FunctionCall 82(shadow(vf3;vf3;) 861(param) 866(param) Store 636(fragcolor) 868 Branch 860 860: Label - 870: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 94 + 870: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 871: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 872 872 12 12 - 869: 73(fvec3) Load 636(fragcolor) + 869: 74(fvec3) Load 636(fragcolor) 873: 16(float) CompositeExtract 869 0 874: 16(float) CompositeExtract 869 1 875: 16(float) CompositeExtract 869 2 - 876: 19(fvec4) CompositeConstruct 873 874 875 115 + 876: 19(fvec4) CompositeConstruct 873 874 875 117 Store 546(outFragColor) 876 Return FunctionEnd @@ -984,299 +984,299 @@ void main() 35(layer): 25(ptr) FunctionParameter 36(offset): 30(ptr) FunctionParameter 38: Label - 110(shadow): 25(ptr) Variable Function -116(shadowCoord): 22(ptr) Variable Function - 159(dist): 25(ptr) Variable Function + 112(shadow): 25(ptr) Variable Function +118(shadowCoord): 22(ptr) Variable Function + 161(dist): 25(ptr) Variable Function 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 43 43 12 12 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 46 34(P) 49 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 52 35(layer) 49 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 55 36(offset) 49 - 109: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 40 37(textureProj(vf4;f1;vf2;) - 114: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 112 112 12 12 - 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 111 110(shadow) 49 - Store 110(shadow) 115 - 121: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 119 119 12 12 - 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 117 116(shadowCoord) 49 - 122: 19(fvec4) Load 34(P) - 123: 25(ptr) AccessChain 34(P) 13 - 124: 16(float) Load 123 - 125: 19(fvec4) CompositeConstruct 124 124 124 124 - 126: 19(fvec4) FDiv 122 125 - Store 116(shadowCoord) 126 - 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 129 129 12 12 - 127: 19(fvec4) Load 116(shadowCoord) - 130: 27(fvec2) VectorShuffle 127 127 0 1 - 132: 27(fvec2) VectorTimesScalar 130 131 - 133: 27(fvec2) CompositeConstruct 131 131 - 134: 27(fvec2) FAdd 132 133 - 135: 25(ptr) AccessChain 116(shadowCoord) 12 - 136: 16(float) CompositeExtract 134 0 - Store 135 136 - 137: 25(ptr) AccessChain 116(shadowCoord) 45 - 138: 16(float) CompositeExtract 134 1 + 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 40 37(textureProj(vf4;f1;vf2;) + 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 114 114 12 12 + 115: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 113 112(shadow) 49 + Store 112(shadow) 117 + 123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 121 121 12 12 + 122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 119 118(shadowCoord) 49 + 124: 19(fvec4) Load 34(P) + 125: 25(ptr) AccessChain 34(P) 13 + 126: 16(float) Load 125 + 127: 19(fvec4) CompositeConstruct 126 126 126 126 + 128: 19(fvec4) FDiv 124 127 + Store 118(shadowCoord) 128 + 130: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 131 131 12 12 + 129: 19(fvec4) Load 118(shadowCoord) + 132: 27(fvec2) VectorShuffle 129 129 0 1 + 134: 27(fvec2) VectorTimesScalar 132 133 + 135: 27(fvec2) CompositeConstruct 133 133 + 136: 27(fvec2) FAdd 134 135 + 137: 25(ptr) AccessChain 118(shadowCoord) 12 + 138: 16(float) CompositeExtract 136 0 Store 137 138 - 143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 144 144 12 12 - 142: 25(ptr) AccessChain 116(shadowCoord) 28 - 145: 16(float) Load 142 - 147: 139(bool) FOrdGreaterThan 145 146 - SelectionMerge 149 None - BranchConditional 147 148 149 - 148: Label - 151: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - 152: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 144 144 12 12 - 150: 25(ptr) AccessChain 116(shadowCoord) 28 - 153: 16(float) Load 150 - 154: 139(bool) FOrdLessThan 153 115 - Branch 149 - 149: Label - 156: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - 155: 139(bool) Phi 147 38 154 148 - SelectionMerge 158 None - BranchConditional 155 157 158 - 157: Label - 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 162 162 12 12 - 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 160 159(dist) 49 - 180: 171 Load 177(samplerShadowMap) - 181: 19(fvec4) Load 116(shadowCoord) - 182: 27(fvec2) VectorShuffle 181 181 0 1 - 183: 27(fvec2) Load 36(offset) - 184: 27(fvec2) FAdd 182 183 - 185: 16(float) Load 35(layer) - 186: 16(float) CompositeExtract 184 0 - 187: 16(float) CompositeExtract 184 1 - 188: 73(fvec3) CompositeConstruct 186 187 185 - 189: 19(fvec4) ImageSampleImplicitLod 180 188 - 190: 16(float) CompositeExtract 189 0 - Store 159(dist) 190 - 192: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 193 193 12 12 - 191: 25(ptr) AccessChain 116(shadowCoord) 13 - 194: 16(float) Load 191 - 196: 139(bool) FOrdGreaterThan 194 195 - SelectionMerge 198 None - BranchConditional 196 197 198 - 197: Label - 200: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - 201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 193 193 12 12 - 199: 16(float) Load 159(dist) - 202: 25(ptr) AccessChain 116(shadowCoord) 28 - 203: 16(float) Load 202 - 204: 139(bool) FOrdLessThan 199 203 - Branch 198 - 198: Label - 206: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - 205: 139(bool) Phi 196 157 204 197 - SelectionMerge 208 None - BranchConditional 205 207 208 - 207: Label - 210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - 211: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 212 212 12 12 - Store 110(shadow) 209 - Branch 208 - 208: Label - 213: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - Branch 158 - 158: Label - 215: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 - 216: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 217 217 12 12 - 214: 16(float) Load 110(shadow) - ReturnValue 214 + 139: 25(ptr) AccessChain 118(shadowCoord) 45 + 140: 16(float) CompositeExtract 136 1 + Store 139 140 + 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 146 146 12 12 + 144: 25(ptr) AccessChain 118(shadowCoord) 28 + 147: 16(float) Load 144 + 149: 141(bool) FOrdGreaterThan 147 148 + SelectionMerge 151 None + BranchConditional 149 150 151 + 150: Label + 153: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 + 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 146 146 12 12 + 152: 25(ptr) AccessChain 118(shadowCoord) 28 + 155: 16(float) Load 152 + 156: 141(bool) FOrdLessThan 155 117 + Branch 151 + 151: Label + 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 + 157: 141(bool) Phi 149 38 156 150 + SelectionMerge 160 None + BranchConditional 157 159 160 + 159: Label + 166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 + 167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 164 164 12 12 + 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 162 161(dist) 49 + 182: 173 Load 179(samplerShadowMap) + 183: 19(fvec4) Load 118(shadowCoord) + 184: 27(fvec2) VectorShuffle 183 183 0 1 + 185: 27(fvec2) Load 36(offset) + 186: 27(fvec2) FAdd 184 185 + 187: 16(float) Load 35(layer) + 188: 16(float) CompositeExtract 186 0 + 189: 16(float) CompositeExtract 186 1 + 190: 74(fvec3) CompositeConstruct 188 189 187 + 191: 19(fvec4) ImageSampleImplicitLod 182 190 + 192: 16(float) CompositeExtract 191 0 + Store 161(dist) 192 + 194: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 195 195 12 12 + 193: 25(ptr) AccessChain 118(shadowCoord) 13 + 196: 16(float) Load 193 + 198: 141(bool) FOrdGreaterThan 196 197 + SelectionMerge 200 None + BranchConditional 198 199 200 + 199: Label + 202: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 + 203: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 195 195 12 12 + 201: 16(float) Load 161(dist) + 204: 25(ptr) AccessChain 118(shadowCoord) 28 + 205: 16(float) Load 204 + 206: 141(bool) FOrdLessThan 201 205 + Branch 200 + 200: Label + 208: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 + 207: 141(bool) Phi 198 159 206 199 + SelectionMerge 210 None + BranchConditional 207 209 210 + 209: Label + 212: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 + 213: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 214 214 12 12 + Store 112(shadow) 211 + Branch 210 + 210: Label + 215: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 + Branch 160 + 160: Label + 217: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 + 218: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 219 219 12 12 + 216: 16(float) Load 112(shadow) + ReturnValue 216 FunctionEnd 62(filterPCF(vf4;f1;): 16(float) Function None 58 60(sc): 22(ptr) FunctionParameter 61(layer): 25(ptr) FunctionParameter 63: Label - 227(texDim): 225(ptr) Variable Function - 239(scale): 25(ptr) Variable Function - 246(dx): 25(ptr) Variable Function - 260(dy): 25(ptr) Variable Function -272(shadowFactor): 25(ptr) Variable Function - 278(count): 254(ptr) Variable Function - 284(range): 254(ptr) Variable Function - 291(x): 254(ptr) Variable Function - 311(y): 254(ptr) Variable Function - 344(param): 22(ptr) Variable Function - 346(param): 25(ptr) Variable Function - 348(param): 30(ptr) Variable Function + 228(texDim): 226(ptr) Variable Function + 240(scale): 25(ptr) Variable Function + 247(dx): 25(ptr) Variable Function + 261(dy): 25(ptr) Variable Function +273(shadowFactor): 25(ptr) Variable Function + 279(count): 255(ptr) Variable Function + 285(range): 255(ptr) Variable Function + 292(x): 255(ptr) Variable Function + 312(y): 255(ptr) Variable Function + 345(param): 22(ptr) Variable Function + 347(param): 25(ptr) Variable Function + 349(param): 30(ptr) Variable Function 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 66 66 12 12 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 67 60(sc) 49 - 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 71 61(layer) 49 - 222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 66 66 12 12 - 221: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 65 62(filterPCF(vf4;f1;) - 232: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 230 230 12 12 - 231: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 228 227(texDim) 49 - 233: 171 Load 177(samplerShadowMap) - 234: 166 Image 233 - 237: 235(ivec3) ImageQuerySizeLod 234 106 - 238: 223(ivec2) VectorShuffle 237 237 0 1 - Store 227(texDim) 238 - 244: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 242 242 12 12 - 243: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 240 239(scale) 49 - Store 239(scale) 245 - 251: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 249 249 12 12 - 250: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 247 246(dx) 49 - 252: 16(float) Load 239(scale) - 253: 16(float) FMul 252 115 - 256: 254(ptr) AccessChain 227(texDim) 12 - 257: 96(int) Load 256 - 258: 16(float) ConvertSToF 257 - 259: 16(float) FDiv 253 258 - Store 246(dx) 259 - 265: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 263 263 12 12 - 264: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 261 260(dy) 49 - 266: 16(float) Load 239(scale) - 267: 16(float) FMul 266 115 - 268: 254(ptr) AccessChain 227(texDim) 45 - 269: 96(int) Load 268 - 270: 16(float) ConvertSToF 269 - 271: 16(float) FDiv 267 270 - Store 260(dy) 271 - 277: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 275 275 12 12 - 276: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 273 272(shadowFactor) 49 - Store 272(shadowFactor) 195 - 283: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 281 281 12 12 - 282: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 279 278(count) 49 - Store 278(count) 106 - 289: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 287 287 12 12 - 288: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 285 284(range) 49 - Store 284(range) 290 - 296: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 294 294 12 12 - 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 292 291(x) 49 - 297: 96(int) Load 284(range) - 298: 96(int) SNegate 297 - Store 291(x) 298 - Branch 299 - 299: Label - 303: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 304: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 294 294 12 12 - LoopMerge 301 302 None - Branch 305 - 305: Label - 307: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 308: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 294 294 12 12 - 306: 96(int) Load 291(x) - 309: 96(int) Load 284(range) - 310: 139(bool) SLessThanEqual 306 309 - BranchConditional 310 300 301 - 300: Label - 316: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 317: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 314 314 12 12 - 315: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 312 311(y) 49 - 318: 96(int) Load 284(range) - 319: 96(int) SNegate 318 - Store 311(y) 319 - Branch 320 - 320: Label - 324: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 325: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 314 314 12 12 - LoopMerge 322 323 None - Branch 326 - 326: Label - 328: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 329: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 314 314 12 12 - 327: 96(int) Load 311(y) - 330: 96(int) Load 284(range) - 331: 139(bool) SLessThanEqual 327 330 - BranchConditional 331 321 322 - 321: Label - 333: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 334: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 335 335 12 12 - 332: 16(float) Load 246(dx) - 336: 96(int) Load 291(x) - 337: 16(float) ConvertSToF 336 - 338: 16(float) FMul 332 337 - 339: 16(float) Load 260(dy) - 340: 96(int) Load 311(y) - 341: 16(float) ConvertSToF 340 - 342: 16(float) FMul 339 341 - 343: 27(fvec2) CompositeConstruct 338 342 - 345: 19(fvec4) Load 60(sc) - Store 344(param) 345 - 347: 16(float) Load 61(layer) - Store 346(param) 347 - Store 348(param) 343 - 349: 16(float) FunctionCall 37(textureProj(vf4;f1;vf2;) 344(param) 346(param) 348(param) - 350: 16(float) Load 272(shadowFactor) - 351: 16(float) FAdd 350 349 - Store 272(shadowFactor) 351 - 353: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 354 354 12 12 - 352: 96(int) Load 278(count) - 355: 96(int) IAdd 352 290 - Store 278(count) 355 - Branch 323 - 323: Label - 357: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 358: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 314 314 12 12 - 356: 96(int) Load 311(y) - 359: 96(int) IAdd 356 290 - Store 311(y) 359 - Branch 320 - 322: Label - 360: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - Branch 302 - 302: Label - 362: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 363: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 294 294 12 12 - 361: 96(int) Load 291(x) - 364: 96(int) IAdd 361 290 - Store 291(x) 364 - Branch 299 - 301: Label - 366: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 367: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 368 368 12 12 - 365: 16(float) Load 272(shadowFactor) - 369: 96(int) Load 278(count) - 370: 16(float) ConvertSToF 369 - 371: 16(float) FDiv 365 370 - ReturnValue 371 + 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 72 61(layer) 49 + 223: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 65 62(filterPCF(vf4;f1;) + 233: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 231 231 12 12 + 232: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 229 228(texDim) 49 + 234: 173 Load 179(samplerShadowMap) + 235: 168 Image 234 + 238: 236(ivec3) ImageQuerySizeLod 235 108 + 239: 224(ivec2) VectorShuffle 238 238 0 1 + Store 228(texDim) 239 + 245: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 243 243 12 12 + 244: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 241 240(scale) 49 + Store 240(scale) 246 + 252: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 250 250 12 12 + 251: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 248 247(dx) 49 + 253: 16(float) Load 240(scale) + 254: 16(float) FMul 253 117 + 257: 255(ptr) AccessChain 228(texDim) 12 + 258: 98(int) Load 257 + 259: 16(float) ConvertSToF 258 + 260: 16(float) FDiv 254 259 + Store 247(dx) 260 + 266: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 264 264 12 12 + 265: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 262 261(dy) 49 + 267: 16(float) Load 240(scale) + 268: 16(float) FMul 267 117 + 269: 255(ptr) AccessChain 228(texDim) 45 + 270: 98(int) Load 269 + 271: 16(float) ConvertSToF 270 + 272: 16(float) FDiv 268 271 + Store 261(dy) 272 + 278: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 276 276 12 12 + 277: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 274 273(shadowFactor) 49 + Store 273(shadowFactor) 197 + 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 282 282 12 12 + 283: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 280 279(count) 49 + Store 279(count) 108 + 290: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 288 288 12 12 + 289: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 286 285(range) 49 + Store 285(range) 291 + 297: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 295 295 12 12 + 296: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 293 292(x) 49 + 298: 98(int) Load 285(range) + 299: 98(int) SNegate 298 + Store 292(x) 299 + Branch 300 + 300: Label + 304: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 305: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 295 295 12 12 + LoopMerge 302 303 None + Branch 306 + 306: Label + 308: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 309: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 295 295 12 12 + 307: 98(int) Load 292(x) + 310: 98(int) Load 285(range) + 311: 141(bool) SLessThanEqual 307 310 + BranchConditional 311 301 302 + 301: Label + 317: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 318: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 315 315 12 12 + 316: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 313 312(y) 49 + 319: 98(int) Load 285(range) + 320: 98(int) SNegate 319 + Store 312(y) 320 + Branch 321 + 321: Label + 325: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 326: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 315 315 12 12 + LoopMerge 323 324 None + Branch 327 + 327: Label + 329: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 330: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 315 315 12 12 + 328: 98(int) Load 312(y) + 331: 98(int) Load 285(range) + 332: 141(bool) SLessThanEqual 328 331 + BranchConditional 332 322 323 + 322: Label + 334: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 335: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 336 336 12 12 + 333: 16(float) Load 247(dx) + 337: 98(int) Load 292(x) + 338: 16(float) ConvertSToF 337 + 339: 16(float) FMul 333 338 + 340: 16(float) Load 261(dy) + 341: 98(int) Load 312(y) + 342: 16(float) ConvertSToF 341 + 343: 16(float) FMul 340 342 + 344: 27(fvec2) CompositeConstruct 339 343 + 346: 19(fvec4) Load 60(sc) + Store 345(param) 346 + 348: 16(float) Load 61(layer) + Store 347(param) 348 + Store 349(param) 344 + 350: 16(float) FunctionCall 37(textureProj(vf4;f1;vf2;) 345(param) 347(param) 349(param) + 351: 16(float) Load 273(shadowFactor) + 352: 16(float) FAdd 351 350 + Store 273(shadowFactor) 352 + 354: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 355 355 12 12 + 353: 98(int) Load 279(count) + 356: 98(int) IAdd 353 291 + Store 279(count) 356 + Branch 324 + 324: Label + 358: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 359: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 315 315 12 12 + 357: 98(int) Load 312(y) + 360: 98(int) IAdd 357 291 + Store 312(y) 360 + Branch 321 + 323: Label + 361: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + Branch 303 + 303: Label + 363: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 364: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 295 295 12 12 + 362: 98(int) Load 292(x) + 365: 98(int) IAdd 362 291 + Store 292(x) 365 + Branch 300 + 302: Label + 367: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 368: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 369 369 12 12 + 366: 16(float) Load 273(shadowFactor) + 370: 98(int) Load 279(count) + 371: 16(float) ConvertSToF 370 + 372: 16(float) FDiv 366 371 + ReturnValue 372 FunctionEnd -81(shadow(vf3;vf3;): 73(fvec3) Function None 77 - 79(fragcolor): 75(ptr) FunctionParameter - 80(fragpos): 75(ptr) FunctionParameter - 82: Label - 377(i): 254(ptr) Variable Function +82(shadow(vf3;vf3;): 74(fvec3) Function None 78 + 80(fragcolor): 76(ptr) FunctionParameter + 81(fragpos): 76(ptr) FunctionParameter + 83: Label + 377(i): 255(ptr) Variable Function 395(shadowClip): 22(ptr) Variable Function 445(shadowFactor): 25(ptr) Variable Function 452(param): 22(ptr) Variable Function 454(param): 25(ptr) Variable Function - 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 - 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 79(fragcolor) 49 - 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 90 80(fragpos) 49 - 376: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 85 85 12 12 - 375: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 84 81(shadow(vf3;vf3;) + 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 + 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 86 86 12 12 + 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 87 80(fragcolor) 49 + 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 81(fragpos) 49 + 376: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 85 82(shadow(vf3;vf3;) 382: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 380 380 12 12 381: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 378 377(i) 49 - Store 377(i) 106 + Store 377(i) 108 Branch 383 383: Label - 387: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 + 387: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 388: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 380 380 12 12 LoopMerge 385 386 None Branch 389 389: Label - 391: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 + 391: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 392: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 380 380 12 12 - 390: 96(int) Load 377(i) - 394: 139(bool) SLessThan 390 393 + 390: 98(int) Load 377(i) + 394: 141(bool) SLessThan 390 393 BranchConditional 394 384 385 384: Label - 400: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 + 400: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 401: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 398 398 12 12 399: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 396 395(shadowClip) 49 - 434: 96(int) Load 377(i) - 437: 435(ptr) AccessChain 431(ubo) 290 434 393 + 434: 98(int) Load 377(i) + 437: 435(ptr) AccessChain 431(ubo) 291 434 393 438: 402 Load 437 - 439: 73(fvec3) Load 80(fragpos) + 439: 74(fvec3) Load 81(fragpos) 440: 16(float) CompositeExtract 439 0 441: 16(float) CompositeExtract 439 1 442: 16(float) CompositeExtract 439 2 - 443: 19(fvec4) CompositeConstruct 440 441 442 115 + 443: 19(fvec4) CompositeConstruct 440 441 442 117 444: 19(fvec4) MatrixTimesVector 438 443 Store 395(shadowClip) 444 449: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 447 447 12 12 448: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 446 445(shadowFactor) 49 - 450: 96(int) Load 377(i) + 450: 98(int) Load 377(i) 451: 16(float) ConvertSToF 450 453: 19(fvec4) Load 395(shadowClip) Store 452(param) 453 @@ -1285,20 +1285,20 @@ void main() Store 445(shadowFactor) 455 457: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 458 458 12 12 456: 16(float) Load 445(shadowFactor) - 459: 73(fvec3) Load 79(fragcolor) - 460: 73(fvec3) VectorTimesScalar 459 456 - Store 79(fragcolor) 460 + 459: 74(fvec3) Load 80(fragcolor) + 460: 74(fvec3) VectorTimesScalar 459 456 + Store 80(fragcolor) 460 Branch 386 386: Label - 462: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 + 462: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 463: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 380 380 12 12 - 461: 96(int) Load 377(i) - 464: 96(int) IAdd 461 290 + 461: 98(int) Load 377(i) + 464: 98(int) IAdd 461 291 Store 377(i) 464 Branch 383 385: Label - 466: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 + 466: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 467: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 468 468 12 12 - 465: 73(fvec3) Load 79(fragcolor) + 465: 74(fvec3) Load 80(fragcolor) ReturnValue 465 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.comp.out b/Test/baseResults/spv.debuginfo.hlsl.comp.out index 72f83ed7..c23f8234 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.comp.out +++ b/Test/baseResults/spv.debuginfo.hlsl.comp.out @@ -28,14 +28,14 @@ spv.debuginfo.hlsl.comp 52: String "restDist" 63: String "@main" 67: String "id" - 73: String "dist" - 87: String "int" - 93: String "sphereRadius" - 104: String "gravity" - 109: String "particleCount" - 112: String "UBO" - 115: String "params" - 119: String "ubo" + 74: String "dist" + 88: String "int" + 94: String "sphereRadius" + 105: String "gravity" + 110: String "particleCount" + 113: String "UBO" + 116: String "params" + 120: String "ubo" 146: String "index" 172: String "bool" 184: String "normal" @@ -63,22 +63,22 @@ spv.debuginfo.hlsl.comp Name 29 "restDist" Name 61 "@main(vu3;" Name 60 "id" - Name 71 "dist" - Name 91 "UBO" - MemberName 91(UBO) 0 "deltaT" - MemberName 91(UBO) 1 "particleMass" - MemberName 91(UBO) 2 "springStiffness" - MemberName 91(UBO) 3 "damping" - MemberName 91(UBO) 4 "restDistH" - MemberName 91(UBO) 5 "restDistV" - MemberName 91(UBO) 6 "restDistD" - MemberName 91(UBO) 7 "sphereRadius" - MemberName 91(UBO) 8 "spherePos" - MemberName 91(UBO) 9 "gravity" - MemberName 91(UBO) 10 "particleCount" - Name 113 "ubo" - MemberName 113(ubo) 0 "params" - Name 122 "" + Name 72 "dist" + Name 92 "UBO" + MemberName 92(UBO) 0 "deltaT" + MemberName 92(UBO) 1 "particleMass" + MemberName 92(UBO) 2 "springStiffness" + MemberName 92(UBO) 3 "damping" + MemberName 92(UBO) 4 "restDistH" + MemberName 92(UBO) 5 "restDistV" + MemberName 92(UBO) 6 "restDistD" + MemberName 92(UBO) 7 "sphereRadius" + MemberName 92(UBO) 8 "spherePos" + MemberName 92(UBO) 9 "gravity" + MemberName 92(UBO) 10 "particleCount" + Name 114 "ubo" + MemberName 114(ubo) 0 "params" + Name 123 "" Name 144 "index" Name 182 "Particle" MemberName 182(Particle) 0 "pos" @@ -133,21 +133,21 @@ spv.debuginfo.hlsl.comp Name 963 "id" Name 965 "id" Name 967 "param" - MemberDecorate 91(UBO) 0 Offset 0 - MemberDecorate 91(UBO) 1 Offset 4 - MemberDecorate 91(UBO) 2 Offset 8 - MemberDecorate 91(UBO) 3 Offset 12 - MemberDecorate 91(UBO) 4 Offset 16 - MemberDecorate 91(UBO) 5 Offset 20 - MemberDecorate 91(UBO) 6 Offset 24 - MemberDecorate 91(UBO) 7 Offset 28 - MemberDecorate 91(UBO) 8 Offset 32 - MemberDecorate 91(UBO) 9 Offset 48 - MemberDecorate 91(UBO) 10 Offset 64 - Decorate 113(ubo) Block - MemberDecorate 113(ubo) 0 Offset 0 - Decorate 122 Binding 2 - Decorate 122 DescriptorSet 0 + MemberDecorate 92(UBO) 0 Offset 0 + MemberDecorate 92(UBO) 1 Offset 4 + MemberDecorate 92(UBO) 2 Offset 8 + MemberDecorate 92(UBO) 3 Offset 12 + MemberDecorate 92(UBO) 4 Offset 16 + MemberDecorate 92(UBO) 5 Offset 20 + MemberDecorate 92(UBO) 6 Offset 24 + MemberDecorate 92(UBO) 7 Offset 28 + MemberDecorate 92(UBO) 8 Offset 32 + MemberDecorate 92(UBO) 9 Offset 48 + MemberDecorate 92(UBO) 10 Offset 64 + Decorate 114(ubo) Block + MemberDecorate 114(ubo) 0 Offset 0 + Decorate 123 Binding 2 + Decorate 123 DescriptorSet 0 MemberDecorate 182(Particle) 0 Offset 0 MemberDecorate 182(Particle) 1 Offset 16 MemberDecorate 182(Particle) 2 Offset 32 @@ -210,65 +210,65 @@ spv.debuginfo.hlsl.comp 65: 11(int) Constant 82 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 63 59 34 65 16 37 63 17 65 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 67 55 34 65 16 64 39 38 - 74: 11(int) Constant 76 - 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 73 19 34 74 16 33 39 - 82: 11(int) Constant 77 - 84: TypeVector 8(float) 4 - 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 39 - 86: TypeInt 32 1 - 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 87 14 39 16 - 89: TypeVector 86(int) 2 - 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 88 49 - 91(UBO): TypeStruct 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 84(fvec4) 84(fvec4) 89(ivec2) - 94: 11(int) Constant 48 - 95: 11(int) Constant 20 - 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 10 34 94 95 16 16 17 - 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 10 34 94 95 16 16 17 - 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 10 34 94 95 16 16 17 - 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 10 34 94 95 16 16 17 - 99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 10 34 94 95 16 16 17 - 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 10 34 94 95 16 16 17 - 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 10 34 94 95 16 16 17 - 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 93 10 34 94 95 16 16 17 - 105: 11(int) Constant 50 - 106: 11(int) Constant 16 - 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 104 85 34 105 106 16 16 17 - 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 104 85 34 105 106 16 16 17 - 110: 11(int) Constant 51 - 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 109 90 34 110 95 16 16 17 - 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 112 38 34 82 16 37 112 16 17 92 96 97 98 99 100 101 102 103 107 108 - 113(ubo): TypeStruct 91(UBO) - 116: 11(int) Constant 56 - 117: 11(int) Constant 12 - 114: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 115 111 34 116 117 16 16 17 - 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 119 38 34 82 16 37 119 16 17 114 - 120: TypePointer Uniform 113(ubo) - 121: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 118 49 16 - 122: 120(ptr) Variable Uniform - 124: 11(int) Constant 8 - 123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 118 34 82 16 37 2 122 124 - 125: 86(int) Constant 0 - 126: 86(int) Constant 2 - 127: TypePointer Uniform 8(float) - 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 49 16 + 75: 11(int) Constant 76 + 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 74 19 34 75 16 33 39 + 83: 11(int) Constant 77 + 85: TypeVector 8(float) 4 + 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 39 + 87: TypeInt 32 1 + 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 88 14 39 16 + 90: TypeVector 87(int) 2 + 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 89 49 + 92(UBO): TypeStruct 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 8(float) 85(fvec4) 85(fvec4) 90(ivec2) + 95: 11(int) Constant 48 + 96: 11(int) Constant 20 + 93: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 94 10 34 95 96 16 16 17 + 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 94 10 34 95 96 16 16 17 + 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 94 10 34 95 96 16 16 17 + 99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 94 10 34 95 96 16 16 17 + 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 94 10 34 95 96 16 16 17 + 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 94 10 34 95 96 16 16 17 + 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 94 10 34 95 96 16 16 17 + 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 94 10 34 95 96 16 16 17 + 106: 11(int) Constant 50 + 107: 11(int) Constant 16 + 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 105 86 34 106 107 16 16 17 + 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 105 86 34 106 107 16 16 17 + 111: 11(int) Constant 51 + 109: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 110 91 34 111 96 16 16 17 + 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 113 38 34 83 16 37 113 16 17 93 97 98 99 100 101 102 103 104 108 109 + 114(ubo): TypeStruct 92(UBO) + 117: 11(int) Constant 56 + 118: 11(int) Constant 12 + 115: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 116 112 34 117 118 16 16 17 + 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 120 38 34 83 16 37 120 16 17 115 + 121: TypePointer Uniform 114(ubo) + 122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 119 49 16 + 123: 121(ptr) Variable Uniform + 125: 11(int) Constant 8 + 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 119 34 83 16 37 2 123 125 + 126: 87(int) Constant 0 + 127: 87(int) Constant 2 + 128: TypePointer Uniform 8(float) + 129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 49 16 142: TypePointer Function 11(int) 143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 21 16 147: 11(int) Constant 83 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 146 13 34 147 16 64 39 - 152: 86(int) Constant 10 - 153: TypePointer Uniform 86(int) - 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 88 49 16 + 152: 87(int) Constant 10 + 153: TypePointer Uniform 87(int) + 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 89 49 16 164: 11(int) Constant 84 171: TypeBool 173: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 172 14 49 16 179: 11(int) Constant 85 - 182(Particle): TypeStruct 84(fvec4) 84(fvec4) 84(fvec4) 84(fvec4) 8(float) + 182(Particle): TypeStruct 85(fvec4) 85(fvec4) 85(fvec4) 85(fvec4) 8(float) 185: 11(int) Constant 30 186: 11(int) Constant 15 - 183: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 184 85 34 185 186 16 16 17 - 187: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 184 85 34 185 186 16 16 17 - 188: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 184 85 34 185 186 16 16 17 - 189: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 184 85 34 185 186 16 16 17 + 183: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 184 86 34 185 186 16 16 17 + 187: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 184 86 34 185 186 16 16 17 + 188: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 184 86 34 185 186 16 16 17 + 189: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 184 86 34 185 186 16 16 17 192: 11(int) Constant 31 193: 11(int) Constant 14 190: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 191 10 34 192 193 16 16 17 @@ -284,8 +284,8 @@ spv.debuginfo.hlsl.comp 206: TypePointer Uniform 199(particleIn) 207: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 204 49 16 208(particleIn): 206(ptr) Variable Uniform - 209: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 205 204 34 196 16 37 205 208(particleIn) 124 - 213: 86(int) Constant 4 + 209: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 205 204 34 196 16 37 205 208(particleIn) 125 + 213: 87(int) Constant 4 216: 8(float) Constant 1065353216 220: TypeRuntimeArray 182(Particle) 221: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 194 16 @@ -297,17 +297,17 @@ spv.debuginfo.hlsl.comp 228: TypePointer Uniform 222(particleOut) 229: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 225 49 16 230(particleOut): 228(ptr) Variable Uniform - 231: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 226 225 34 227 16 37 226 230(particleOut) 124 - 236: TypePointer Uniform 84(fvec4) - 237: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 85 49 16 + 231: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 226 225 34 227 16 37 226 230(particleOut) 125 + 236: TypePointer Uniform 85(fvec4) + 237: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 86 49 16 243: 11(int) Constant 90 - 244: 86(int) Constant 1 + 244: 87(int) Constant 1 245: 8(float) Constant 0 - 246: 84(fvec4) ConstantComposite 245 245 245 245 + 246: 85(fvec4) ConstantComposite 245 245 245 245 249: 11(int) Constant 91 255: 11(int) Constant 95 253: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 254 19 34 255 16 64 39 - 259: 86(int) Constant 9 + 259: 87(int) Constant 9 269: 11(int) Constant 97 267: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 268 19 34 269 16 64 39 279: 11(int) Constant 98 @@ -318,19 +318,19 @@ spv.debuginfo.hlsl.comp 325: 11(int) Constant 107 342: 11(int) Constant 110 354: 11(int) Constant 111 - 359: 86(int) Constant 5 + 359: 87(int) Constant 5 375: 11(int) Constant 114 383: 11(int) Constant 115 403: 11(int) Constant 118 419: 11(int) Constant 119 - 425: 86(int) Constant 6 + 425: 87(int) Constant 6 441: 11(int) Constant 122 453: 11(int) Constant 123 474: 11(int) Constant 126 494: 11(int) Constant 127 515: 11(int) Constant 130 531: 11(int) Constant 131 - 549: 86(int) Constant 3 + 549: 87(int) Constant 3 553: 11(int) Constant 134 563: 11(int) Constant 137 561: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 562 19 34 563 16 64 39 @@ -339,9 +339,9 @@ spv.debuginfo.hlsl.comp 597: 11(int) Constant 139 612: 11(int) Constant 142 610: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 611 19 34 612 16 64 39 - 619: 86(int) Constant 8 + 619: 87(int) Constant 8 626: 11(int) Constant 143 - 628: 86(int) Constant 7 + 628: 87(int) Constant 7 631: 8(float) Constant 1008981770 639: 11(int) Constant 145 658: 11(int) Constant 147 @@ -358,7 +358,7 @@ spv.debuginfo.hlsl.comp 674: TypePointer Uniform 668($Global) 675: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 672 49 16 676: 674(ptr) Variable Uniform - 677: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 672 34 667 16 37 2 676 124 + 677: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 672 34 667 16 37 2 676 125 678: TypePointer Uniform 11(int) 679: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 49 16 689: 11(int) Constant 152 @@ -408,31 +408,31 @@ spv.debuginfo.hlsl.comp 28(p1): 20(ptr) FunctionParameter 29(restDist): 23(ptr) FunctionParameter 31: Label - 71(dist): 20(ptr) Variable Function + 72(dist): 20(ptr) Variable Function 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 33 46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 36 36 16 16 43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 41 27(p0) 44 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 47 28(p1) 44 53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 51 29(restDist) 44 - 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 33 30(springForce(vf3;vf3;f1;) - 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 74 74 16 16 - 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 72 71(dist) 44 - 77: 18(fvec3) Load 27(p0) - 78: 18(fvec3) Load 28(p1) - 79: 18(fvec3) FSub 77 78 - Store 71(dist) 79 - 81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 82 82 16 16 - 80: 18(fvec3) Load 71(dist) - 83: 18(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 80 - 129: 127(ptr) AccessChain 122 125 126 - 130: 8(float) Load 129 - 131: 18(fvec3) VectorTimesScalar 83 130 - 132: 18(fvec3) Load 71(dist) - 133: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 132 - 134: 8(float) Load 29(restDist) - 135: 8(float) FSub 133 134 - 136: 18(fvec3) VectorTimesScalar 131 135 - ReturnValue 136 + 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 33 30(springForce(vf3;vf3;f1;) + 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 75 75 16 16 + 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 73 72(dist) 44 + 78: 18(fvec3) Load 27(p0) + 79: 18(fvec3) Load 28(p1) + 80: 18(fvec3) FSub 78 79 + Store 72(dist) 80 + 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 83 83 16 16 + 81: 18(fvec3) Load 72(dist) + 84: 18(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 81 + 130: 128(ptr) AccessChain 123 126 127 + 131: 8(float) Load 130 + 132: 18(fvec3) VectorTimesScalar 84 131 + 133: 18(fvec3) Load 72(dist) + 134: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 133 + 135: 8(float) Load 29(restDist) + 136: 8(float) FSub 134 135 + 137: 18(fvec3) VectorTimesScalar 132 136 + ReturnValue 137 FunctionEnd 61(@main(vu3;): 4 Function None 58 60(id): 56(ptr) FunctionParameter @@ -472,15 +472,15 @@ spv.debuginfo.hlsl.comp 723(b): 20(ptr) Variable Function 740(c): 20(ptr) Variable Function 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 + 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 65 65 16 16 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 66 60(id) 44 - 141: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 65 65 16 16 - 140: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 64 61(@main(vu3;) + 141: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 64 61(@main(vu3;) 149: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 147 147 16 16 148: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 145 144(index) 44 150: 142(ptr) AccessChain 60(id) 38 151: 11(int) Load 150 - 155: 153(ptr) AccessChain 122 125 152 16 - 156: 86(int) Load 155 + 155: 153(ptr) AccessChain 123 126 152 16 + 156: 87(int) Load 155 157: 11(int) Bitcast 156 158: 11(int) IMul 151 157 159: 142(ptr) AccessChain 60(id) 16 @@ -489,11 +489,11 @@ spv.debuginfo.hlsl.comp Store 144(index) 161 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 164 164 16 16 162: 11(int) Load 144(index) - 165: 153(ptr) AccessChain 122 125 152 16 - 166: 86(int) Load 165 - 167: 153(ptr) AccessChain 122 125 152 38 - 168: 86(int) Load 167 - 169: 86(int) IMul 166 168 + 165: 153(ptr) AccessChain 123 126 152 16 + 166: 87(int) Load 165 + 167: 153(ptr) AccessChain 123 126 152 38 + 168: 87(int) Load 167 + 169: 87(int) IMul 166 168 170: 11(int) Bitcast 169 174: 171(bool) UGreaterThan 162 170 SelectionMerge 176 None @@ -506,7 +506,7 @@ spv.debuginfo.hlsl.comp 211: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 212: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 196 196 16 16 210: 11(int) Load 144(index) - 214: 127(ptr) AccessChain 208(particleIn) 125 210 213 + 214: 128(ptr) AccessChain 208(particleIn) 126 210 213 215: 8(float) Load 214 217: 171(bool) FOrdEqual 215 216 SelectionMerge 219 None @@ -516,13 +516,13 @@ spv.debuginfo.hlsl.comp 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 227 227 16 16 232: 11(int) Load 144(index) 235: 11(int) Load 144(index) - 238: 236(ptr) AccessChain 230(particleOut) 125 235 125 - 239: 84(fvec4) Load 238 - 240: 236(ptr) AccessChain 230(particleOut) 125 232 125 + 238: 236(ptr) AccessChain 230(particleOut) 126 235 126 + 239: 85(fvec4) Load 238 + 240: 236(ptr) AccessChain 230(particleOut) 126 232 126 Store 240 239 242: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 243 243 16 16 241: 11(int) Load 144(index) - 247: 236(ptr) AccessChain 230(particleOut) 125 241 244 + 247: 236(ptr) AccessChain 230(particleOut) 126 241 244 Store 247 246 248: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 249 249 16 16 Return @@ -530,25 +530,25 @@ spv.debuginfo.hlsl.comp 257: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 258: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 255 255 16 16 256: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 253 252(force) 44 - 260: 236(ptr) AccessChain 122 125 259 - 261: 84(fvec4) Load 260 + 260: 236(ptr) AccessChain 123 126 259 + 261: 85(fvec4) Load 260 262: 18(fvec3) VectorShuffle 261 261 0 1 2 - 263: 127(ptr) AccessChain 122 125 244 + 263: 128(ptr) AccessChain 123 126 244 264: 8(float) Load 263 265: 18(fvec3) VectorTimesScalar 262 264 Store 252(force) 265 271: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 269 269 16 16 270: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 267 266(pos) 44 272: 11(int) Load 144(index) - 273: 236(ptr) AccessChain 208(particleIn) 125 272 125 - 274: 84(fvec4) Load 273 + 273: 236(ptr) AccessChain 208(particleIn) 126 272 126 + 274: 85(fvec4) Load 273 275: 18(fvec3) VectorShuffle 274 274 0 1 2 Store 266(pos) 275 281: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 279 279 16 16 280: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 277 276(vel) 44 282: 11(int) Load 144(index) - 283: 236(ptr) AccessChain 208(particleIn) 125 282 244 - 284: 84(fvec4) Load 283 + 283: 236(ptr) AccessChain 208(particleIn) 126 282 244 + 284: 85(fvec4) Load 283 285: 18(fvec3) VectorShuffle 284 284 0 1 2 Store 276(vel) 285 287: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 288 288 16 16 @@ -562,13 +562,13 @@ spv.debuginfo.hlsl.comp 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 296 296 16 16 293: 11(int) Load 144(index) 297: 11(int) ISub 293 38 - 299: 236(ptr) AccessChain 208(particleIn) 125 297 125 - 300: 84(fvec4) Load 299 + 299: 236(ptr) AccessChain 208(particleIn) 126 297 126 + 300: 85(fvec4) Load 299 301: 18(fvec3) VectorShuffle 300 300 0 1 2 Store 298(param) 301 303: 18(fvec3) Load 266(pos) Store 302(param) 303 - 305: 127(ptr) AccessChain 122 125 213 + 305: 128(ptr) AccessChain 123 126 213 306: 8(float) Load 305 Store 304(param) 306 307: 18(fvec3) FunctionCall 30(springForce(vf3;vf3;f1;) 298(param) 302(param) 304(param) @@ -581,9 +581,9 @@ spv.debuginfo.hlsl.comp 312: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 313 313 16 16 310: 142(ptr) AccessChain 60(id) 16 314: 11(int) Load 310 - 315: 153(ptr) AccessChain 122 125 152 16 - 316: 86(int) Load 315 - 317: 86(int) ISub 316 244 + 315: 153(ptr) AccessChain 123 126 152 16 + 316: 87(int) Load 315 + 317: 87(int) ISub 316 244 318: 11(int) Bitcast 317 319: 171(bool) ULessThan 314 318 SelectionMerge 321 None @@ -593,13 +593,13 @@ spv.debuginfo.hlsl.comp 324: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 325 325 16 16 322: 11(int) Load 144(index) 326: 11(int) IAdd 322 38 - 328: 236(ptr) AccessChain 208(particleIn) 125 326 125 - 329: 84(fvec4) Load 328 + 328: 236(ptr) AccessChain 208(particleIn) 126 326 126 + 329: 85(fvec4) Load 328 330: 18(fvec3) VectorShuffle 329 329 0 1 2 Store 327(param) 330 332: 18(fvec3) Load 266(pos) Store 331(param) 332 - 334: 127(ptr) AccessChain 122 125 213 + 334: 128(ptr) AccessChain 123 126 213 335: 8(float) Load 334 Store 333(param) 335 336: 18(fvec3) FunctionCall 30(springForce(vf3;vf3;f1;) 327(param) 331(param) 333(param) @@ -612,9 +612,9 @@ spv.debuginfo.hlsl.comp 341: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 342 342 16 16 339: 142(ptr) AccessChain 60(id) 38 343: 11(int) Load 339 - 344: 153(ptr) AccessChain 122 125 152 38 - 345: 86(int) Load 344 - 346: 86(int) ISub 345 244 + 344: 153(ptr) AccessChain 123 126 152 38 + 345: 87(int) Load 344 + 346: 87(int) ISub 345 244 347: 11(int) Bitcast 346 348: 171(bool) ULessThan 343 347 SelectionMerge 350 None @@ -623,17 +623,17 @@ spv.debuginfo.hlsl.comp 352: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 353: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 354 354 16 16 351: 11(int) Load 144(index) - 355: 153(ptr) AccessChain 122 125 152 16 - 356: 86(int) Load 355 + 355: 153(ptr) AccessChain 123 126 152 16 + 356: 87(int) Load 355 357: 11(int) Bitcast 356 358: 11(int) IAdd 351 357 - 361: 236(ptr) AccessChain 208(particleIn) 125 358 125 - 362: 84(fvec4) Load 361 + 361: 236(ptr) AccessChain 208(particleIn) 126 358 126 + 362: 85(fvec4) Load 361 363: 18(fvec3) VectorShuffle 362 362 0 1 2 Store 360(param) 363 365: 18(fvec3) Load 266(pos) Store 364(param) 365 - 367: 127(ptr) AccessChain 122 125 359 + 367: 128(ptr) AccessChain 123 126 359 368: 8(float) Load 367 Store 366(param) 368 369: 18(fvec3) FunctionCall 30(springForce(vf3;vf3;f1;) 360(param) 364(param) 366(param) @@ -653,17 +653,17 @@ spv.debuginfo.hlsl.comp 381: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 382: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 383 383 16 16 380: 11(int) Load 144(index) - 384: 153(ptr) AccessChain 122 125 152 16 - 385: 86(int) Load 384 + 384: 153(ptr) AccessChain 123 126 152 16 + 385: 87(int) Load 384 386: 11(int) Bitcast 385 387: 11(int) ISub 380 386 - 389: 236(ptr) AccessChain 208(particleIn) 125 387 125 - 390: 84(fvec4) Load 389 + 389: 236(ptr) AccessChain 208(particleIn) 126 387 126 + 390: 85(fvec4) Load 389 391: 18(fvec3) VectorShuffle 390 390 0 1 2 Store 388(param) 391 393: 18(fvec3) Load 266(pos) Store 392(param) 393 - 395: 127(ptr) AccessChain 122 125 359 + 395: 128(ptr) AccessChain 123 126 359 396: 8(float) Load 395 Store 394(param) 396 397: 18(fvec3) FunctionCall 30(springForce(vf3;vf3;f1;) 388(param) 392(param) 394(param) @@ -679,9 +679,9 @@ spv.debuginfo.hlsl.comp 405: 171(bool) UGreaterThan 404 16 406: 142(ptr) AccessChain 60(id) 38 407: 11(int) Load 406 - 408: 153(ptr) AccessChain 122 125 152 38 - 409: 86(int) Load 408 - 410: 86(int) ISub 409 244 + 408: 153(ptr) AccessChain 123 126 152 38 + 409: 87(int) Load 408 + 410: 87(int) ISub 409 244 411: 11(int) Bitcast 410 412: 171(bool) ULessThan 407 411 413: 171(bool) LogicalAnd 405 412 @@ -691,18 +691,18 @@ spv.debuginfo.hlsl.comp 417: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 418: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 419 419 16 16 416: 11(int) Load 144(index) - 420: 153(ptr) AccessChain 122 125 152 16 - 421: 86(int) Load 420 + 420: 153(ptr) AccessChain 123 126 152 16 + 421: 87(int) Load 420 422: 11(int) Bitcast 421 423: 11(int) IAdd 416 422 424: 11(int) ISub 423 38 - 427: 236(ptr) AccessChain 208(particleIn) 125 424 125 - 428: 84(fvec4) Load 427 + 427: 236(ptr) AccessChain 208(particleIn) 126 424 126 + 428: 85(fvec4) Load 427 429: 18(fvec3) VectorShuffle 428 428 0 1 2 Store 426(param) 429 431: 18(fvec3) Load 266(pos) Store 430(param) 431 - 433: 127(ptr) AccessChain 122 125 425 + 433: 128(ptr) AccessChain 123 126 425 434: 8(float) Load 433 Store 432(param) 434 435: 18(fvec3) FunctionCall 30(springForce(vf3;vf3;f1;) 426(param) 430(param) 432(param) @@ -726,18 +726,18 @@ spv.debuginfo.hlsl.comp 451: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 452: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 453 453 16 16 450: 11(int) Load 144(index) - 454: 153(ptr) AccessChain 122 125 152 16 - 455: 86(int) Load 454 + 454: 153(ptr) AccessChain 123 126 152 16 + 455: 87(int) Load 454 456: 11(int) Bitcast 455 457: 11(int) ISub 450 456 458: 11(int) ISub 457 38 - 460: 236(ptr) AccessChain 208(particleIn) 125 458 125 - 461: 84(fvec4) Load 460 + 460: 236(ptr) AccessChain 208(particleIn) 126 458 126 + 461: 85(fvec4) Load 460 462: 18(fvec3) VectorShuffle 461 461 0 1 2 Store 459(param) 462 464: 18(fvec3) Load 266(pos) Store 463(param) 464 - 466: 127(ptr) AccessChain 122 125 425 + 466: 128(ptr) AccessChain 123 126 425 467: 8(float) Load 466 Store 465(param) 467 468: 18(fvec3) FunctionCall 30(springForce(vf3;vf3;f1;) 459(param) 463(param) 465(param) @@ -750,16 +750,16 @@ spv.debuginfo.hlsl.comp 473: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 474 474 16 16 471: 142(ptr) AccessChain 60(id) 16 475: 11(int) Load 471 - 476: 153(ptr) AccessChain 122 125 152 16 - 477: 86(int) Load 476 - 478: 86(int) ISub 477 244 + 476: 153(ptr) AccessChain 123 126 152 16 + 477: 87(int) Load 476 + 478: 87(int) ISub 477 244 479: 11(int) Bitcast 478 480: 171(bool) ULessThan 475 479 481: 142(ptr) AccessChain 60(id) 38 482: 11(int) Load 481 - 483: 153(ptr) AccessChain 122 125 152 38 - 484: 86(int) Load 483 - 485: 86(int) ISub 484 244 + 483: 153(ptr) AccessChain 123 126 152 38 + 484: 87(int) Load 483 + 485: 87(int) ISub 484 244 486: 11(int) Bitcast 485 487: 171(bool) ULessThan 482 486 488: 171(bool) LogicalAnd 480 487 @@ -769,18 +769,18 @@ spv.debuginfo.hlsl.comp 492: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 493: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 494 494 16 16 491: 11(int) Load 144(index) - 495: 153(ptr) AccessChain 122 125 152 16 - 496: 86(int) Load 495 + 495: 153(ptr) AccessChain 123 126 152 16 + 496: 87(int) Load 495 497: 11(int) Bitcast 496 498: 11(int) IAdd 491 497 499: 11(int) IAdd 498 38 - 501: 236(ptr) AccessChain 208(particleIn) 125 499 125 - 502: 84(fvec4) Load 501 + 501: 236(ptr) AccessChain 208(particleIn) 126 499 126 + 502: 85(fvec4) Load 501 503: 18(fvec3) VectorShuffle 502 502 0 1 2 Store 500(param) 503 505: 18(fvec3) Load 266(pos) Store 504(param) 505 - 507: 127(ptr) AccessChain 122 125 425 + 507: 128(ptr) AccessChain 123 126 425 508: 8(float) Load 507 Store 506(param) 508 509: 18(fvec3) FunctionCall 30(springForce(vf3;vf3;f1;) 500(param) 504(param) 506(param) @@ -793,9 +793,9 @@ spv.debuginfo.hlsl.comp 514: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 515 515 16 16 512: 142(ptr) AccessChain 60(id) 16 516: 11(int) Load 512 - 517: 153(ptr) AccessChain 122 125 152 16 - 518: 86(int) Load 517 - 519: 86(int) ISub 518 244 + 517: 153(ptr) AccessChain 123 126 152 16 + 518: 87(int) Load 517 + 519: 87(int) ISub 518 244 520: 11(int) Bitcast 519 521: 171(bool) ULessThan 516 520 522: 142(ptr) AccessChain 60(id) 38 @@ -808,18 +808,18 @@ spv.debuginfo.hlsl.comp 529: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 530: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 531 531 16 16 528: 11(int) Load 144(index) - 532: 153(ptr) AccessChain 122 125 152 16 - 533: 86(int) Load 532 + 532: 153(ptr) AccessChain 123 126 152 16 + 533: 87(int) Load 532 534: 11(int) Bitcast 533 535: 11(int) ISub 528 534 536: 11(int) IAdd 535 38 - 538: 236(ptr) AccessChain 208(particleIn) 125 536 125 - 539: 84(fvec4) Load 538 + 538: 236(ptr) AccessChain 208(particleIn) 126 536 126 + 539: 85(fvec4) Load 538 540: 18(fvec3) VectorShuffle 539 539 0 1 2 Store 537(param) 540 542: 18(fvec3) Load 266(pos) Store 541(param) 542 - 544: 127(ptr) AccessChain 122 125 425 + 544: 128(ptr) AccessChain 123 126 425 545: 8(float) Load 544 Store 543(param) 545 546: 18(fvec3) FunctionCall 30(springForce(vf3;vf3;f1;) 537(param) 541(param) 543(param) @@ -830,7 +830,7 @@ spv.debuginfo.hlsl.comp 527: Label 551: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 552: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 553 553 16 16 - 550: 127(ptr) AccessChain 122 125 549 + 550: 128(ptr) AccessChain 123 126 549 554: 8(float) Load 550 555: 8(float) FNegate 554 556: 18(fvec3) Load 276(vel) @@ -841,7 +841,7 @@ spv.debuginfo.hlsl.comp 565: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 563 563 16 16 564: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 561 560(f) 44 566: 18(fvec3) Load 252(force) - 567: 127(ptr) AccessChain 122 125 244 + 567: 128(ptr) AccessChain 123 126 244 568: 8(float) Load 567 569: 8(float) FDiv 216 568 570: 18(fvec3) VectorTimesScalar 566 569 @@ -850,54 +850,54 @@ spv.debuginfo.hlsl.comp 571: 11(int) Load 144(index) 574: 18(fvec3) Load 266(pos) 575: 18(fvec3) Load 276(vel) - 576: 127(ptr) AccessChain 122 125 125 + 576: 128(ptr) AccessChain 123 126 126 577: 8(float) Load 576 578: 18(fvec3) VectorTimesScalar 575 577 579: 18(fvec3) FAdd 574 578 581: 18(fvec3) Load 560(f) 582: 18(fvec3) VectorTimesScalar 581 580 - 583: 127(ptr) AccessChain 122 125 125 + 583: 128(ptr) AccessChain 123 126 126 584: 8(float) Load 583 585: 18(fvec3) VectorTimesScalar 582 584 - 586: 127(ptr) AccessChain 122 125 125 + 586: 128(ptr) AccessChain 123 126 126 587: 8(float) Load 586 588: 18(fvec3) VectorTimesScalar 585 587 589: 18(fvec3) FAdd 579 588 590: 8(float) CompositeExtract 589 0 591: 8(float) CompositeExtract 589 1 592: 8(float) CompositeExtract 589 2 - 593: 84(fvec4) CompositeConstruct 590 591 592 216 - 594: 236(ptr) AccessChain 230(particleOut) 125 571 125 + 593: 85(fvec4) CompositeConstruct 590 591 592 216 + 594: 236(ptr) AccessChain 230(particleOut) 126 571 126 Store 594 593 596: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 597 597 16 16 595: 11(int) Load 144(index) 598: 18(fvec3) Load 276(vel) 599: 18(fvec3) Load 560(f) - 600: 127(ptr) AccessChain 122 125 125 + 600: 128(ptr) AccessChain 123 126 126 601: 8(float) Load 600 602: 18(fvec3) VectorTimesScalar 599 601 603: 18(fvec3) FAdd 598 602 604: 8(float) CompositeExtract 603 0 605: 8(float) CompositeExtract 603 1 606: 8(float) CompositeExtract 603 2 - 607: 84(fvec4) CompositeConstruct 604 605 606 245 - 608: 236(ptr) AccessChain 230(particleOut) 125 595 244 + 607: 85(fvec4) CompositeConstruct 604 605 606 245 + 608: 236(ptr) AccessChain 230(particleOut) 126 595 244 Store 608 607 614: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 612 612 16 16 613: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 610 609(sphereDist) 44 615: 11(int) Load 144(index) - 616: 236(ptr) AccessChain 230(particleOut) 125 615 125 - 617: 84(fvec4) Load 616 + 616: 236(ptr) AccessChain 230(particleOut) 126 615 126 + 617: 85(fvec4) Load 616 618: 18(fvec3) VectorShuffle 617 617 0 1 2 - 620: 236(ptr) AccessChain 122 125 619 - 621: 84(fvec4) Load 620 + 620: 236(ptr) AccessChain 123 126 619 + 621: 85(fvec4) Load 620 622: 18(fvec3) VectorShuffle 621 621 0 1 2 623: 18(fvec3) FSub 618 622 Store 609(sphereDist) 623 625: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 626 626 16 16 624: 18(fvec3) Load 609(sphereDist) 627: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 624 - 629: 127(ptr) AccessChain 122 125 628 + 629: 128(ptr) AccessChain 123 126 628 630: 8(float) Load 629 632: 8(float) FAdd 630 631 633: 171(bool) FOrdLessThan 627 632 @@ -907,34 +907,34 @@ spv.debuginfo.hlsl.comp 637: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 638: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 639 639 16 16 636: 11(int) Load 144(index) - 640: 236(ptr) AccessChain 122 125 619 - 641: 84(fvec4) Load 640 + 640: 236(ptr) AccessChain 123 126 619 + 641: 85(fvec4) Load 640 642: 18(fvec3) VectorShuffle 641 641 0 1 2 643: 18(fvec3) Load 609(sphereDist) 644: 18(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 643 - 645: 127(ptr) AccessChain 122 125 628 + 645: 128(ptr) AccessChain 123 126 628 646: 8(float) Load 645 647: 8(float) FAdd 646 631 648: 18(fvec3) VectorTimesScalar 644 647 649: 18(fvec3) FAdd 642 648 - 650: 127(ptr) AccessChain 230(particleOut) 125 636 125 16 + 650: 128(ptr) AccessChain 230(particleOut) 126 636 126 16 651: 8(float) CompositeExtract 649 0 Store 650 651 - 652: 127(ptr) AccessChain 230(particleOut) 125 636 125 38 + 652: 128(ptr) AccessChain 230(particleOut) 126 636 126 38 653: 8(float) CompositeExtract 649 1 Store 652 653 - 654: 127(ptr) AccessChain 230(particleOut) 125 636 125 49 + 654: 128(ptr) AccessChain 230(particleOut) 126 636 126 49 655: 8(float) CompositeExtract 649 2 Store 654 655 657: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 658 658 16 16 656: 11(int) Load 144(index) - 659: 236(ptr) AccessChain 230(particleOut) 125 656 244 + 659: 236(ptr) AccessChain 230(particleOut) 126 656 244 Store 659 246 Branch 635 635: Label 681: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 682: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 667 667 16 16 - 680: 678(ptr) AccessChain 676 125 125 + 680: 678(ptr) AccessChain 676 126 126 683: 11(int) Load 680 684: 171(bool) IEqual 683 38 SelectionMerge 686 None @@ -964,8 +964,8 @@ spv.debuginfo.hlsl.comp 713: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 710 709(a) 44 716: 11(int) Load 144(index) 717: 11(int) ISub 716 38 - 718: 236(ptr) AccessChain 208(particleIn) 125 717 125 - 719: 84(fvec4) Load 718 + 718: 236(ptr) AccessChain 208(particleIn) 126 717 126 + 719: 85(fvec4) Load 718 720: 18(fvec3) VectorShuffle 719 719 0 1 2 721: 18(fvec3) Load 266(pos) 722: 18(fvec3) FSub 720 721 @@ -973,13 +973,13 @@ spv.debuginfo.hlsl.comp 728: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 726 726 16 16 727: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 724 723(b) 44 729: 11(int) Load 144(index) - 730: 153(ptr) AccessChain 122 125 152 16 - 731: 86(int) Load 730 + 730: 153(ptr) AccessChain 123 126 152 16 + 731: 87(int) Load 730 732: 11(int) Bitcast 731 733: 11(int) ISub 729 732 734: 11(int) ISub 733 38 - 735: 236(ptr) AccessChain 208(particleIn) 125 734 125 - 736: 84(fvec4) Load 735 + 735: 236(ptr) AccessChain 208(particleIn) 126 734 126 + 736: 85(fvec4) Load 735 737: 18(fvec3) VectorShuffle 736 736 0 1 2 738: 18(fvec3) Load 266(pos) 739: 18(fvec3) FSub 737 738 @@ -987,12 +987,12 @@ spv.debuginfo.hlsl.comp 745: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 743 743 16 16 744: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 741 740(c) 44 746: 11(int) Load 144(index) - 747: 153(ptr) AccessChain 122 125 152 16 - 748: 86(int) Load 747 + 747: 153(ptr) AccessChain 123 126 152 16 + 748: 87(int) Load 747 749: 11(int) Bitcast 748 750: 11(int) ISub 746 749 - 751: 236(ptr) AccessChain 208(particleIn) 125 750 125 - 752: 84(fvec4) Load 751 + 751: 236(ptr) AccessChain 208(particleIn) 126 750 126 + 752: 85(fvec4) Load 751 753: 18(fvec3) VectorShuffle 752 752 0 1 2 754: 18(fvec3) Load 266(pos) 755: 18(fvec3) FSub 753 754 @@ -1014,9 +1014,9 @@ spv.debuginfo.hlsl.comp 769: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 770 770 16 16 767: 142(ptr) AccessChain 60(id) 16 771: 11(int) Load 767 - 772: 153(ptr) AccessChain 122 125 152 16 - 773: 86(int) Load 772 - 774: 86(int) ISub 773 244 + 772: 153(ptr) AccessChain 123 126 152 16 + 773: 87(int) Load 772 + 774: 87(int) ISub 773 244 775: 11(int) Bitcast 774 776: 171(bool) ULessThan 771 775 SelectionMerge 778 None @@ -1025,25 +1025,25 @@ spv.debuginfo.hlsl.comp 780: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 781: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 782 782 16 16 779: 11(int) Load 144(index) - 783: 153(ptr) AccessChain 122 125 152 16 - 784: 86(int) Load 783 + 783: 153(ptr) AccessChain 123 126 152 16 + 784: 87(int) Load 783 785: 11(int) Bitcast 784 786: 11(int) ISub 779 785 - 787: 236(ptr) AccessChain 208(particleIn) 125 786 125 - 788: 84(fvec4) Load 787 + 787: 236(ptr) AccessChain 208(particleIn) 126 786 126 + 788: 85(fvec4) Load 787 789: 18(fvec3) VectorShuffle 788 788 0 1 2 790: 18(fvec3) Load 266(pos) 791: 18(fvec3) FSub 789 790 Store 709(a) 791 793: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 794 794 16 16 792: 11(int) Load 144(index) - 795: 153(ptr) AccessChain 122 125 152 16 - 796: 86(int) Load 795 + 795: 153(ptr) AccessChain 123 126 152 16 + 796: 87(int) Load 795 797: 11(int) Bitcast 796 798: 11(int) ISub 792 797 799: 11(int) IAdd 798 38 - 800: 236(ptr) AccessChain 208(particleIn) 125 799 125 - 801: 84(fvec4) Load 800 + 800: 236(ptr) AccessChain 208(particleIn) 126 799 126 + 801: 85(fvec4) Load 800 802: 18(fvec3) VectorShuffle 801 801 0 1 2 803: 18(fvec3) Load 266(pos) 804: 18(fvec3) FSub 802 803 @@ -1051,8 +1051,8 @@ spv.debuginfo.hlsl.comp 806: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 807 807 16 16 805: 11(int) Load 144(index) 808: 11(int) IAdd 805 38 - 809: 236(ptr) AccessChain 208(particleIn) 125 808 125 - 810: 84(fvec4) Load 809 + 809: 236(ptr) AccessChain 208(particleIn) 126 808 126 + 810: 85(fvec4) Load 809 811: 18(fvec3) VectorShuffle 810 810 0 1 2 812: 18(fvec3) Load 266(pos) 813: 18(fvec3) FSub 811 812 @@ -1077,9 +1077,9 @@ spv.debuginfo.hlsl.comp 828: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 829 829 16 16 826: 142(ptr) AccessChain 60(id) 38 830: 11(int) Load 826 - 831: 153(ptr) AccessChain 122 125 152 38 - 832: 86(int) Load 831 - 833: 86(int) ISub 832 244 + 831: 153(ptr) AccessChain 123 126 152 38 + 832: 87(int) Load 831 + 833: 87(int) ISub 832 244 834: 11(int) Bitcast 833 835: 171(bool) ULessThan 830 834 SelectionMerge 837 None @@ -1096,25 +1096,25 @@ spv.debuginfo.hlsl.comp 847: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 64 848: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 849 849 16 16 846: 11(int) Load 144(index) - 850: 153(ptr) AccessChain 122 125 152 16 - 851: 86(int) Load 850 + 850: 153(ptr) AccessChain 123 126 152 16 + 851: 87(int) Load 850 852: 11(int) Bitcast 851 853: 11(int) IAdd 846 852 - 854: 236(ptr) AccessChain 208(particleIn) 125 853 125 - 855: 84(fvec4) Load 854 + 854: 236(ptr) AccessChain 208(particleIn) 126 853 126 + 855: 85(fvec4) Load 854 856: 18(fvec3) VectorShuffle 855 855 0 1 2 857: 18(fvec3) Load 266(pos) 858: 18(fvec3) FSub 856 857 Store 709(a) 858 860: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 861 861 16 16 859: 11(int) Load 144(index) - 862: 153(ptr) AccessChain 122 125 152 16 - 863: 86(int) Load 862 + 862: 153(ptr) AccessChain 123 126 152 16 + 863: 87(int) Load 862 864: 11(int) Bitcast 863 865: 11(int) IAdd 859 864 866: 11(int) ISub 865 38 - 867: 236(ptr) AccessChain 208(particleIn) 125 866 125 - 868: 84(fvec4) Load 867 + 867: 236(ptr) AccessChain 208(particleIn) 126 866 126 + 868: 85(fvec4) Load 867 869: 18(fvec3) VectorShuffle 868 868 0 1 2 870: 18(fvec3) Load 266(pos) 871: 18(fvec3) FSub 869 870 @@ -1122,8 +1122,8 @@ spv.debuginfo.hlsl.comp 873: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 874 874 16 16 872: 11(int) Load 144(index) 875: 11(int) ISub 872 38 - 876: 236(ptr) AccessChain 208(particleIn) 125 875 125 - 877: 84(fvec4) Load 876 + 876: 236(ptr) AccessChain 208(particleIn) 126 875 126 + 877: 85(fvec4) Load 876 878: 18(fvec3) VectorShuffle 877 877 0 1 2 879: 18(fvec3) Load 266(pos) 880: 18(fvec3) FSub 878 879 @@ -1145,9 +1145,9 @@ spv.debuginfo.hlsl.comp 894: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 895 895 16 16 892: 142(ptr) AccessChain 60(id) 16 896: 11(int) Load 892 - 897: 153(ptr) AccessChain 122 125 152 16 - 898: 86(int) Load 897 - 899: 86(int) ISub 898 244 + 897: 153(ptr) AccessChain 123 126 152 16 + 898: 87(int) Load 897 + 899: 87(int) ISub 898 244 900: 11(int) Bitcast 899 901: 171(bool) ULessThan 896 900 SelectionMerge 903 None @@ -1157,33 +1157,33 @@ spv.debuginfo.hlsl.comp 906: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 907 907 16 16 904: 11(int) Load 144(index) 908: 11(int) IAdd 904 38 - 909: 236(ptr) AccessChain 208(particleIn) 125 908 125 - 910: 84(fvec4) Load 909 + 909: 236(ptr) AccessChain 208(particleIn) 126 908 126 + 910: 85(fvec4) Load 909 911: 18(fvec3) VectorShuffle 910 910 0 1 2 912: 18(fvec3) Load 266(pos) 913: 18(fvec3) FSub 911 912 Store 709(a) 913 915: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 916 916 16 16 914: 11(int) Load 144(index) - 917: 153(ptr) AccessChain 122 125 152 16 - 918: 86(int) Load 917 + 917: 153(ptr) AccessChain 123 126 152 16 + 918: 87(int) Load 917 919: 11(int) Bitcast 918 920: 11(int) IAdd 914 919 921: 11(int) IAdd 920 38 - 922: 236(ptr) AccessChain 208(particleIn) 125 921 125 - 923: 84(fvec4) Load 922 + 922: 236(ptr) AccessChain 208(particleIn) 126 921 126 + 923: 85(fvec4) Load 922 924: 18(fvec3) VectorShuffle 923 923 0 1 2 925: 18(fvec3) Load 266(pos) 926: 18(fvec3) FSub 924 925 Store 723(b) 926 928: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 34 929 929 16 16 927: 11(int) Load 144(index) - 930: 153(ptr) AccessChain 122 125 152 16 - 931: 86(int) Load 930 + 930: 153(ptr) AccessChain 123 126 152 16 + 931: 87(int) Load 930 932: 11(int) Bitcast 931 933: 11(int) IAdd 927 932 - 934: 236(ptr) AccessChain 208(particleIn) 125 933 125 - 935: 84(fvec4) Load 934 + 934: 236(ptr) AccessChain 208(particleIn) 126 933 126 + 935: 85(fvec4) Load 934 936: 18(fvec3) VectorShuffle 935 935 0 1 2 937: 18(fvec3) Load 266(pos) 938: 18(fvec3) FSub 936 937 @@ -1212,8 +1212,8 @@ spv.debuginfo.hlsl.comp 957: 8(float) CompositeExtract 956 0 958: 8(float) CompositeExtract 956 1 959: 8(float) CompositeExtract 956 2 - 960: 84(fvec4) CompositeConstruct 957 958 959 245 - 961: 236(ptr) AccessChain 230(particleOut) 125 951 549 + 960: 85(fvec4) CompositeConstruct 957 958 959 245 + 961: 236(ptr) AccessChain 230(particleOut) 126 951 549 Store 961 960 Branch 686 686: Label diff --git a/Test/baseResults/spv.debuginfo.hlsl.frag.out b/Test/baseResults/spv.debuginfo.hlsl.frag.out index 0831b73c..5e5846e8 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.frag.out +++ b/Test/baseResults/spv.debuginfo.hlsl.frag.out @@ -29,44 +29,44 @@ spv.debuginfo.hlsl.frag 56: String "offset" 64: String "filterPCF" 68: String "sc" - 83: String "shadow" - 87: String "fragcolor" - 91: String "fragPos" - 98: String "@main" - 102: String "inUV" - 114: String "shadowCoord" - 141: String "bool" - 152: String "dist" - 159: String "type.2d.image" - 160: String "@type.2d.image" - 166: String "textureShadowMap" - 171: String "type.sampler" - 172: String "@type.sampler" - 177: String "samplerShadowMap" - 181: String "type.sampled.image" - 182: String "@type.sampled.image" - 227: String "sizeQueryTemp" - 234: String "int" - 242: String "texDim" - 258: String "elements" - 265: String "levels" - 272: String "scale" - 279: String "dx" - 291: String "dy" - 303: String "shadowFactor" - 309: String "count" - 316: String "range" - 323: String "x" - 343: String "y" - 409: String "i" - 427: String "shadowClip" - 442: String "color" - 448: String "viewMatrix" - 452: String "Light" - 458: String "lights" - 461: String "displayDebugTarget" - 466: String "UBO" - 469: String "ubo" + 84: String "shadow" + 88: String "fragcolor" + 93: String "fragPos" + 100: String "@main" + 104: String "inUV" + 117: String "shadowCoord" + 144: String "bool" + 155: String "dist" + 162: String "type.2d.image" + 163: String "@type.2d.image" + 169: String "textureShadowMap" + 174: String "type.sampler" + 175: String "@type.sampler" + 180: String "samplerShadowMap" + 184: String "type.sampled.image" + 185: String "@type.sampled.image" + 229: String "sizeQueryTemp" + 236: String "int" + 244: String "texDim" + 260: String "elements" + 267: String "levels" + 274: String "scale" + 281: String "dx" + 293: String "dy" + 305: String "shadowFactor" + 311: String "count" + 318: String "range" + 325: String "x" + 345: String "y" + 410: String "i" + 428: String "shadowClip" + 443: String "color" + 449: String "viewMatrix" + 453: String "Light" + 459: String "lights" + 462: String "displayDebugTarget" + 467: String "UBO" + 470: String "ubo" 523: String "textureposition" 528: String "samplerposition" 538: String "normal" @@ -98,49 +98,49 @@ spv.debuginfo.hlsl.frag Name 62 "filterPCF(vf4;f1;" Name 60 "sc" Name 61 "layer" - Name 81 "shadow(vf3;vf3;" - Name 79 "fragcolor" - Name 80 "fragPos" - Name 96 "@main(vf2;" - Name 95 "inUV" - Name 106 "shadow" - Name 112 "shadowCoord" - Name 150 "dist" - Name 164 "textureShadowMap" - Name 175 "samplerShadowMap" - Name 225 "sizeQueryTemp" - Name 240 "texDim" - Name 256 "elements" - Name 263 "levels" - Name 270 "scale" - Name 277 "dx" - Name 289 "dy" - Name 301 "shadowFactor" - Name 307 "count" - Name 314 "range" - Name 321 "x" - Name 341 "y" - Name 374 "param" + Name 82 "shadow(vf3;vf3;" + Name 80 "fragcolor" + Name 81 "fragPos" + Name 98 "@main(vf2;" + Name 97 "inUV" + Name 109 "shadow" + Name 115 "shadowCoord" + Name 153 "dist" + Name 167 "textureShadowMap" + Name 178 "samplerShadowMap" + Name 227 "sizeQueryTemp" + Name 242 "texDim" + Name 258 "elements" + Name 265 "levels" + Name 272 "scale" + Name 279 "dx" + Name 291 "dy" + Name 303 "shadowFactor" + Name 309 "count" + Name 316 "range" + Name 323 "x" + Name 343 "y" Name 376 "param" Name 378 "param" - Name 407 "i" - Name 425 "shadowClip" - Name 440 "Light" - MemberName 440(Light) 0 "position" - MemberName 440(Light) 1 "target" - MemberName 440(Light) 2 "color" - MemberName 440(Light) 3 "viewMatrix" - Name 455 "UBO" - MemberName 455(UBO) 0 "viewPos" - MemberName 455(UBO) 1 "lights" - MemberName 455(UBO) 2 "useShadows" - MemberName 455(UBO) 3 "displayDebugTarget" - Name 467 "ubo" - MemberName 467(ubo) 0 "ubo" - Name 475 "" - Name 483 "shadowFactor" - Name 490 "param" - Name 492 "param" + Name 380 "param" + Name 408 "i" + Name 426 "shadowClip" + Name 441 "Light" + MemberName 441(Light) 0 "position" + MemberName 441(Light) 1 "target" + MemberName 441(Light) 2 "color" + MemberName 441(Light) 3 "viewMatrix" + Name 456 "UBO" + MemberName 456(UBO) 0 "viewPos" + MemberName 456(UBO) 1 "lights" + MemberName 456(UBO) 2 "useShadows" + MemberName 456(UBO) 3 "displayDebugTarget" + Name 468 "ubo" + MemberName 468(ubo) 0 "ubo" + Name 476 "" + Name 484 "shadowFactor" + Name 491 "param" + Name 493 "param" Name 512 "fragPos" Name 521 "textureposition" Name 526 "samplerposition" @@ -176,25 +176,25 @@ spv.debuginfo.hlsl.frag Name 896 "inUV" Name 899 "@entryPointOutput" Name 900 "param" - Decorate 164(textureShadowMap) Binding 5 - Decorate 164(textureShadowMap) DescriptorSet 0 - Decorate 175(samplerShadowMap) Binding 5 - Decorate 175(samplerShadowMap) DescriptorSet 0 - MemberDecorate 440(Light) 0 Offset 0 - MemberDecorate 440(Light) 1 Offset 16 - MemberDecorate 440(Light) 2 Offset 32 - MemberDecorate 440(Light) 3 RowMajor - MemberDecorate 440(Light) 3 MatrixStride 16 - MemberDecorate 440(Light) 3 Offset 48 - Decorate 453 ArrayStride 112 - MemberDecorate 455(UBO) 0 Offset 0 - MemberDecorate 455(UBO) 1 Offset 16 - MemberDecorate 455(UBO) 2 Offset 352 - MemberDecorate 455(UBO) 3 Offset 356 - Decorate 467(ubo) Block - MemberDecorate 467(ubo) 0 Offset 0 - Decorate 475 Binding 4 - Decorate 475 DescriptorSet 0 + Decorate 167(textureShadowMap) Binding 5 + Decorate 167(textureShadowMap) DescriptorSet 0 + Decorate 178(samplerShadowMap) Binding 5 + Decorate 178(samplerShadowMap) DescriptorSet 0 + MemberDecorate 441(Light) 0 Offset 0 + MemberDecorate 441(Light) 1 Offset 16 + MemberDecorate 441(Light) 2 Offset 32 + MemberDecorate 441(Light) 3 RowMajor + MemberDecorate 441(Light) 3 MatrixStride 16 + MemberDecorate 441(Light) 3 Offset 48 + Decorate 454 ArrayStride 112 + MemberDecorate 456(UBO) 0 Offset 0 + MemberDecorate 456(UBO) 1 Offset 16 + MemberDecorate 456(UBO) 2 Offset 352 + MemberDecorate 456(UBO) 3 Offset 356 + Decorate 468(ubo) Block + MemberDecorate 468(ubo) 0 Offset 0 + Decorate 476 Binding 4 + Decorate 476 DescriptorSet 0 Decorate 521(textureposition) Binding 1 Decorate 521(textureposition) DescriptorSet 0 Decorate 526(samplerposition) Binding 1 @@ -249,175 +249,175 @@ spv.debuginfo.hlsl.frag 66: 11(int) Constant 78 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 64 59 40 66 16 43 64 17 66 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 68 20 40 66 16 65 19 44 - 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 10 40 66 16 65 19 27 - 73: TypeVector 8(float) 3 - 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 - 75: TypePointer Function 73(fvec3) - 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 74 22 16 - 77: TypeFunction 73(fvec3) 75(ptr) 75(ptr) - 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 74 74 74 - 85: 11(int) Constant 101 - 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 83 78 40 85 16 43 83 17 85 - 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 74 40 85 16 84 19 44 - 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 91 74 40 85 16 84 19 27 - 93: TypeFunction 18(fvec4) 29(ptr) - 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 20 28 - 100: 11(int) Constant 119 - 99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 98 94 40 100 16 43 98 17 100 - 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 102 28 40 100 16 99 19 44 - 108: 11(int) Constant 62 - 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 10 40 108 16 39 19 - 111: 8(float) Constant 1065353216 - 115: 11(int) Constant 63 - 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 114 20 40 115 16 39 19 - 125: 11(int) Constant 64 - 127: 8(float) Constant 1056964608 - 137: 11(int) Constant 66 - 139: 8(float) Constant 3212836864 - 140: TypeBool - 142: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 141 14 27 16 - 153: 11(int) Constant 68 - 151: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 152 10 40 153 16 39 19 - 157: TypeImage 8(float) 2D array sampled format:Unknown - 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 159 16 40 153 16 43 160 161 17 - 162: TypePointer UniformConstant 157 - 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 158 16 16 -164(textureShadowMap): 162(ptr) Variable UniformConstant - 167: 11(int) Constant 8 - 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 166 158 40 153 16 43 166 164(textureShadowMap) 167 - 169: TypeSampler - 170: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 171 44 40 153 16 43 172 161 17 - 173: TypePointer UniformConstant 169 - 174: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 170 16 16 -175(samplerShadowMap): 173(ptr) Variable UniformConstant - 176: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 177 170 40 153 16 43 177 175(samplerShadowMap) 167 - 179: TypeSampledImage 157 - 180: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 181 16 40 153 16 43 182 161 17 - 196: 11(int) Constant 69 - 198: 8(float) Constant 0 - 207: 8(float) Constant 1048576000 - 210: 11(int) Constant 71 - 215: 11(int) Constant 74 - 221: TypeVector 11(int) 3 - 222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 13 17 - 223: TypePointer Function 221(ivec3) - 224: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 222 22 16 - 228: 11(int) Constant 80 - 226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 227 222 40 228 16 65 19 - 233: TypeInt 32 1 - 235: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 234 14 19 16 - 236: TypeVector 233(int) 2 - 237: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 235 27 - 238: TypePointer Function 236(ivec2) - 239: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 237 22 16 - 241: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 242 237 40 228 16 65 19 - 244: TypePointer Function 11(int) - 245: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 22 16 - 249: TypePointer Function 233(int) - 250: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 235 22 16 - 257: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 258 235 40 228 16 65 19 - 264: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 265 235 40 228 16 65 19 - 273: 11(int) Constant 81 - 271: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 272 10 40 273 16 65 19 - 276: 8(float) Constant 1069547520 - 280: 11(int) Constant 82 - 278: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 279 10 40 280 16 65 19 - 292: 11(int) Constant 83 - 290: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 291 10 40 292 16 65 19 - 304: 11(int) Constant 85 - 302: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 303 10 40 304 16 65 19 - 310: 11(int) Constant 86 - 308: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 309 235 40 310 16 65 19 - 313: 233(int) Constant 0 - 317: 11(int) Constant 87 - 315: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 316 235 40 317 16 65 19 - 320: 233(int) Constant 1 - 324: 11(int) Constant 89 - 322: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 323 235 40 324 16 65 19 - 344: 11(int) Constant 91 - 342: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 343 235 40 344 16 65 19 - 365: 11(int) Constant 93 - 384: 11(int) Constant 94 - 398: 11(int) Constant 98 - 410: 11(int) Constant 102 - 408: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 409 235 40 410 16 84 19 - 423: 233(int) Constant 3 - 428: 11(int) Constant 104 - 426: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 427 20 40 428 16 84 19 - 437: TypeMatrix 18(fvec4) 4 - 439: 140(bool) ConstantTrue - 438: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 439 - 440(Light): TypeStruct 18(fvec4) 18(fvec4) 18(fvec4) 437 - 443: 11(int) Constant 46 - 444: 11(int) Constant 14 - 441: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 442 20 40 443 444 16 16 17 - 445: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 442 20 40 443 444 16 16 17 - 446: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 442 20 40 443 444 16 16 17 - 449: 11(int) Constant 47 - 450: 11(int) Constant 21 - 447: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 448 438 40 449 450 16 16 17 - 451: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 452 44 40 428 16 43 452 16 17 441 445 446 447 - 453: TypeArray 440(Light) 17 - 454: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 451 17 - 455(UBO): TypeStruct 18(fvec4) 453 233(int) 233(int) - 456: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 442 20 40 443 444 16 16 17 - 459: 11(int) Constant 53 - 457: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 458 454 40 459 444 16 16 17 - 462: 11(int) Constant 55 - 463: 11(int) Constant 24 - 460: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 461 235 40 462 463 16 16 17 - 464: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 461 235 40 462 463 16 16 17 - 465: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 466 44 40 428 16 43 466 16 17 456 457 460 464 - 467(ubo): TypeStruct 455(UBO) - 470: 11(int) Constant 58 - 471: 11(int) Constant 37 - 468: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 469 465 40 470 471 16 16 17 - 472: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 469 44 40 428 16 43 469 16 17 468 - 473: TypePointer Uniform 467(ubo) - 474: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 472 27 16 - 475: 473(ptr) Variable Uniform - 476: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 472 40 428 16 43 2 475 167 - 478: TypePointer Uniform 437 - 479: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 438 27 16 - 485: 11(int) Constant 108 - 484: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 303 10 40 485 16 84 19 - 496: 11(int) Constant 113 - 506: 11(int) Constant 115 + 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 10 40 66 16 65 19 27 + 74: TypeVector 8(float) 3 + 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 + 76: TypePointer Function 74(fvec3) + 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 75 22 16 + 78: TypeFunction 74(fvec3) 76(ptr) 76(ptr) + 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 75 75 75 + 86: 11(int) Constant 101 + 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 84 79 40 86 16 43 84 17 86 + 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 75 40 86 16 85 19 44 + 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 75 40 86 16 85 19 27 + 95: TypeFunction 18(fvec4) 29(ptr) + 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 20 28 + 102: 11(int) Constant 119 + 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 100 96 40 102 16 43 100 17 102 + 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 104 28 40 102 16 101 19 44 + 111: 11(int) Constant 62 + 110: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 84 10 40 111 16 39 19 + 114: 8(float) Constant 1065353216 + 118: 11(int) Constant 63 + 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 117 20 40 118 16 39 19 + 128: 11(int) Constant 64 + 130: 8(float) Constant 1056964608 + 140: 11(int) Constant 66 + 142: 8(float) Constant 3212836864 + 143: TypeBool + 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 144 14 27 16 + 156: 11(int) Constant 68 + 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 155 10 40 156 16 39 19 + 160: TypeImage 8(float) 2D array sampled format:Unknown + 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) + 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 16 40 156 16 43 163 164 17 + 165: TypePointer UniformConstant 160 + 166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 161 16 16 +167(textureShadowMap): 165(ptr) Variable UniformConstant + 170: 11(int) Constant 8 + 168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 169 161 40 156 16 43 169 167(textureShadowMap) 170 + 172: TypeSampler + 173: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 44 40 156 16 43 175 164 17 + 176: TypePointer UniformConstant 172 + 177: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 173 16 16 +178(samplerShadowMap): 176(ptr) Variable UniformConstant + 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 180 173 40 156 16 43 180 178(samplerShadowMap) 170 + 182: TypeSampledImage 160 + 183: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 184 16 40 156 16 43 185 164 17 + 199: 11(int) Constant 69 + 201: 8(float) Constant 0 + 210: 8(float) Constant 1048576000 + 213: 11(int) Constant 71 + 218: 11(int) Constant 74 + 223: TypeVector 11(int) 3 + 224: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 13 17 + 225: TypePointer Function 223(ivec3) + 226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 224 22 16 + 230: 11(int) Constant 80 + 228: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 229 224 40 230 16 65 19 + 235: TypeInt 32 1 + 237: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 236 14 19 16 + 238: TypeVector 235(int) 2 + 239: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 237 27 + 240: TypePointer Function 238(ivec2) + 241: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 239 22 16 + 243: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 244 239 40 230 16 65 19 + 246: TypePointer Function 11(int) + 247: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 22 16 + 251: TypePointer Function 235(int) + 252: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 237 22 16 + 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 260 237 40 230 16 65 19 + 266: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 267 237 40 230 16 65 19 + 275: 11(int) Constant 81 + 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 274 10 40 275 16 65 19 + 278: 8(float) Constant 1069547520 + 282: 11(int) Constant 82 + 280: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 281 10 40 282 16 65 19 + 294: 11(int) Constant 83 + 292: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 293 10 40 294 16 65 19 + 306: 11(int) Constant 85 + 304: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 305 10 40 306 16 65 19 + 312: 11(int) Constant 86 + 310: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 311 237 40 312 16 65 19 + 315: 235(int) Constant 0 + 319: 11(int) Constant 87 + 317: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 318 237 40 319 16 65 19 + 322: 235(int) Constant 1 + 326: 11(int) Constant 89 + 324: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 325 237 40 326 16 65 19 + 346: 11(int) Constant 91 + 344: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 345 237 40 346 16 65 19 + 367: 11(int) Constant 93 + 386: 11(int) Constant 94 + 400: 11(int) Constant 98 + 411: 11(int) Constant 102 + 409: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 410 237 40 411 16 85 19 + 424: 235(int) Constant 3 + 429: 11(int) Constant 104 + 427: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 428 20 40 429 16 85 19 + 438: TypeMatrix 18(fvec4) 4 + 440: 143(bool) ConstantTrue + 439: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 440 + 441(Light): TypeStruct 18(fvec4) 18(fvec4) 18(fvec4) 438 + 444: 11(int) Constant 46 + 445: 11(int) Constant 14 + 442: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 443 20 40 444 445 16 16 17 + 446: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 443 20 40 444 445 16 16 17 + 447: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 443 20 40 444 445 16 16 17 + 450: 11(int) Constant 47 + 451: 11(int) Constant 21 + 448: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 449 439 40 450 451 16 16 17 + 452: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 453 44 40 429 16 43 453 16 17 442 446 447 448 + 454: TypeArray 441(Light) 17 + 455: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 452 17 + 456(UBO): TypeStruct 18(fvec4) 454 235(int) 235(int) + 457: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 443 20 40 444 445 16 16 17 + 460: 11(int) Constant 53 + 458: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 459 455 40 460 445 16 16 17 + 463: 11(int) Constant 55 + 464: 11(int) Constant 24 + 461: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 462 237 40 463 464 16 16 17 + 465: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 462 237 40 463 464 16 16 17 + 466: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 467 44 40 429 16 43 467 16 17 457 458 461 465 + 468(ubo): TypeStruct 456(UBO) + 471: 11(int) Constant 58 + 472: 11(int) Constant 37 + 469: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 470 466 40 471 472 16 16 17 + 473: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 470 44 40 429 16 43 470 16 17 469 + 474: TypePointer Uniform 468(ubo) + 475: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 473 27 16 + 476: 474(ptr) Variable Uniform + 477: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 473 40 429 16 43 2 476 170 + 479: TypePointer Uniform 438 + 480: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 439 27 16 + 486: 11(int) Constant 108 + 485: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 305 10 40 486 16 85 19 + 497: 11(int) Constant 113 + 507: 11(int) Constant 115 514: 11(int) Constant 121 - 513: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 91 74 40 514 16 99 19 + 513: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 75 40 514 16 101 19 517: TypeImage 8(float) 2D sampled format:Unknown - 518: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 159 16 40 514 16 43 160 161 17 + 518: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 16 40 514 16 43 163 164 17 519: TypePointer UniformConstant 517 520: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 518 16 16 521(textureposition): 519(ptr) Variable UniformConstant - 522: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 523 518 40 514 16 43 523 521(textureposition) 167 - 525: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 171 44 40 514 16 43 172 161 17 -526(samplerposition): 173(ptr) Variable UniformConstant - 527: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 528 525 40 514 16 43 528 526(samplerposition) 167 + 522: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 523 518 40 514 16 43 523 521(textureposition) 170 + 525: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 44 40 514 16 43 175 164 17 +526(samplerposition): 176(ptr) Variable UniformConstant + 527: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 528 525 40 514 16 43 528 526(samplerposition) 170 530: TypeSampledImage 517 - 531: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 181 16 40 514 16 43 182 161 17 + 531: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 184 16 40 514 16 43 185 164 17 539: 11(int) Constant 122 - 537: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 538 74 40 539 16 99 19 + 537: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 538 75 40 539 16 101 19 542(textureNormal): 519(ptr) Variable UniformConstant - 543: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 544 518 40 539 16 43 544 542(textureNormal) 167 - 546: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 171 44 40 539 16 43 172 161 17 -547(samplerNormal): 173(ptr) Variable UniformConstant - 548: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 549 546 40 539 16 43 549 547(samplerNormal) 167 + 543: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 544 518 40 539 16 43 544 542(textureNormal) 170 + 546: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 44 40 539 16 43 175 164 17 +547(samplerNormal): 176(ptr) Variable UniformConstant + 548: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 549 546 40 539 16 43 549 547(samplerNormal) 170 558: 11(int) Constant 123 - 556: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 557 20 40 558 16 99 19 + 556: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 557 20 40 558 16 101 19 561(textureAlbedo): 519(ptr) Variable UniformConstant - 562: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 563 518 40 558 16 43 563 561(textureAlbedo) 167 - 565: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 171 44 40 558 16 43 172 161 17 -566(samplerAlbedo): 173(ptr) Variable UniformConstant - 567: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 568 565 40 558 16 43 568 566(samplerAlbedo) 167 - 573: TypePointer Uniform 233(int) - 574: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 235 27 16 + 562: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 563 518 40 558 16 43 563 561(textureAlbedo) 170 + 565: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 174 44 40 558 16 43 175 164 17 +566(samplerAlbedo): 176(ptr) Variable UniformConstant + 567: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 568 565 40 558 16 43 568 566(samplerAlbedo) 170 + 573: TypePointer Uniform 235(int) + 574: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 237 27 16 577: 11(int) Constant 128 585: 11(int) Constant 129 595: 11(int) Constant 131 - 594: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 74 40 595 16 99 19 - 599: 73(fvec3) ConstantComposite 111 111 111 + 594: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 75 40 595 16 101 19 + 599: 74(fvec3) ConstantComposite 114 114 114 605: 11(int) Constant 132 611: 11(int) Constant 134 613: 11(int) Constant 135 @@ -431,50 +431,50 @@ spv.debuginfo.hlsl.frag 656: 11(int) Constant 150 658: 8(float) Constant 1036831949 663: 11(int) Constant 152 - 661: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 662 74 40 663 16 99 19 + 661: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 662 75 40 663 16 101 19 670: 11(int) Constant 154 - 669: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 409 235 40 670 16 99 19 + 669: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 410 237 40 670 16 101 19 687: 11(int) Constant 157 - 685: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 686 74 40 687 16 99 19 + 685: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 686 75 40 687 16 101 19 692: TypePointer Uniform 18(fvec4) 693: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 27 16 701: 11(int) Constant 159 - 700: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 152 10 40 701 16 99 19 + 700: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 155 10 40 701 16 101 19 708: 11(int) Constant 160 713: 11(int) Constant 163 - 711: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 712 74 40 713 16 99 19 + 711: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 712 75 40 713 16 101 19 723: 11(int) Constant 164 728: 11(int) Constant 166 - 726: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 727 10 40 728 16 99 19 + 726: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 727 10 40 728 16 101 19 731: 8(float) Constant 1064781546 735: 11(int) Constant 167 - 733: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 734 10 40 735 16 99 19 + 733: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 734 10 40 735 16 101 19 738: 8(float) Constant 1063781322 742: 11(int) Constant 168 - 740: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 741 10 40 742 16 99 19 + 740: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 741 10 40 742 16 101 19 745: 8(float) Constant 1120403456 749: 11(int) Constant 171 - 747: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 748 74 40 749 16 99 19 + 747: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 748 75 40 749 16 101 19 765: 11(int) Constant 174 - 763: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 764 10 40 765 16 99 19 + 763: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 764 10 40 765 16 101 19 774: 11(int) Constant 175 - 772: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 773 10 40 774 16 99 19 + 772: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 773 10 40 774 16 101 19 784: 11(int) Constant 176 - 782: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 783 10 40 784 16 99 19 + 782: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 783 10 40 784 16 101 19 793: 11(int) Constant 179 - 791: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 792 10 40 793 16 99 19 + 791: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 792 10 40 793 16 101 19 803: 11(int) Constant 180 - 801: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 802 74 40 803 16 99 19 + 801: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 802 75 40 803 16 101 19 811: 11(int) Constant 183 - 809: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 810 74 40 811 16 99 19 + 809: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 810 75 40 811 16 101 19 821: 11(int) Constant 184 - 819: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 820 10 40 821 16 99 19 + 819: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 820 10 40 821 16 101 19 831: 11(int) Constant 185 - 829: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 830 74 40 831 16 99 19 + 829: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 830 75 40 831 16 101 19 835: 8(float) Constant 1098907648 840: 8(float) Constant 1075838976 845: 11(int) Constant 187 - 853: 233(int) Constant 2 + 853: 235(int) Constant 2 870: 11(int) Constant 191 879: 11(int) Constant 193 886: 11(int) Constant 196 @@ -490,7 +490,7 @@ spv.debuginfo.hlsl.frag Store 894(inUV) 897 901: 26(fvec2) Load 894(inUV) Store 900(param) 901 - 902: 18(fvec4) FunctionCall 96(@main(vf2;) 900(param) + 902: 18(fvec4) FunctionCall 98(@main(vf2;) 900(param) Store 899(@entryPointOutput) 902 Return FunctionEnd @@ -499,401 +499,401 @@ spv.debuginfo.hlsl.frag 34(layer): 24(ptr) FunctionParameter 35(offset): 29(ptr) FunctionParameter 37: Label - 106(shadow): 24(ptr) Variable Function -112(shadowCoord): 21(ptr) Variable Function - 150(dist): 24(ptr) Variable Function + 109(shadow): 24(ptr) Variable Function +115(shadowCoord): 21(ptr) Variable Function + 153(dist): 24(ptr) Variable Function 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 42 42 16 16 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 46 33(P) 49 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 52 34(layer) 49 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 55 35(offset) 49 - 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 39 36(textureProj(vf4;f1;vf2;) - 110: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 108 108 16 16 - 109: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 107 106(shadow) 49 - Store 106(shadow) 111 - 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 115 115 16 16 - 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 113 112(shadowCoord) 49 - 118: 18(fvec4) Load 33(P) - 119: 24(ptr) AccessChain 33(P) 17 - 120: 8(float) Load 119 - 121: 18(fvec4) CompositeConstruct 120 120 120 120 - 122: 18(fvec4) FDiv 118 121 - Store 112(shadowCoord) 122 - 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 125 125 16 16 - 123: 18(fvec4) Load 112(shadowCoord) - 126: 26(fvec2) VectorShuffle 123 123 0 1 - 128: 26(fvec2) VectorTimesScalar 126 127 - 129: 26(fvec2) CompositeConstruct 127 127 - 130: 26(fvec2) FAdd 128 129 - 131: 24(ptr) AccessChain 112(shadowCoord) 16 - 132: 8(float) CompositeExtract 130 0 - Store 131 132 - 133: 24(ptr) AccessChain 112(shadowCoord) 44 - 134: 8(float) CompositeExtract 130 1 - Store 133 134 - 136: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 137 137 16 16 - 135: 24(ptr) AccessChain 112(shadowCoord) 27 - 138: 8(float) Load 135 - 143: 140(bool) FOrdGreaterThan 138 139 - 144: 24(ptr) AccessChain 112(shadowCoord) 27 - 145: 8(float) Load 144 - 146: 140(bool) FOrdLessThan 145 111 - 147: 140(bool) LogicalAnd 143 146 - SelectionMerge 149 None - BranchConditional 147 148 149 - 148: Label - 155: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 - 156: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 153 153 16 16 - 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 151 150(dist) 49 - 168: 157 Load 164(textureShadowMap) - 178: 169 Load 175(samplerShadowMap) - 183: 179 SampledImage 168 178 - 184: 18(fvec4) Load 112(shadowCoord) - 185: 26(fvec2) VectorShuffle 184 184 0 1 - 186: 26(fvec2) Load 35(offset) - 187: 26(fvec2) FAdd 185 186 - 188: 8(float) Load 34(layer) - 189: 8(float) CompositeExtract 187 0 - 190: 8(float) CompositeExtract 187 1 - 191: 73(fvec3) CompositeConstruct 189 190 188 - 192: 18(fvec4) ImageSampleImplicitLod 183 191 - 193: 8(float) CompositeExtract 192 0 - Store 150(dist) 193 - 195: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 196 196 16 16 - 194: 24(ptr) AccessChain 112(shadowCoord) 17 - 197: 8(float) Load 194 - 199: 140(bool) FOrdGreaterThan 197 198 - 200: 8(float) Load 150(dist) - 201: 24(ptr) AccessChain 112(shadowCoord) 27 - 202: 8(float) Load 201 - 203: 140(bool) FOrdLessThan 200 202 - 204: 140(bool) LogicalAnd 199 203 - SelectionMerge 206 None - BranchConditional 204 205 206 - 205: Label - 208: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 - 209: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 210 210 16 16 - Store 106(shadow) 207 - Branch 206 - 206: Label - 211: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 - Branch 149 - 149: Label - 213: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 - 214: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 215 215 16 16 - 212: 8(float) Load 106(shadow) - ReturnValue 212 + 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 39 36(textureProj(vf4;f1;vf2;) + 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 111 111 16 16 + 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 110 109(shadow) 49 + Store 109(shadow) 114 + 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 118 118 16 16 + 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 116 115(shadowCoord) 49 + 121: 18(fvec4) Load 33(P) + 122: 24(ptr) AccessChain 33(P) 17 + 123: 8(float) Load 122 + 124: 18(fvec4) CompositeConstruct 123 123 123 123 + 125: 18(fvec4) FDiv 121 124 + Store 115(shadowCoord) 125 + 127: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 128 128 16 16 + 126: 18(fvec4) Load 115(shadowCoord) + 129: 26(fvec2) VectorShuffle 126 126 0 1 + 131: 26(fvec2) VectorTimesScalar 129 130 + 132: 26(fvec2) CompositeConstruct 130 130 + 133: 26(fvec2) FAdd 131 132 + 134: 24(ptr) AccessChain 115(shadowCoord) 16 + 135: 8(float) CompositeExtract 133 0 + Store 134 135 + 136: 24(ptr) AccessChain 115(shadowCoord) 44 + 137: 8(float) CompositeExtract 133 1 + Store 136 137 + 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 140 140 16 16 + 138: 24(ptr) AccessChain 115(shadowCoord) 27 + 141: 8(float) Load 138 + 146: 143(bool) FOrdGreaterThan 141 142 + 147: 24(ptr) AccessChain 115(shadowCoord) 27 + 148: 8(float) Load 147 + 149: 143(bool) FOrdLessThan 148 114 + 150: 143(bool) LogicalAnd 146 149 + SelectionMerge 152 None + BranchConditional 150 151 152 + 151: Label + 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 + 159: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 156 156 16 16 + 157: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 154 153(dist) 49 + 171: 160 Load 167(textureShadowMap) + 181: 172 Load 178(samplerShadowMap) + 186: 182 SampledImage 171 181 + 187: 18(fvec4) Load 115(shadowCoord) + 188: 26(fvec2) VectorShuffle 187 187 0 1 + 189: 26(fvec2) Load 35(offset) + 190: 26(fvec2) FAdd 188 189 + 191: 8(float) Load 34(layer) + 192: 8(float) CompositeExtract 190 0 + 193: 8(float) CompositeExtract 190 1 + 194: 74(fvec3) CompositeConstruct 192 193 191 + 195: 18(fvec4) ImageSampleImplicitLod 186 194 + 196: 8(float) CompositeExtract 195 0 + Store 153(dist) 196 + 198: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 199 199 16 16 + 197: 24(ptr) AccessChain 115(shadowCoord) 17 + 200: 8(float) Load 197 + 202: 143(bool) FOrdGreaterThan 200 201 + 203: 8(float) Load 153(dist) + 204: 24(ptr) AccessChain 115(shadowCoord) 27 + 205: 8(float) Load 204 + 206: 143(bool) FOrdLessThan 203 205 + 207: 143(bool) LogicalAnd 202 206 + SelectionMerge 209 None + BranchConditional 207 208 209 + 208: Label + 211: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 + 212: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 213 213 16 16 + Store 109(shadow) 210 + Branch 209 + 209: Label + 214: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 + Branch 152 + 152: Label + 216: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39 + 217: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 218 218 16 16 + 215: 8(float) Load 109(shadow) + ReturnValue 215 FunctionEnd 62(filterPCF(vf4;f1;): 8(float) Function None 58 60(sc): 21(ptr) FunctionParameter 61(layer): 24(ptr) FunctionParameter 63: Label -225(sizeQueryTemp): 223(ptr) Variable Function - 240(texDim): 238(ptr) Variable Function - 256(elements): 249(ptr) Variable Function - 263(levels): 249(ptr) Variable Function - 270(scale): 24(ptr) Variable Function - 277(dx): 24(ptr) Variable Function - 289(dy): 24(ptr) Variable Function -301(shadowFactor): 24(ptr) Variable Function - 307(count): 249(ptr) Variable Function - 314(range): 249(ptr) Variable Function - 321(x): 249(ptr) Variable Function - 341(y): 249(ptr) Variable Function - 374(param): 21(ptr) Variable Function - 376(param): 24(ptr) Variable Function - 378(param): 29(ptr) Variable Function +227(sizeQueryTemp): 225(ptr) Variable Function + 242(texDim): 240(ptr) Variable Function + 258(elements): 251(ptr) Variable Function + 265(levels): 251(ptr) Variable Function + 272(scale): 24(ptr) Variable Function + 279(dx): 24(ptr) Variable Function + 291(dy): 24(ptr) Variable Function +303(shadowFactor): 24(ptr) Variable Function + 309(count): 251(ptr) Variable Function + 316(range): 251(ptr) Variable Function + 323(x): 251(ptr) Variable Function + 343(y): 251(ptr) Variable Function + 376(param): 21(ptr) Variable Function + 378(param): 24(ptr) Variable Function + 380(param): 29(ptr) Variable Function 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 66 66 16 16 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 67 60(sc) 49 - 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 71 61(layer) 49 - 220: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 66 66 16 16 - 219: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 65 62(filterPCF(vf4;f1;) - 230: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 228 228 16 16 - 229: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 226 225(sizeQueryTemp) 49 - 231: 157 Load 164(textureShadowMap) - 232: 221(ivec3) ImageQuerySizeLod 231 16 - Store 225(sizeQueryTemp) 232 - 243: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 241 240(texDim) 49 - 246: 244(ptr) AccessChain 225(sizeQueryTemp) 16 - 247: 11(int) Load 246 - 248: 233(int) Bitcast 247 - 251: 249(ptr) AccessChain 240(texDim) 16 - Store 251 248 - 252: 244(ptr) AccessChain 225(sizeQueryTemp) 44 - 253: 11(int) Load 252 - 254: 233(int) Bitcast 253 - 255: 249(ptr) AccessChain 240(texDim) 44 - Store 255 254 - 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 257 256(elements) 49 - 260: 244(ptr) AccessChain 225(sizeQueryTemp) 27 - 261: 11(int) Load 260 - 262: 233(int) Bitcast 261 - Store 256(elements) 262 - 266: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 264 263(levels) 49 - 267: 157 Load 164(textureShadowMap) - 268: 11(int) ImageQueryLevels 267 - 269: 233(int) Bitcast 268 - Store 263(levels) 269 - 275: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 273 273 16 16 - 274: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 271 270(scale) 49 - Store 270(scale) 276 - 282: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 280 280 16 16 - 281: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 278 277(dx) 49 - 283: 8(float) Load 270(scale) - 284: 8(float) FMul 283 111 - 285: 249(ptr) AccessChain 240(texDim) 16 - 286: 233(int) Load 285 - 287: 8(float) ConvertSToF 286 - 288: 8(float) FDiv 284 287 - Store 277(dx) 288 - 294: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 292 292 16 16 - 293: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 290 289(dy) 49 - 295: 8(float) Load 270(scale) - 296: 8(float) FMul 295 111 - 297: 249(ptr) AccessChain 240(texDim) 44 - 298: 233(int) Load 297 - 299: 8(float) ConvertSToF 298 - 300: 8(float) FDiv 296 299 - Store 289(dy) 300 - 306: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 304 304 16 16 - 305: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 302 301(shadowFactor) 49 - Store 301(shadowFactor) 198 - 312: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 310 310 16 16 - 311: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 308 307(count) 49 - Store 307(count) 313 - 319: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 317 317 16 16 - 318: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 315 314(range) 49 - Store 314(range) 320 - 326: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 324 324 16 16 - 325: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 322 321(x) 49 - 327: 233(int) Load 314(range) - 328: 233(int) SNegate 327 - Store 321(x) 328 - Branch 329 - 329: Label - 333: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 334: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 324 324 16 16 - LoopMerge 331 332 None - Branch 335 - 335: Label - 337: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 338: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 324 324 16 16 - 336: 233(int) Load 321(x) - 339: 233(int) Load 314(range) - 340: 140(bool) SLessThanEqual 336 339 - BranchConditional 340 330 331 - 330: Label - 346: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 347: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 344 344 16 16 - 345: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 342 341(y) 49 - 348: 233(int) Load 314(range) - 349: 233(int) SNegate 348 - Store 341(y) 349 - Branch 350 - 350: Label - 354: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 355: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 344 344 16 16 - LoopMerge 352 353 None - Branch 356 - 356: Label - 358: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 359: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 344 344 16 16 - 357: 233(int) Load 341(y) - 360: 233(int) Load 314(range) - 361: 140(bool) SLessThanEqual 357 360 - BranchConditional 361 351 352 - 351: Label - 363: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 364: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 365 365 16 16 - 362: 8(float) Load 277(dx) - 366: 233(int) Load 321(x) - 367: 8(float) ConvertSToF 366 - 368: 8(float) FMul 362 367 - 369: 8(float) Load 289(dy) - 370: 233(int) Load 341(y) - 371: 8(float) ConvertSToF 370 - 372: 8(float) FMul 369 371 - 373: 26(fvec2) CompositeConstruct 368 372 - 375: 18(fvec4) Load 60(sc) - Store 374(param) 375 - 377: 8(float) Load 61(layer) - Store 376(param) 377 - Store 378(param) 373 - 379: 8(float) FunctionCall 36(textureProj(vf4;f1;vf2;) 374(param) 376(param) 378(param) - 380: 8(float) Load 301(shadowFactor) - 381: 8(float) FAdd 380 379 - Store 301(shadowFactor) 381 - 383: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 384 384 16 16 - 382: 233(int) Load 307(count) - 385: 233(int) IAdd 382 320 - Store 307(count) 385 - Branch 353 - 353: Label - 387: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 388: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 344 344 16 16 - 386: 233(int) Load 341(y) - 389: 233(int) IAdd 386 320 - Store 341(y) 389 - Branch 350 - 352: Label - 390: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - Branch 332 - 332: Label - 392: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 393: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 324 324 16 16 - 391: 233(int) Load 321(x) - 394: 233(int) IAdd 391 320 - Store 321(x) 394 - Branch 329 + 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 72 61(layer) 49 + 222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 65 62(filterPCF(vf4;f1;) + 232: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 230 230 16 16 + 231: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 228 227(sizeQueryTemp) 49 + 233: 160 Load 167(textureShadowMap) + 234: 223(ivec3) ImageQuerySizeLod 233 16 + Store 227(sizeQueryTemp) 234 + 245: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 243 242(texDim) 49 + 248: 246(ptr) AccessChain 227(sizeQueryTemp) 16 + 249: 11(int) Load 248 + 250: 235(int) Bitcast 249 + 253: 251(ptr) AccessChain 242(texDim) 16 + Store 253 250 + 254: 246(ptr) AccessChain 227(sizeQueryTemp) 44 + 255: 11(int) Load 254 + 256: 235(int) Bitcast 255 + 257: 251(ptr) AccessChain 242(texDim) 44 + Store 257 256 + 261: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 259 258(elements) 49 + 262: 246(ptr) AccessChain 227(sizeQueryTemp) 27 + 263: 11(int) Load 262 + 264: 235(int) Bitcast 263 + Store 258(elements) 264 + 268: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 266 265(levels) 49 + 269: 160 Load 167(textureShadowMap) + 270: 11(int) ImageQueryLevels 269 + 271: 235(int) Bitcast 270 + Store 265(levels) 271 + 277: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 275 275 16 16 + 276: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 273 272(scale) 49 + Store 272(scale) 278 + 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 282 282 16 16 + 283: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 280 279(dx) 49 + 285: 8(float) Load 272(scale) + 286: 8(float) FMul 285 114 + 287: 251(ptr) AccessChain 242(texDim) 16 + 288: 235(int) Load 287 + 289: 8(float) ConvertSToF 288 + 290: 8(float) FDiv 286 289 + Store 279(dx) 290 + 296: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 294 294 16 16 + 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 292 291(dy) 49 + 297: 8(float) Load 272(scale) + 298: 8(float) FMul 297 114 + 299: 251(ptr) AccessChain 242(texDim) 44 + 300: 235(int) Load 299 + 301: 8(float) ConvertSToF 300 + 302: 8(float) FDiv 298 301 + Store 291(dy) 302 + 308: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 306 306 16 16 + 307: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 304 303(shadowFactor) 49 + Store 303(shadowFactor) 201 + 314: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 312 312 16 16 + 313: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 310 309(count) 49 + Store 309(count) 315 + 321: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 319 319 16 16 + 320: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 317 316(range) 49 + Store 316(range) 322 + 328: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 326 326 16 16 + 327: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 324 323(x) 49 + 329: 235(int) Load 316(range) + 330: 235(int) SNegate 329 + Store 323(x) 330 + Branch 331 331: Label - 396: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 - 397: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 398 398 16 16 - 395: 8(float) Load 301(shadowFactor) - 399: 233(int) Load 307(count) - 400: 8(float) ConvertSToF 399 - 401: 8(float) FDiv 395 400 - ReturnValue 401 + 335: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 336: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 326 326 16 16 + LoopMerge 333 334 None + Branch 337 + 337: Label + 339: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 340: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 326 326 16 16 + 338: 235(int) Load 323(x) + 341: 235(int) Load 316(range) + 342: 143(bool) SLessThanEqual 338 341 + BranchConditional 342 332 333 + 332: Label + 348: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 349: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 346 346 16 16 + 347: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 344 343(y) 49 + 350: 235(int) Load 316(range) + 351: 235(int) SNegate 350 + Store 343(y) 351 + Branch 352 + 352: Label + 356: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 357: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 346 346 16 16 + LoopMerge 354 355 None + Branch 358 + 358: Label + 360: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 361: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 346 346 16 16 + 359: 235(int) Load 343(y) + 362: 235(int) Load 316(range) + 363: 143(bool) SLessThanEqual 359 362 + BranchConditional 363 353 354 + 353: Label + 365: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 366: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 367 367 16 16 + 364: 8(float) Load 279(dx) + 368: 235(int) Load 323(x) + 369: 8(float) ConvertSToF 368 + 370: 8(float) FMul 364 369 + 371: 8(float) Load 291(dy) + 372: 235(int) Load 343(y) + 373: 8(float) ConvertSToF 372 + 374: 8(float) FMul 371 373 + 375: 26(fvec2) CompositeConstruct 370 374 + 377: 18(fvec4) Load 60(sc) + Store 376(param) 377 + 379: 8(float) Load 61(layer) + Store 378(param) 379 + Store 380(param) 375 + 381: 8(float) FunctionCall 36(textureProj(vf4;f1;vf2;) 376(param) 378(param) 380(param) + 382: 8(float) Load 303(shadowFactor) + 383: 8(float) FAdd 382 381 + Store 303(shadowFactor) 383 + 385: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 386 386 16 16 + 384: 235(int) Load 309(count) + 387: 235(int) IAdd 384 322 + Store 309(count) 387 + Branch 355 + 355: Label + 389: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 390: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 346 346 16 16 + 388: 235(int) Load 343(y) + 391: 235(int) IAdd 388 322 + Store 343(y) 391 + Branch 352 + 354: Label + 392: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + Branch 334 + 334: Label + 394: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 395: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 326 326 16 16 + 393: 235(int) Load 323(x) + 396: 235(int) IAdd 393 322 + Store 323(x) 396 + Branch 331 + 333: Label + 398: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 + 399: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 400 400 16 16 + 397: 8(float) Load 303(shadowFactor) + 401: 235(int) Load 309(count) + 402: 8(float) ConvertSToF 401 + 403: 8(float) FDiv 397 402 + ReturnValue 403 FunctionEnd -81(shadow(vf3;vf3;): 73(fvec3) Function None 77 - 79(fragcolor): 75(ptr) FunctionParameter - 80(fragPos): 75(ptr) FunctionParameter - 82: Label - 407(i): 249(ptr) Variable Function - 425(shadowClip): 21(ptr) Variable Function -483(shadowFactor): 24(ptr) Variable Function - 490(param): 21(ptr) Variable Function - 492(param): 24(ptr) Variable Function - 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 - 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 79(fragcolor) 49 - 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 90 80(fragPos) 49 - 406: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 85 85 16 16 - 405: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 84 81(shadow(vf3;vf3;) - 412: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 410 410 16 16 - 411: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 408 407(i) 49 - Store 407(i) 313 - Branch 413 - 413: Label - 417: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 - 418: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 410 410 16 16 - LoopMerge 415 416 None - Branch 419 - 419: Label - 421: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 - 422: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 410 410 16 16 - 420: 233(int) Load 407(i) - 424: 140(bool) SLessThan 420 423 - BranchConditional 424 414 415 - 414: Label - 430: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 - 431: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 428 428 16 16 - 429: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 426 425(shadowClip) 49 - 432: 73(fvec3) Load 80(fragPos) - 433: 8(float) CompositeExtract 432 0 - 434: 8(float) CompositeExtract 432 1 - 435: 8(float) CompositeExtract 432 2 - 436: 18(fvec4) CompositeConstruct 433 434 435 111 - 477: 233(int) Load 407(i) - 480: 478(ptr) AccessChain 475 313 320 477 423 - 481: 437 Load 480 - 482: 18(fvec4) VectorTimesMatrix 436 481 - Store 425(shadowClip) 482 - 487: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 485 485 16 16 - 486: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 484 483(shadowFactor) 49 - 488: 233(int) Load 407(i) - 489: 8(float) ConvertSToF 488 - 491: 18(fvec4) Load 425(shadowClip) - Store 490(param) 491 - Store 492(param) 489 - 493: 8(float) FunctionCall 62(filterPCF(vf4;f1;) 490(param) 492(param) - Store 483(shadowFactor) 493 - 495: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 496 496 16 16 - 494: 8(float) Load 483(shadowFactor) - 497: 73(fvec3) Load 79(fragcolor) - 498: 73(fvec3) VectorTimesScalar 497 494 - Store 79(fragcolor) 498 - Branch 416 - 416: Label - 500: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 - 501: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 410 410 16 16 - 499: 233(int) Load 407(i) - 502: 233(int) IAdd 499 320 - Store 407(i) 502 - Branch 413 - 415: Label - 504: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 84 - 505: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 506 506 16 16 - 503: 73(fvec3) Load 79(fragcolor) - ReturnValue 503 +82(shadow(vf3;vf3;): 74(fvec3) Function None 78 + 80(fragcolor): 76(ptr) FunctionParameter + 81(fragPos): 76(ptr) FunctionParameter + 83: Label + 408(i): 251(ptr) Variable Function + 426(shadowClip): 21(ptr) Variable Function +484(shadowFactor): 24(ptr) Variable Function + 491(param): 21(ptr) Variable Function + 493(param): 24(ptr) Variable Function + 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 + 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 86 86 16 16 + 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 87 80(fragcolor) 49 + 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 81(fragPos) 49 + 407: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 85 82(shadow(vf3;vf3;) + 413: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 411 411 16 16 + 412: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 409 408(i) 49 + Store 408(i) 315 + Branch 414 + 414: Label + 418: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 + 419: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 411 411 16 16 + LoopMerge 416 417 None + Branch 420 + 420: Label + 422: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 + 423: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 411 411 16 16 + 421: 235(int) Load 408(i) + 425: 143(bool) SLessThan 421 424 + BranchConditional 425 415 416 + 415: Label + 431: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 + 432: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 429 429 16 16 + 430: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 427 426(shadowClip) 49 + 433: 74(fvec3) Load 81(fragPos) + 434: 8(float) CompositeExtract 433 0 + 435: 8(float) CompositeExtract 433 1 + 436: 8(float) CompositeExtract 433 2 + 437: 18(fvec4) CompositeConstruct 434 435 436 114 + 478: 235(int) Load 408(i) + 481: 479(ptr) AccessChain 476 315 322 478 424 + 482: 438 Load 481 + 483: 18(fvec4) VectorTimesMatrix 437 482 + Store 426(shadowClip) 483 + 488: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 486 486 16 16 + 487: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 485 484(shadowFactor) 49 + 489: 235(int) Load 408(i) + 490: 8(float) ConvertSToF 489 + 492: 18(fvec4) Load 426(shadowClip) + Store 491(param) 492 + Store 493(param) 490 + 494: 8(float) FunctionCall 62(filterPCF(vf4;f1;) 491(param) 493(param) + Store 484(shadowFactor) 494 + 496: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 497 497 16 16 + 495: 8(float) Load 484(shadowFactor) + 498: 74(fvec3) Load 80(fragcolor) + 499: 74(fvec3) VectorTimesScalar 498 495 + Store 80(fragcolor) 499 + Branch 417 + 417: Label + 501: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 + 502: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 411 411 16 16 + 500: 235(int) Load 408(i) + 503: 235(int) IAdd 500 322 + Store 408(i) 503 + Branch 414 + 416: Label + 505: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 + 506: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 507 507 16 16 + 504: 74(fvec3) Load 80(fragcolor) + ReturnValue 504 FunctionEnd - 96(@main(vf2;): 18(fvec4) Function None 93 - 95(inUV): 29(ptr) FunctionParameter - 97: Label - 512(fragPos): 75(ptr) Variable Function - 536(normal): 75(ptr) Variable Function + 98(@main(vf2;): 18(fvec4) Function None 95 + 97(inUV): 29(ptr) FunctionParameter + 99: Label + 512(fragPos): 76(ptr) Variable Function + 536(normal): 76(ptr) Variable Function 555(albedo): 21(ptr) Variable Function - 593(fragcolor): 75(ptr) Variable Function - 600(param): 75(ptr) Variable Function - 601(param): 75(ptr) Variable Function - 660(N): 75(ptr) Variable Function - 668(i): 249(ptr) Variable Function - 684(L): 75(ptr) Variable Function + 593(fragcolor): 76(ptr) Variable Function + 600(param): 76(ptr) Variable Function + 601(param): 76(ptr) Variable Function + 660(N): 76(ptr) Variable Function + 668(i): 251(ptr) Variable Function + 684(L): 76(ptr) Variable Function 699(dist): 24(ptr) Variable Function - 710(V): 75(ptr) Variable Function + 710(V): 76(ptr) Variable Function 725(lightCosInnerAngle): 24(ptr) Variable Function 732(lightCosOuterAngle): 24(ptr) Variable Function 739(lightRange): 24(ptr) Variable Function - 746(dir): 75(ptr) Variable Function + 746(dir): 76(ptr) Variable Function 762(cosDir): 24(ptr) Variable Function 771(spotEffect): 24(ptr) Variable Function 781(heightAttenuation): 24(ptr) Variable Function 790(NdotL): 24(ptr) Variable Function - 800(diff): 75(ptr) Variable Function - 808(R): 75(ptr) Variable Function + 800(diff): 76(ptr) Variable Function + 808(R): 76(ptr) Variable Function 818(NdotR): 24(ptr) Variable Function - 828(spec): 75(ptr) Variable Function - 875(param): 75(ptr) Variable Function - 880(param): 75(ptr) Variable Function - 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 - 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 101 95(inUV) 49 - 511: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 100 100 16 16 - 510: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 99 96(@main(vf2;) + 828(spec): 76(ptr) Variable Function + 875(param): 76(ptr) Variable Function + 880(param): 76(ptr) Variable Function + 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 + 107: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 102 102 16 16 + 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 103 97(inUV) 49 + 511: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 101 98(@main(vf2;) 516: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 514 514 16 16 515: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 513 512(fragPos) 49 524: 517 Load 521(textureposition) - 529: 169 Load 526(samplerposition) + 529: 172 Load 526(samplerposition) 532: 530 SampledImage 524 529 - 533: 26(fvec2) Load 95(inUV) + 533: 26(fvec2) Load 97(inUV) 534: 18(fvec4) ImageSampleImplicitLod 532 533 - 535: 73(fvec3) VectorShuffle 534 534 0 1 2 + 535: 74(fvec3) VectorShuffle 534 534 0 1 2 Store 512(fragPos) 535 541: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 539 539 16 16 540: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 537 536(normal) 49 545: 517 Load 542(textureNormal) - 550: 169 Load 547(samplerNormal) + 550: 172 Load 547(samplerNormal) 551: 530 SampledImage 545 550 - 552: 26(fvec2) Load 95(inUV) + 552: 26(fvec2) Load 97(inUV) 553: 18(fvec4) ImageSampleImplicitLod 551 552 - 554: 73(fvec3) VectorShuffle 553 553 0 1 2 + 554: 74(fvec3) VectorShuffle 553 553 0 1 2 Store 536(normal) 554 560: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 558 558 16 16 559: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 556 555(albedo) 49 564: 517 Load 561(textureAlbedo) - 569: 169 Load 566(samplerAlbedo) + 569: 172 Load 566(samplerAlbedo) 570: 530 SampledImage 564 569 - 571: 26(fvec2) Load 95(inUV) + 571: 26(fvec2) Load 97(inUV) 572: 18(fvec4) ImageSampleImplicitLod 570 571 Store 555(albedo) 572 576: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 577 577 16 16 - 575: 573(ptr) AccessChain 475 313 423 - 578: 233(int) Load 575 - 579: 140(bool) SGreaterThan 578 313 + 575: 573(ptr) AccessChain 476 315 424 + 578: 235(int) Load 575 + 579: 143(bool) SGreaterThan 578 315 SelectionMerge 581 None BranchConditional 579 580 581 580: Label - 583: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 583: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 584: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 585 585 16 16 - 582: 573(ptr) AccessChain 475 313 423 - 586: 233(int) Load 582 + 582: 573(ptr) AccessChain 476 315 424 + 586: 235(int) Load 582 SelectionMerge 592 None Switch 586 592 case 1: 587 @@ -902,113 +902,113 @@ spv.debuginfo.hlsl.frag case 4: 590 case 5: 591 587: Label - 597: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 597: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 598: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 595 595 16 16 596: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 594 593(fragcolor) 49 Store 600(param) 599 - 602: 73(fvec3) Load 512(fragPos) + 602: 74(fvec3) Load 512(fragPos) Store 601(param) 602 - 603: 73(fvec3) FunctionCall 81(shadow(vf3;vf3;) 600(param) 601(param) + 603: 74(fvec3) FunctionCall 82(shadow(vf3;vf3;) 600(param) 601(param) Store 593(fragcolor) 603 604: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 605 605 16 16 Branch 592 588: Label - 609: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 609: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 610: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 611 611 16 16 - 608: 73(fvec3) Load 512(fragPos) + 608: 74(fvec3) Load 512(fragPos) Store 593(fragcolor) 608 612: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 613 613 16 16 Branch 592 589: Label - 617: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 617: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 618: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 619 619 16 16 - 616: 73(fvec3) Load 536(normal) + 616: 74(fvec3) Load 536(normal) Store 593(fragcolor) 616 620: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 621 621 16 16 Branch 592 590: Label - 625: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 625: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 626: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 627 627 16 16 624: 18(fvec4) Load 555(albedo) - 628: 73(fvec3) VectorShuffle 624 624 0 1 2 + 628: 74(fvec3) VectorShuffle 624 624 0 1 2 Store 593(fragcolor) 628 629: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 630 630 16 16 Branch 592 591: Label - 634: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 634: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 635: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 636 636 16 16 633: 18(fvec4) Load 555(albedo) - 637: 73(fvec3) VectorShuffle 633 633 3 3 3 + 637: 74(fvec3) VectorShuffle 633 633 3 3 3 Store 593(fragcolor) 637 638: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 639 639 16 16 Branch 592 592: Label - 644: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 644: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 645: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 646 646 16 16 - 643: 73(fvec3) Load 593(fragcolor) + 643: 74(fvec3) Load 593(fragcolor) 647: 8(float) CompositeExtract 643 0 648: 8(float) CompositeExtract 643 1 649: 8(float) CompositeExtract 643 2 - 650: 18(fvec4) CompositeConstruct 647 648 649 111 + 650: 18(fvec4) CompositeConstruct 647 648 649 114 ReturnValue 650 581: Label - 654: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 654: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 655: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 656 656 16 16 653: 18(fvec4) Load 555(albedo) - 657: 73(fvec3) VectorShuffle 653 653 0 1 2 - 659: 73(fvec3) VectorTimesScalar 657 658 + 657: 74(fvec3) VectorShuffle 653 653 0 1 2 + 659: 74(fvec3) VectorTimesScalar 657 658 Store 593(fragcolor) 659 665: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 663 663 16 16 664: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 661 660(N) 49 - 666: 73(fvec3) Load 536(normal) - 667: 73(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 666 + 666: 74(fvec3) Load 536(normal) + 667: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 666 Store 660(N) 667 672: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 670 670 16 16 671: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 669 668(i) 49 - Store 668(i) 313 + Store 668(i) 315 Branch 673 673: Label - 677: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 677: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 678: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 670 670 16 16 LoopMerge 675 676 None Branch 679 679: Label - 681: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 681: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 682: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 670 670 16 16 - 680: 233(int) Load 668(i) - 683: 140(bool) SLessThan 680 423 + 680: 235(int) Load 668(i) + 683: 143(bool) SLessThan 680 424 BranchConditional 683 674 675 674: Label - 689: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 689: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 690: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 687 687 16 16 688: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 685 684(L) 49 - 691: 233(int) Load 668(i) - 694: 692(ptr) AccessChain 475 313 320 691 313 + 691: 235(int) Load 668(i) + 694: 692(ptr) AccessChain 476 315 322 691 315 695: 18(fvec4) Load 694 - 696: 73(fvec3) VectorShuffle 695 695 0 1 2 - 697: 73(fvec3) Load 512(fragPos) - 698: 73(fvec3) FSub 696 697 + 696: 74(fvec3) VectorShuffle 695 695 0 1 2 + 697: 74(fvec3) Load 512(fragPos) + 698: 74(fvec3) FSub 696 697 Store 684(L) 698 703: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 701 701 16 16 702: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 700 699(dist) 49 - 704: 73(fvec3) Load 684(L) + 704: 74(fvec3) Load 684(L) 705: 8(float) ExtInst 3(GLSL.std.450) 66(Length) 704 Store 699(dist) 705 707: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 708 708 16 16 - 706: 73(fvec3) Load 684(L) - 709: 73(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 706 + 706: 74(fvec3) Load 684(L) + 709: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 706 Store 684(L) 709 715: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 713 713 16 16 714: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 711 710(V) 49 - 716: 692(ptr) AccessChain 475 313 313 + 716: 692(ptr) AccessChain 476 315 315 717: 18(fvec4) Load 716 - 718: 73(fvec3) VectorShuffle 717 717 0 1 2 - 719: 73(fvec3) Load 512(fragPos) - 720: 73(fvec3) FSub 718 719 + 718: 74(fvec3) VectorShuffle 717 717 0 1 2 + 719: 74(fvec3) Load 512(fragPos) + 720: 74(fvec3) FSub 718 719 Store 710(V) 720 722: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 723 723 16 16 - 721: 73(fvec3) Load 710(V) - 724: 73(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 721 + 721: 74(fvec3) Load 710(V) + 724: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 721 Store 710(V) 724 730: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 728 728 16 16 729: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 726 725(lightCosInnerAngle) 49 @@ -1021,21 +1021,21 @@ spv.debuginfo.hlsl.frag Store 739(lightRange) 745 751: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 749 749 16 16 750: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 747 746(dir) 49 - 752: 233(int) Load 668(i) - 753: 692(ptr) AccessChain 475 313 320 752 313 + 752: 235(int) Load 668(i) + 753: 692(ptr) AccessChain 476 315 322 752 315 754: 18(fvec4) Load 753 - 755: 73(fvec3) VectorShuffle 754 754 0 1 2 - 756: 233(int) Load 668(i) - 757: 692(ptr) AccessChain 475 313 320 756 320 + 755: 74(fvec3) VectorShuffle 754 754 0 1 2 + 756: 235(int) Load 668(i) + 757: 692(ptr) AccessChain 476 315 322 756 322 758: 18(fvec4) Load 757 - 759: 73(fvec3) VectorShuffle 758 758 0 1 2 - 760: 73(fvec3) FSub 755 759 - 761: 73(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 760 + 759: 74(fvec3) VectorShuffle 758 758 0 1 2 + 760: 74(fvec3) FSub 755 759 + 761: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 760 Store 746(dir) 761 767: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 765 765 16 16 766: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 763 762(cosDir) 49 - 768: 73(fvec3) Load 684(L) - 769: 73(fvec3) Load 746(dir) + 768: 74(fvec3) Load 684(L) + 769: 74(fvec3) Load 746(dir) 770: 8(float) Dot 768 769 Store 762(cosDir) 770 776: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 774 774 16 16 @@ -1049,33 +1049,33 @@ spv.debuginfo.hlsl.frag 785: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 782 781(heightAttenuation) 49 787: 8(float) Load 739(lightRange) 788: 8(float) Load 699(dist) - 789: 8(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 787 198 788 + 789: 8(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 787 201 788 Store 781(heightAttenuation) 789 795: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 793 793 16 16 794: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 791 790(NdotL) 49 - 796: 73(fvec3) Load 660(N) - 797: 73(fvec3) Load 684(L) + 796: 74(fvec3) Load 660(N) + 797: 74(fvec3) Load 684(L) 798: 8(float) Dot 796 797 - 799: 8(float) ExtInst 3(GLSL.std.450) 40(FMax) 198 798 + 799: 8(float) ExtInst 3(GLSL.std.450) 40(FMax) 201 798 Store 790(NdotL) 799 805: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 803 803 16 16 804: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 801 800(diff) 49 806: 8(float) Load 790(NdotL) - 807: 73(fvec3) CompositeConstruct 806 806 806 + 807: 74(fvec3) CompositeConstruct 806 806 806 Store 800(diff) 807 813: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 811 811 16 16 812: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 809 808(R) 49 - 814: 73(fvec3) Load 684(L) - 815: 73(fvec3) FNegate 814 - 816: 73(fvec3) Load 660(N) - 817: 73(fvec3) ExtInst 3(GLSL.std.450) 71(Reflect) 815 816 + 814: 74(fvec3) Load 684(L) + 815: 74(fvec3) FNegate 814 + 816: 74(fvec3) Load 660(N) + 817: 74(fvec3) ExtInst 3(GLSL.std.450) 71(Reflect) 815 816 Store 808(R) 817 823: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 821 821 16 16 822: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 819 818(NdotR) 49 - 824: 73(fvec3) Load 808(R) - 825: 73(fvec3) Load 710(V) + 824: 74(fvec3) Load 808(R) + 825: 74(fvec3) Load 710(V) 826: 8(float) Dot 824 825 - 827: 8(float) ExtInst 3(GLSL.std.450) 40(FMax) 198 826 + 827: 8(float) ExtInst 3(GLSL.std.450) 40(FMax) 201 826 Store 818(NdotR) 827 833: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 831 831 16 16 832: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 829 828(spec) 49 @@ -1085,60 +1085,60 @@ spv.debuginfo.hlsl.frag 838: 8(float) Load 837 839: 8(float) FMul 836 838 841: 8(float) FMul 839 840 - 842: 73(fvec3) CompositeConstruct 841 841 841 + 842: 74(fvec3) CompositeConstruct 841 841 841 Store 828(spec) 842 844: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 845 845 16 16 - 843: 73(fvec3) Load 800(diff) - 846: 73(fvec3) Load 828(spec) - 847: 73(fvec3) FAdd 843 846 + 843: 74(fvec3) Load 800(diff) + 846: 74(fvec3) Load 828(spec) + 847: 74(fvec3) FAdd 843 846 848: 8(float) Load 771(spotEffect) - 849: 73(fvec3) VectorTimesScalar 847 848 + 849: 74(fvec3) VectorTimesScalar 847 848 850: 8(float) Load 781(heightAttenuation) - 851: 73(fvec3) VectorTimesScalar 849 850 - 852: 233(int) Load 668(i) - 854: 692(ptr) AccessChain 475 313 320 852 853 + 851: 74(fvec3) VectorTimesScalar 849 850 + 852: 235(int) Load 668(i) + 854: 692(ptr) AccessChain 476 315 322 852 853 855: 18(fvec4) Load 854 - 856: 73(fvec3) VectorShuffle 855 855 0 1 2 - 857: 73(fvec3) FMul 851 856 + 856: 74(fvec3) VectorShuffle 855 855 0 1 2 + 857: 74(fvec3) FMul 851 856 858: 18(fvec4) Load 555(albedo) - 859: 73(fvec3) VectorShuffle 858 858 0 1 2 - 860: 73(fvec3) FMul 857 859 - 861: 73(fvec3) Load 593(fragcolor) - 862: 73(fvec3) FAdd 861 860 + 859: 74(fvec3) VectorShuffle 858 858 0 1 2 + 860: 74(fvec3) FMul 857 859 + 861: 74(fvec3) Load 593(fragcolor) + 862: 74(fvec3) FAdd 861 860 Store 593(fragcolor) 862 Branch 676 676: Label - 864: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 864: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 865: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 670 670 16 16 - 863: 233(int) Load 668(i) - 866: 233(int) IAdd 863 320 + 863: 235(int) Load 668(i) + 866: 235(int) IAdd 863 322 Store 668(i) 866 Branch 673 675: Label - 868: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 868: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 869: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 870 870 16 16 - 867: 573(ptr) AccessChain 475 313 853 - 871: 233(int) Load 867 - 872: 140(bool) SGreaterThan 871 313 + 867: 573(ptr) AccessChain 476 315 853 + 871: 235(int) Load 867 + 872: 143(bool) SGreaterThan 871 315 SelectionMerge 874 None BranchConditional 872 873 874 873: Label - 877: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 877: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 878: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 879 879 16 16 - 876: 73(fvec3) Load 593(fragcolor) + 876: 74(fvec3) Load 593(fragcolor) Store 875(param) 876 - 881: 73(fvec3) Load 512(fragPos) + 881: 74(fvec3) Load 512(fragPos) Store 880(param) 881 - 882: 73(fvec3) FunctionCall 81(shadow(vf3;vf3;) 875(param) 880(param) + 882: 74(fvec3) FunctionCall 82(shadow(vf3;vf3;) 875(param) 880(param) Store 593(fragcolor) 882 Branch 874 874: Label - 884: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 99 + 884: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 101 885: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 40 886 886 16 16 - 883: 73(fvec3) Load 593(fragcolor) + 883: 74(fvec3) Load 593(fragcolor) 887: 8(float) CompositeExtract 883 0 888: 8(float) CompositeExtract 883 1 889: 8(float) CompositeExtract 883 2 - 890: 18(fvec4) CompositeConstruct 887 888 889 111 + 890: 18(fvec4) CompositeConstruct 887 888 889 114 ReturnValue 890 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.geom.out b/Test/baseResults/spv.debuginfo.hlsl.geom.out index 063a6d55..3c094d35 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.geom.out +++ b/Test/baseResults/spv.debuginfo.hlsl.geom.out @@ -29,10 +29,10 @@ spv.debuginfo.hlsl.geom " 31: String "Color" 36: String "VSOutput" - 49: String "PrimitiveID" - 54: String "LightVec" - 60: String "GSOutput" - 73: String "@main" + 50: String "PrimitiveID" + 55: String "LightVec" + 61: String "GSOutput" + 74: String "@main" 77: String "input" 83: String "outStream" 87: String "InvocationID" @@ -60,19 +60,19 @@ spv.debuginfo.hlsl.geom MemberName 23(VSOutput) 0 "Pos" MemberName 23(VSOutput) 1 "Normal" MemberName 23(VSOutput) 2 "Color" - Name 45 "GSOutput" - MemberName 45(GSOutput) 0 "Pos" - MemberName 45(GSOutput) 1 "ViewportIndex" - MemberName 45(GSOutput) 2 "PrimitiveID" - MemberName 45(GSOutput) 3 "Normal" - MemberName 45(GSOutput) 4 "Color" - MemberName 45(GSOutput) 5 "ViewVec" - MemberName 45(GSOutput) 6 "LightVec" - Name 71 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;" - Name 67 "input" - Name 68 "outStream" - Name 69 "InvocationID" - Name 70 "PrimitiveID" + Name 46 "GSOutput" + MemberName 46(GSOutput) 0 "Pos" + MemberName 46(GSOutput) 1 "ViewportIndex" + MemberName 46(GSOutput) 2 "PrimitiveID" + MemberName 46(GSOutput) 3 "Normal" + MemberName 46(GSOutput) 4 "Color" + MemberName 46(GSOutput) 5 "ViewVec" + MemberName 46(GSOutput) 6 "LightVec" + Name 72 "@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;" + Name 68 "input" + Name 69 "outStream" + Name 70 "InvocationID" + Name 71 "PrimitiveID" Name 97 "i" Name 119 "output" Name 145 "UBO" @@ -155,61 +155,61 @@ spv.debuginfo.hlsl.geom 30: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 31 22 26 32 33 16 16 17 34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 31 22 26 32 33 16 16 17 37: 11(int) Constant 1 - 39: 11(int) Constant 5 - 38: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 37 19 26 39 - 35: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 36 37 26 16 16 38 36 16 17 24 30 34 - 40: TypeArray 23(VSOutput) 17 - 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 35 17 - 42: TypePointer Function 40 - 43: 11(int) Constant 7 - 44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 41 43 16 - 45(GSOutput): TypeStruct 18(fvec4) 11(int) 11(int) 21(fvec3) 21(fvec3) 21(fvec3) 21(fvec3) - 47: 11(int) Constant 44 - 46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 47 29 16 16 17 - 50: 11(int) Constant 46 - 51: 11(int) Constant 19 - 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 49 13 26 50 51 16 16 17 - 52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 49 13 26 50 51 16 16 17 - 55: 11(int) Constant 50 - 53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 22 26 55 28 16 16 17 - 56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 22 26 55 28 16 16 17 - 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 22 26 55 28 16 16 17 - 58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 22 26 55 28 16 16 17 - 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 60 37 26 16 16 38 60 16 17 46 48 52 53 56 57 58 - 61: TypePointer Function 45(GSOutput) - 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 59 43 16 - 63: TypePointer Function 11(int) - 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 43 16 - 65: TypeFunction 4 42(ptr) 61(ptr) 63(ptr) 63(ptr) - 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 4 41 59 13 13 - 75: 11(int) Constant 56 - 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 73 66 26 75 16 38 73 17 75 - 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 77 41 26 75 16 74 19 37 + 38: 11(int) Constant 56 + 40: 11(int) Constant 5 + 39: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 37 19 26 40 + 35: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 36 37 26 38 16 39 36 16 17 24 30 34 + 41: TypeArray 23(VSOutput) 17 + 42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 35 17 + 43: TypePointer Function 41 + 44: 11(int) Constant 7 + 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 42 44 16 + 46(GSOutput): TypeStruct 18(fvec4) 11(int) 11(int) 21(fvec3) 21(fvec3) 21(fvec3) 21(fvec3) + 48: 11(int) Constant 44 + 47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 25 20 26 48 29 16 16 17 + 51: 11(int) Constant 46 + 52: 11(int) Constant 19 + 49: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 50 13 26 51 52 16 16 17 + 53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 50 13 26 51 52 16 16 17 + 56: 11(int) Constant 50 + 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 22 26 56 28 16 16 17 + 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 22 26 56 28 16 16 17 + 58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 22 26 56 28 16 16 17 + 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 22 26 56 28 16 16 17 + 60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 61 37 26 38 16 39 61 16 17 47 49 53 54 57 58 59 + 62: TypePointer Function 46(GSOutput) + 63: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 60 44 16 + 64: TypePointer Function 11(int) + 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 44 16 + 66: TypeFunction 4 43(ptr) 62(ptr) 64(ptr) 64(ptr) + 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 4 42 60 13 13 + 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 74 67 26 38 16 39 74 17 38 + 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 77 42 26 38 16 75 19 37 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 84: 11(int) Constant 2 - 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 59 26 75 16 74 19 84 - 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 13 26 75 16 74 19 17 - 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 13 26 75 16 74 19 19 + 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 60 26 38 16 75 19 84 + 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 13 26 38 16 75 19 17 + 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 50 13 26 38 16 75 19 19 92: TypeInt 32 1 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 93 14 19 16 95: TypePointer Function 92(int) - 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 94 43 16 + 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 94 44 16 100: 11(int) Constant 57 - 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 99 94 26 100 16 74 19 + 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 99 94 26 100 16 75 19 103: 92(int) Constant 0 114: 92(int) Constant 3 115: TypeBool 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 116 14 84 16 122: 11(int) Constant 59 - 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 121 59 26 122 16 74 19 + 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 121 60 26 122 16 75 19 126: 8(float) Constant 0 127: 18(fvec4) ConstantComposite 126 126 126 126 128: 21(fvec3) ConstantComposite 126 126 126 - 129:45(GSOutput) ConstantComposite 127 16 16 128 128 128 128 + 129:46(GSOutput) ConstantComposite 127 16 16 128 128 128 128 132: 11(int) Constant 60 133: 92(int) Constant 1 134: TypePointer Function 21(fvec3) - 135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 43 16 + 135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 44 16 138: TypeMatrix 18(fvec4) 4 140: 115(bool) ConstantTrue 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 140 @@ -227,16 +227,16 @@ spv.debuginfo.hlsl.geom 156: 11(int) Constant 30 157: 11(int) Constant 17 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 155 20 26 156 157 16 16 17 - 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 159 37 26 132 16 38 159 16 17 146 150 154 + 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 159 37 26 132 16 39 159 16 17 146 150 154 160(ubo): TypeStruct 145(UBO) 163: 11(int) Constant 33 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 162 158 26 163 28 16 16 17 - 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 37 26 132 16 38 162 16 17 161 + 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 162 37 26 132 16 39 162 16 17 161 165: TypePointer Uniform 160(ubo) 166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 164 84 16 167: 165(ptr) Variable Uniform 169: 11(int) Constant 8 - 168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 164 26 132 16 38 2 167 169 + 168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 164 26 132 16 39 2 167 169 171: TypePointer Uniform 138 172: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 139 84 16 175: TypeMatrix 21(fvec3) 3 @@ -245,13 +245,13 @@ spv.debuginfo.hlsl.geom 189: 11(int) Constant 61 190: 92(int) Constant 2 194: TypePointer Function 18(fvec4) - 195: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 43 16 + 195: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 44 16 199: 11(int) Constant 63 - 197: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 198 20 26 199 16 74 19 + 197: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 198 20 26 199 16 75 19 208: 11(int) Constant 64 - 206: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 207 20 26 208 16 74 19 + 206: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 207 20 26 208 16 75 19 219: 11(int) Constant 66 - 217: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 218 22 26 219 16 74 19 + 217: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 218 22 26 219 16 75 19 222: TypePointer Uniform 18(fvec4) 223: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 84 16 231: 92(int) Constant 6 @@ -265,23 +265,23 @@ spv.debuginfo.hlsl.geom 263: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 17 16 264(outStream.Pos): 262(ptr) Variable Output 267: 11(int) Constant 75 - 265: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 266 20 26 267 16 38 266 264(outStream.Pos) 169 + 265: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 266 20 26 267 16 39 266 264(outStream.Pos) 169 271: TypePointer Output 11(int) 272: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 17 16 273(outStream.ViewportIndex): 271(ptr) Variable Output - 274: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 275 13 26 267 16 38 275 273(outStream.ViewportIndex) 169 + 274: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 275 13 26 267 16 39 275 273(outStream.ViewportIndex) 169 278(outStream.PrimitiveID): 271(ptr) Variable Output - 279: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 280 13 26 267 16 38 280 278(outStream.PrimitiveID) 169 + 279: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 280 13 26 267 16 39 280 278(outStream.PrimitiveID) 169 283: TypePointer Output 21(fvec3) 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 17 16 285(outStream.Normal): 283(ptr) Variable Output - 286: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 287 22 26 267 16 38 287 285(outStream.Normal) 169 + 286: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 287 22 26 267 16 39 287 285(outStream.Normal) 169 290(outStream.Color): 283(ptr) Variable Output - 291: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 292 22 26 267 16 38 292 290(outStream.Color) 169 + 291: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 292 22 26 267 16 39 292 290(outStream.Color) 169 295(outStream.ViewVec): 283(ptr) Variable Output - 296: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 297 22 26 267 16 38 297 295(outStream.ViewVec) 169 + 296: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 297 22 26 267 16 39 297 295(outStream.ViewVec) 169 300(outStream.LightVec): 283(ptr) Variable Output - 301: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 302 22 26 267 16 38 302 300(outStream.LightVec) 169 + 301: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 302 22 26 267 16 39 302 300(outStream.LightVec) 169 311: 11(int) Constant 78 313: TypeArray 18(fvec4) 17 314: TypePointer Input 313 @@ -297,14 +297,14 @@ spv.debuginfo.hlsl.geom 354(PrimitiveID): 350(ptr) Variable Input 6(main): 4 Function None 5 7: Label - 312(input): 42(ptr) Variable Function -349(InvocationID): 63(ptr) Variable Function -353(PrimitiveID): 63(ptr) Variable Function - 356(outStream): 61(ptr) Variable Function - 357(param): 42(ptr) Variable Function - 359(param): 61(ptr) Variable Function - 360(param): 63(ptr) Variable Function - 362(param): 63(ptr) Variable Function + 312(input): 43(ptr) Variable Function +349(InvocationID): 64(ptr) Variable Function +353(PrimitiveID): 64(ptr) Variable Function + 356(outStream): 62(ptr) Variable Function + 357(param): 43(ptr) Variable Function + 359(param): 62(ptr) Variable Function + 360(param): 64(ptr) Variable Function + 362(param): 64(ptr) Variable Function 317: 316(ptr) AccessChain 315(input.Pos) 103 318: 18(fvec4) Load 317 319: 194(ptr) AccessChain 312(input) 103 103 @@ -345,60 +345,60 @@ spv.debuginfo.hlsl.geom Store 349(InvocationID) 352 355: 11(int) Load 354(PrimitiveID) Store 353(PrimitiveID) 355 - 358: 40 Load 312(input) + 358: 41 Load 312(input) Store 357(param) 358 361: 11(int) Load 349(InvocationID) Store 360(param) 361 363: 11(int) Load 353(PrimitiveID) Store 362(param) 363 - 364: 4 FunctionCall 71(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 357(param) 359(param) 360(param) 362(param) - 365:45(GSOutput) Load 359(param) + 364: 4 FunctionCall 72(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 357(param) 359(param) 360(param) 362(param) + 365:46(GSOutput) Load 359(param) Store 356(outStream) 365 Return FunctionEnd -71(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 4 Function None 65 - 67(input): 42(ptr) FunctionParameter - 68(outStream): 61(ptr) FunctionParameter -69(InvocationID): 63(ptr) FunctionParameter - 70(PrimitiveID): 63(ptr) FunctionParameter - 72: Label +72(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;): 4 Function None 66 + 68(input): 43(ptr) FunctionParameter + 69(outStream): 62(ptr) FunctionParameter +70(InvocationID): 64(ptr) FunctionParameter + 71(PrimitiveID): 64(ptr) FunctionParameter + 73: Label 97(i): 95(ptr) Variable Function - 119(output): 61(ptr) Variable Function + 119(output): 62(ptr) Variable Function 196(pos): 194(ptr) Variable Function 205(worldPos): 194(ptr) Variable Function 216(lPos): 134(ptr) Variable Function - 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74 - 81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 75 75 16 16 - 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 76 67(input) 79 - 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 82 68(outStream) 79 - 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 69(InvocationID) 79 - 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 89 70(PrimitiveID) 79 - 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 74 71(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) + 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 75 + 81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 38 38 16 16 + 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 76 68(input) 79 + 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 82 69(outStream) 79 + 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 70(InvocationID) 79 + 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 89 71(PrimitiveID) 79 + 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 75 72(@main(struct-VSOutput-vf4-vf3-vf31[3];struct-GSOutput-vf4-u1-u1-vf3-vf3-vf3-vf31;u1;u1;) 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 100 100 16 16 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 98 97(i) 79 Store 97(i) 103 Branch 104 104: Label - 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74 + 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 75 109: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 100 100 16 16 LoopMerge 106 107 None Branch 110 110: Label - 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74 + 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 75 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 100 100 16 16 111: 92(int) Load 97(i) 118: 115(bool) SLessThan 111 114 BranchConditional 118 105 106 105: Label - 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74 + 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 75 125: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 122 122 16 16 123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 120 119(output) 79 Store 119(output) 129 131: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 132 132 16 16 130: 92(int) Load 97(i) - 136: 134(ptr) AccessChain 67(input) 130 133 + 136: 134(ptr) AccessChain 68(input) 130 133 137: 21(fvec3) Load 136 - 170: 11(int) Load 69(InvocationID) + 170: 11(int) Load 70(InvocationID) 173: 171(ptr) AccessChain 167 103 133 170 174: 138 Load 173 177: 18(fvec4) CompositeExtract 174 0 @@ -413,20 +413,20 @@ spv.debuginfo.hlsl.geom Store 185 184 188: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 189 189 16 16 187: 92(int) Load 97(i) - 191: 134(ptr) AccessChain 67(input) 187 190 + 191: 134(ptr) AccessChain 68(input) 187 190 192: 21(fvec3) Load 191 193: 134(ptr) AccessChain 119(output) 186 Store 193 192 201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 199 199 16 16 200: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 197 196(pos) 79 202: 92(int) Load 97(i) - 203: 194(ptr) AccessChain 67(input) 202 103 + 203: 194(ptr) AccessChain 68(input) 202 103 204: 18(fvec4) Load 203 Store 196(pos) 204 210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 208 208 16 16 209: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 206 205(worldPos) 79 211: 18(fvec4) Load 196(pos) - 212: 11(int) Load 69(InvocationID) + 212: 11(int) Load 70(InvocationID) 213: 171(ptr) AccessChain 167 103 133 212 214: 138 Load 213 215: 18(fvec4) VectorTimesMatrix 211 214 @@ -435,7 +435,7 @@ spv.debuginfo.hlsl.geom 220: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 217 216(lPos) 79 224: 222(ptr) AccessChain 167 103 190 225: 18(fvec4) Load 224 - 226: 11(int) Load 69(InvocationID) + 226: 11(int) Load 70(InvocationID) 227: 171(ptr) AccessChain 167 103 133 226 228: 138 Load 227 229: 18(fvec4) VectorTimesMatrix 225 228 @@ -456,28 +456,28 @@ spv.debuginfo.hlsl.geom Store 245 244 247: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 248 248 16 16 246: 18(fvec4) Load 205(worldPos) - 249: 11(int) Load 69(InvocationID) + 249: 11(int) Load 70(InvocationID) 250: 171(ptr) AccessChain 167 103 103 249 251: 138 Load 250 252: 18(fvec4) VectorTimesMatrix 246 251 253: 194(ptr) AccessChain 119(output) 103 Store 253 252 255: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 256 256 16 16 - 254: 11(int) Load 69(InvocationID) - 257: 63(ptr) AccessChain 119(output) 133 + 254: 11(int) Load 70(InvocationID) + 257: 64(ptr) AccessChain 119(output) 133 Store 257 254 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 260 260 16 16 - 258: 11(int) Load 70(PrimitiveID) - 261: 63(ptr) AccessChain 119(output) 190 + 258: 11(int) Load 71(PrimitiveID) + 261: 64(ptr) AccessChain 119(output) 190 Store 261 258 269: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 267 267 16 16 268: 194(ptr) AccessChain 119(output) 103 270: 18(fvec4) Load 268 Store 264(outStream.Pos) 270 - 276: 63(ptr) AccessChain 119(output) 133 + 276: 64(ptr) AccessChain 119(output) 133 277: 11(int) Load 276 Store 273(outStream.ViewportIndex) 277 - 281: 63(ptr) AccessChain 119(output) 190 + 281: 64(ptr) AccessChain 119(output) 190 282: 11(int) Load 281 Store 278(outStream.PrimitiveID) 282 288: 134(ptr) AccessChain 119(output) 114 @@ -495,14 +495,14 @@ spv.debuginfo.hlsl.geom EmitVertex Branch 107 107: Label - 306: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74 + 306: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 75 307: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 100 100 16 16 305: 92(int) Load 97(i) 308: 92(int) IAdd 305 133 Store 97(i) 308 Branch 104 106: Label - 309: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 74 + 309: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 75 310: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 26 311 311 16 16 EndPrimitive Return diff --git a/Test/baseResults/spv.debuginfo.hlsl.tesc.out b/Test/baseResults/spv.debuginfo.hlsl.tesc.out index 2bccaa87..04e24c4c 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.tesc.out +++ b/Test/baseResults/spv.debuginfo.hlsl.tesc.out @@ -33,42 +33,42 @@ WARNING: 0:158: '' : attribute does not apply to entry point 53: String "bool" 61: String "frustumCheck" 65: String "Pos" - 69: String "inUV" - 78: String "Normal" - 82: String "UV" - 86: String "VSOutput" - 97: String "TessLevelOuter" - 101: String "TessLevelInner" - 104: String "ConstantsHSOutput" - 110: String "ConstantsHS" - 114: String "patch" - 127: String "HSOutput" - 134: String "@main" - 141: String "InvocationID" - 146: String "midPoint" - 159: String "radius" - 170: String "v0" - 182: String "modelview" - 187: String "lightPos" - 191: String "frustumPlanes" - 194: String "tessellatedEdgeSize" - 198: String "viewportDim" - 202: String "UBO" - 205: String "ubo" - 214: String "int" - 225: String "clip0" - 243: String "clip1" - 321: String "pos" - 328: String "type.2d.image" - 330: String "@type.2d.image" - 336: String "textureHeight" - 341: String "type.sampler" - 342: String "@type.sampler" - 347: String "samplerHeight" - 351: String "type.sampled.image" - 352: String "@type.sampled.image" - 369: String "i" - 423: String "output" + 70: String "inUV" + 79: String "Normal" + 83: String "UV" + 87: String "VSOutput" + 99: String "TessLevelOuter" + 103: String "TessLevelInner" + 106: String "ConstantsHSOutput" + 112: String "ConstantsHS" + 115: String "patch" + 129: String "HSOutput" + 137: String "@main" + 144: String "InvocationID" + 149: String "midPoint" + 162: String "radius" + 173: String "v0" + 185: String "modelview" + 190: String "lightPos" + 194: String "frustumPlanes" + 197: String "tessellatedEdgeSize" + 201: String "viewportDim" + 205: String "UBO" + 208: String "ubo" + 217: String "int" + 228: String "clip0" + 246: String "clip1" + 323: String "pos" + 330: String "type.2d.image" + 332: String "@type.2d.image" + 338: String "textureHeight" + 343: String "type.sampler" + 344: String "@type.sampler" + 349: String "samplerHeight" + 353: String "type.sampled.image" + 354: String "@type.sampled.image" + 371: String "i" + 424: String "output" Name 6 "main" Name 28 "screenSpaceTessFactor(vf4;vf4;" Name 26 "p0" @@ -76,54 +76,54 @@ WARNING: 0:158: '' : attribute does not apply to entry point Name 59 "frustumCheck(vf4;vf2;" Name 57 "Pos" Name 58 "inUV" - Name 73 "VSOutput" - MemberName 73(VSOutput) 0 "Pos" - MemberName 73(VSOutput) 1 "Normal" - MemberName 73(VSOutput) 2 "UV" - Name 95 "ConstantsHSOutput" - MemberName 95(ConstantsHSOutput) 0 "TessLevelOuter" - MemberName 95(ConstantsHSOutput) 1 "TessLevelInner" - Name 108 "ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];" - Name 107 "patch" - Name 119 "HSOutput" - MemberName 119(HSOutput) 0 "Pos" - MemberName 119(HSOutput) 1 "Normal" - MemberName 119(HSOutput) 2 "UV" - Name 132 "@main(struct-VSOutput-vf4-vf3-vf21[4];u1;" - Name 130 "patch" - Name 131 "InvocationID" - Name 144 "midPoint" - Name 157 "radius" - Name 168 "v0" - Name 180 "UBO" - MemberName 180(UBO) 0 "projection" - MemberName 180(UBO) 1 "modelview" - MemberName 180(UBO) 2 "lightPos" - MemberName 180(UBO) 3 "frustumPlanes" - MemberName 180(UBO) 4 "displacementFactor" - MemberName 180(UBO) 5 "tessellationFactor" - MemberName 180(UBO) 6 "viewportDim" - MemberName 180(UBO) 7 "tessellatedEdgeSize" - Name 203 "ubo" - MemberName 203(ubo) 0 "ubo" - Name 210 "" - Name 223 "clip0" - Name 241 "clip1" - Name 319 "pos" - Name 334 "textureHeight" - Name 345 "samplerHeight" - Name 367 "i" - Name 421 "output" - Name 431 "param" - Name 436 "param" - Name 471 "param" - Name 477 "param" - Name 482 "param" - Name 487 "param" - Name 492 "param" - Name 497 "param" - Name 502 "param" - Name 507 "param" + Name 74 "VSOutput" + MemberName 74(VSOutput) 0 "Pos" + MemberName 74(VSOutput) 1 "Normal" + MemberName 74(VSOutput) 2 "UV" + Name 97 "ConstantsHSOutput" + MemberName 97(ConstantsHSOutput) 0 "TessLevelOuter" + MemberName 97(ConstantsHSOutput) 1 "TessLevelInner" + Name 110 "ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];" + Name 109 "patch" + Name 121 "HSOutput" + MemberName 121(HSOutput) 0 "Pos" + MemberName 121(HSOutput) 1 "Normal" + MemberName 121(HSOutput) 2 "UV" + Name 135 "@main(struct-VSOutput-vf4-vf3-vf21[4];u1;" + Name 133 "patch" + Name 134 "InvocationID" + Name 147 "midPoint" + Name 160 "radius" + Name 171 "v0" + Name 183 "UBO" + MemberName 183(UBO) 0 "projection" + MemberName 183(UBO) 1 "modelview" + MemberName 183(UBO) 2 "lightPos" + MemberName 183(UBO) 3 "frustumPlanes" + MemberName 183(UBO) 4 "displacementFactor" + MemberName 183(UBO) 5 "tessellationFactor" + MemberName 183(UBO) 6 "viewportDim" + MemberName 183(UBO) 7 "tessellatedEdgeSize" + Name 206 "ubo" + MemberName 206(ubo) 0 "ubo" + Name 213 "" + Name 226 "clip0" + Name 244 "clip1" + Name 321 "pos" + Name 336 "textureHeight" + Name 347 "samplerHeight" + Name 369 "i" + Name 422 "output" + Name 432 "param" + Name 437 "param" + Name 472 "param" + Name 478 "param" + Name 483 "param" + Name 488 "param" + Name 493 "param" + Name 498 "param" + Name 503 "param" + Name 508 "param" Name 560 "output" Name 594 "patch" Name 597 "patch.Pos" @@ -141,27 +141,27 @@ WARNING: 0:158: '' : attribute does not apply to entry point Name 679 "param" Name 683 "@patchConstantOutput.TessLevelOuter" Name 698 "@patchConstantOutput.TessLevelInner" - Decorate 178 ArrayStride 16 - MemberDecorate 180(UBO) 0 RowMajor - MemberDecorate 180(UBO) 0 MatrixStride 16 - MemberDecorate 180(UBO) 0 Offset 0 - MemberDecorate 180(UBO) 1 RowMajor - MemberDecorate 180(UBO) 1 MatrixStride 16 - MemberDecorate 180(UBO) 1 Offset 64 - MemberDecorate 180(UBO) 2 Offset 128 - MemberDecorate 180(UBO) 3 Offset 144 - MemberDecorate 180(UBO) 4 Offset 240 - MemberDecorate 180(UBO) 5 Offset 244 - MemberDecorate 180(UBO) 6 Offset 248 - MemberDecorate 180(UBO) 7 Offset 256 - Decorate 203(ubo) Block - MemberDecorate 203(ubo) 0 Offset 0 - Decorate 210 Binding 0 - Decorate 210 DescriptorSet 0 - Decorate 334(textureHeight) Binding 1 - Decorate 334(textureHeight) DescriptorSet 0 - Decorate 345(samplerHeight) Binding 1 - Decorate 345(samplerHeight) DescriptorSet 0 + Decorate 181 ArrayStride 16 + MemberDecorate 183(UBO) 0 RowMajor + MemberDecorate 183(UBO) 0 MatrixStride 16 + MemberDecorate 183(UBO) 0 Offset 0 + MemberDecorate 183(UBO) 1 RowMajor + MemberDecorate 183(UBO) 1 MatrixStride 16 + MemberDecorate 183(UBO) 1 Offset 64 + MemberDecorate 183(UBO) 2 Offset 128 + MemberDecorate 183(UBO) 3 Offset 144 + MemberDecorate 183(UBO) 4 Offset 240 + MemberDecorate 183(UBO) 5 Offset 244 + MemberDecorate 183(UBO) 6 Offset 248 + MemberDecorate 183(UBO) 7 Offset 256 + Decorate 206(ubo) Block + MemberDecorate 206(ubo) 0 Offset 0 + Decorate 213 Binding 0 + Decorate 213 DescriptorSet 0 + Decorate 336(textureHeight) Binding 1 + Decorate 336(textureHeight) DescriptorSet 0 + Decorate 347(samplerHeight) Binding 1 + Decorate 347(samplerHeight) DescriptorSet 0 Decorate 597(patch.Pos) BuiltIn Position Decorate 604(patch.Normal) Location 0 Decorate 611(patch.UV) Location 1 @@ -212,204 +212,204 @@ WARNING: 0:158: '' : attribute does not apply to entry point 63: 11(int) Constant 95 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 61 56 32 63 16 35 61 17 63 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 65 20 32 63 16 62 19 36 - 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 69 49 32 63 16 62 19 46 - 71: TypeVector 8(float) 3 - 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 - 73(VSOutput): TypeStruct 18(fvec4) 71(fvec3) 48(fvec2) - 75: 11(int) Constant 44 - 76: 11(int) Constant 13 - 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 65 20 32 75 76 16 16 17 - 79: 11(int) Constant 45 - 80: 11(int) Constant 35 - 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 78 72 32 79 80 16 16 17 - 83: 11(int) Constant 46 - 84: 11(int) Constant 31 - 81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 82 49 32 83 84 16 16 17 - 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 86 36 32 63 16 35 86 16 17 74 77 81 - 87: TypeArray 73(VSOutput) 19 - 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 85 19 - 89: TypePointer Function 87 - 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 88 22 16 - 91: TypeArray 8(float) 19 - 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 19 - 93: TypeArray 8(float) 46 - 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 46 -95(ConstantsHSOutput): TypeStruct 91 93 - 98: 11(int) Constant 58 - 99: 11(int) Constant 25 - 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 97 92 32 98 99 16 16 17 - 102: 11(int) Constant 59 - 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 101 94 32 102 99 16 16 17 - 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 104 36 32 63 16 35 104 16 17 96 100 - 105: TypeFunction 95(ConstantsHSOutput) 89(ptr) - 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 103 88 - 112: 11(int) Constant 112 - 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 110 106 32 112 16 35 110 17 112 - 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 114 88 32 112 16 111 19 36 - 117: TypePointer Function 11(int) - 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 22 16 - 119(HSOutput): TypeStruct 18(fvec4) 71(fvec3) 48(fvec2) - 121: 11(int) Constant 51 - 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 65 20 32 121 14 16 16 17 - 123: 11(int) Constant 52 - 122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 78 72 32 123 80 16 16 17 - 125: 11(int) Constant 53 - 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 82 49 32 125 84 16 16 17 - 126: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 127 36 32 112 16 35 127 16 17 120 122 124 - 128: TypeFunction 119(HSOutput) 89(ptr) 117(ptr) - 129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 126 88 13 - 136: 11(int) Constant 158 - 135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 134 129 32 136 16 35 134 17 136 - 137: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 114 88 32 136 16 135 19 36 - 140: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 141 13 32 136 16 135 19 46 - 147: 11(int) Constant 67 - 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 146 20 32 147 16 31 19 - 150: 8(float) Constant 1056964608 - 155: TypePointer Function 8(float) - 156: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 22 16 - 160: 11(int) Constant 69 - 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 159 10 32 160 16 31 19 - 166: 8(float) Constant 1073741824 - 171: 11(int) Constant 72 - 169: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 170 20 32 171 16 31 19 - 175: TypeMatrix 18(fvec4) 4 - 177: 52(bool) ConstantTrue - 176: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 177 - 178: TypeArray 18(fvec4) 15 - 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 20 15 - 180(UBO): TypeStruct 175 175 18(fvec4) 178 8(float) 8(float) 48(fvec2) 8(float) - 183: 11(int) Constant 29 - 184: 11(int) Constant 20 - 181: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 182 176 32 183 184 16 16 17 - 185: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 182 176 32 183 184 16 16 17 - 188: 11(int) Constant 30 - 189: 11(int) Constant 17 - 186: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 187 20 32 188 189 16 16 17 - 192: 11(int) Constant 22 - 190: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 191 179 32 84 192 16 16 17 - 195: 11(int) Constant 27 - 193: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 194 10 32 80 195 16 16 17 - 196: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 194 10 32 80 195 16 16 17 - 199: 11(int) Constant 34 - 197: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 198 49 32 199 184 16 16 17 - 200: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 194 10 32 80 195 16 16 17 - 201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 202 36 32 171 16 35 202 16 17 181 185 186 190 193 196 197 200 - 203(ubo): TypeStruct 180(UBO) - 206: 11(int) Constant 37 - 204: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 205 201 32 206 206 16 16 17 - 207: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 205 36 32 171 16 35 205 16 17 204 - 208: TypePointer Uniform 203(ubo) - 209: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 207 46 16 - 210: 208(ptr) Variable Uniform - 212: 11(int) Constant 8 - 211: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 207 32 171 16 35 2 210 212 - 213: TypeInt 32 1 - 215: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 214 14 19 16 - 216: 213(int) Constant 0 - 217: 213(int) Constant 1 - 218: TypePointer Uniform 175 - 219: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 176 46 16 - 226: 11(int) Constant 75 - 224: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 225 20 32 226 16 31 19 - 231: 8(float) Constant 0 - 232: 71(fvec3) ConstantComposite 231 231 231 - 244: 11(int) Constant 76 - 242: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 243 20 32 244 16 31 19 - 259: 11(int) Constant 79 - 266: 11(int) Constant 80 - 271: 213(int) Constant 6 - 272: TypePointer Uniform 48(fvec2) - 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 49 46 16 - 276: 11(int) Constant 83 - 287: 11(int) Constant 84 - 298: 11(int) Constant 89 - 301: 213(int) Constant 7 - 302: TypePointer Uniform 8(float) - 303: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 46 16 - 307: 213(int) Constant 5 - 311: 8(float) Constant 1065353216 - 312: 8(float) Constant 1115684864 - 322: 11(int) Constant 98 - 320: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 321 20 32 322 16 62 19 - 326: TypeImage 8(float) 2D sampled format:Unknown - 329: 11(int) Constant 99 - 331: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 327: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 328 16 32 329 16 35 330 331 17 - 332: TypePointer UniformConstant 326 - 333: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 327 16 16 -334(textureHeight): 332(ptr) Variable UniformConstant - 335: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 336 327 32 329 16 35 336 334(textureHeight) 212 - 339: TypeSampler - 340: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 341 36 32 329 16 35 342 331 17 - 343: TypePointer UniformConstant 339 - 344: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 340 16 16 -345(samplerHeight): 343(ptr) Variable UniformConstant - 346: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 347 340 32 329 16 35 347 345(samplerHeight) 212 - 349: TypeSampledImage 326 - 350: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 351 16 32 329 16 35 352 331 17 - 357: 213(int) Constant 4 - 365: TypePointer Function 213(int) - 366: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 215 22 16 - 370: 11(int) Constant 102 - 368: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 369 215 32 370 16 62 19 - 387: 11(int) Constant 103 - 388: 213(int) Constant 3 - 390: TypePointer Uniform 18(fvec4) - 391: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 46 16 - 395: 8(float) Constant 1090519040 - 400: 52(bool) ConstantFalse - 403: 11(int) Constant 105 - 413: 11(int) Constant 108 - 419: TypePointer Function 95(ConstantsHSOutput) - 420: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 103 22 16 - 424: 11(int) Constant 113 - 422: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 423 103 32 424 16 111 19 - 427: 91 ConstantComposite 231 231 231 231 - 428: 93 ConstantComposite 231 231 - 429:95(ConstantsHSOutput) ConstantComposite 427 428 - 430: 213(int) Constant 2 - 434: 11(int) Constant 115 - 446: 11(int) Constant 117 - 449: 11(int) Constant 118 - 452: 11(int) Constant 119 - 455: 11(int) Constant 120 - 458: 11(int) Constant 121 - 461: 11(int) Constant 122 - 466: 11(int) Constant 126 - 475: 11(int) Constant 128 - 485: 11(int) Constant 129 - 495: 11(int) Constant 130 - 505: 11(int) Constant 131 - 514: 11(int) Constant 132 - 522: 11(int) Constant 133 - 532: 11(int) Constant 139 - 535: 11(int) Constant 140 - 538: 11(int) Constant 141 - 541: 11(int) Constant 142 - 544: 11(int) Constant 143 - 547: 11(int) Constant 144 - 552: 11(int) Constant 148 - 558: TypePointer Function 119(HSOutput) - 559: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 126 22 16 + 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 70 49 32 63 16 62 19 46 + 72: TypeVector 8(float) 3 + 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 + 74(VSOutput): TypeStruct 18(fvec4) 72(fvec3) 48(fvec2) + 76: 11(int) Constant 44 + 77: 11(int) Constant 13 + 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 65 20 32 76 77 16 16 17 + 80: 11(int) Constant 45 + 81: 11(int) Constant 35 + 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 79 73 32 80 81 16 16 17 + 84: 11(int) Constant 46 + 85: 11(int) Constant 31 + 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 83 49 32 84 85 16 16 17 + 88: 11(int) Constant 112 + 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 87 36 32 88 16 35 87 16 17 75 78 82 + 89: TypeArray 74(VSOutput) 19 + 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 86 19 + 91: TypePointer Function 89 + 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 90 22 16 + 93: TypeArray 8(float) 19 + 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 19 + 95: TypeArray 8(float) 46 + 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 46 +97(ConstantsHSOutput): TypeStruct 93 95 + 100: 11(int) Constant 58 + 101: 11(int) Constant 25 + 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 99 94 32 100 101 16 16 17 + 104: 11(int) Constant 59 + 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 103 96 32 104 101 16 16 17 + 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 106 36 32 88 16 35 106 16 17 98 102 + 107: TypeFunction 97(ConstantsHSOutput) 91(ptr) + 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 105 90 + 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 112 108 32 88 16 35 112 17 88 + 114: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 115 90 32 88 16 113 19 36 + 119: TypePointer Function 11(int) + 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 22 16 + 121(HSOutput): TypeStruct 18(fvec4) 72(fvec3) 48(fvec2) + 123: 11(int) Constant 51 + 122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 65 20 32 123 14 16 16 17 + 125: 11(int) Constant 52 + 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 79 73 32 125 81 16 16 17 + 127: 11(int) Constant 53 + 126: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 83 49 32 127 85 16 16 17 + 130: 11(int) Constant 158 + 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 129 36 32 130 16 35 129 16 17 122 124 126 + 131: TypeFunction 121(HSOutput) 91(ptr) 119(ptr) + 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 128 90 13 + 138: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 137 132 32 130 16 35 137 17 130 + 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 115 90 32 130 16 138 19 36 + 143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 144 13 32 130 16 138 19 46 + 150: 11(int) Constant 67 + 148: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 149 20 32 150 16 31 19 + 153: 8(float) Constant 1056964608 + 158: TypePointer Function 8(float) + 159: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 22 16 + 163: 11(int) Constant 69 + 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 162 10 32 163 16 31 19 + 169: 8(float) Constant 1073741824 + 174: 11(int) Constant 72 + 172: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 173 20 32 174 16 31 19 + 178: TypeMatrix 18(fvec4) 4 + 180: 52(bool) ConstantTrue + 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 180 + 181: TypeArray 18(fvec4) 15 + 182: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 20 15 + 183(UBO): TypeStruct 178 178 18(fvec4) 181 8(float) 8(float) 48(fvec2) 8(float) + 186: 11(int) Constant 29 + 187: 11(int) Constant 20 + 184: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 185 179 32 186 187 16 16 17 + 188: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 185 179 32 186 187 16 16 17 + 191: 11(int) Constant 30 + 192: 11(int) Constant 17 + 189: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 190 20 32 191 192 16 16 17 + 195: 11(int) Constant 22 + 193: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 194 182 32 85 195 16 16 17 + 198: 11(int) Constant 27 + 196: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 197 10 32 81 198 16 16 17 + 199: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 197 10 32 81 198 16 16 17 + 202: 11(int) Constant 34 + 200: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 201 49 32 202 187 16 16 17 + 203: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 197 10 32 81 198 16 16 17 + 204: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 205 36 32 174 16 35 205 16 17 184 188 189 193 196 199 200 203 + 206(ubo): TypeStruct 183(UBO) + 209: 11(int) Constant 37 + 207: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 208 204 32 209 209 16 16 17 + 210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 208 36 32 174 16 35 208 16 17 207 + 211: TypePointer Uniform 206(ubo) + 212: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 210 46 16 + 213: 211(ptr) Variable Uniform + 215: 11(int) Constant 8 + 214: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 210 32 174 16 35 2 213 215 + 216: TypeInt 32 1 + 218: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 217 14 19 16 + 219: 216(int) Constant 0 + 220: 216(int) Constant 1 + 221: TypePointer Uniform 178 + 222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 179 46 16 + 229: 11(int) Constant 75 + 227: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 228 20 32 229 16 31 19 + 234: 8(float) Constant 0 + 235: 72(fvec3) ConstantComposite 234 234 234 + 247: 11(int) Constant 76 + 245: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 246 20 32 247 16 31 19 + 262: 11(int) Constant 79 + 269: 11(int) Constant 80 + 274: 216(int) Constant 6 + 275: TypePointer Uniform 48(fvec2) + 276: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 49 46 16 + 279: 11(int) Constant 83 + 290: 11(int) Constant 84 + 301: 11(int) Constant 89 + 304: 216(int) Constant 7 + 305: TypePointer Uniform 8(float) + 306: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 46 16 + 310: 216(int) Constant 5 + 314: 8(float) Constant 1065353216 + 315: 8(float) Constant 1115684864 + 324: 11(int) Constant 98 + 322: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 323 20 32 324 16 62 19 + 328: TypeImage 8(float) 2D sampled format:Unknown + 331: 11(int) Constant 99 + 333: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) + 329: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 330 16 32 331 16 35 332 333 17 + 334: TypePointer UniformConstant 328 + 335: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 329 16 16 +336(textureHeight): 334(ptr) Variable UniformConstant + 337: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 338 329 32 331 16 35 338 336(textureHeight) 215 + 341: TypeSampler + 342: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 343 36 32 331 16 35 344 333 17 + 345: TypePointer UniformConstant 341 + 346: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 342 16 16 +347(samplerHeight): 345(ptr) Variable UniformConstant + 348: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 349 342 32 331 16 35 349 347(samplerHeight) 215 + 351: TypeSampledImage 328 + 352: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 353 16 32 331 16 35 354 333 17 + 359: 216(int) Constant 4 + 367: TypePointer Function 216(int) + 368: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 218 22 16 + 372: 11(int) Constant 102 + 370: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 371 218 32 372 16 62 19 + 389: 11(int) Constant 103 + 390: 216(int) Constant 3 + 392: TypePointer Uniform 18(fvec4) + 393: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 46 16 + 397: 8(float) Constant 1090519040 + 402: 52(bool) ConstantFalse + 405: 11(int) Constant 105 + 415: 11(int) Constant 108 + 420: TypePointer Function 97(ConstantsHSOutput) + 421: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 105 22 16 + 425: 11(int) Constant 113 + 423: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 424 105 32 425 16 113 19 + 428: 93 ConstantComposite 234 234 234 234 + 429: 95 ConstantComposite 234 234 + 430:97(ConstantsHSOutput) ConstantComposite 428 429 + 431: 216(int) Constant 2 + 435: 11(int) Constant 115 + 447: 11(int) Constant 117 + 450: 11(int) Constant 118 + 453: 11(int) Constant 119 + 456: 11(int) Constant 120 + 459: 11(int) Constant 121 + 462: 11(int) Constant 122 + 467: 11(int) Constant 126 + 476: 11(int) Constant 128 + 486: 11(int) Constant 129 + 496: 11(int) Constant 130 + 506: 11(int) Constant 131 + 515: 11(int) Constant 132 + 523: 11(int) Constant 133 + 533: 11(int) Constant 139 + 536: 11(int) Constant 140 + 539: 11(int) Constant 141 + 542: 11(int) Constant 142 + 545: 11(int) Constant 143 + 548: 11(int) Constant 144 + 553: 11(int) Constant 148 + 558: TypePointer Function 121(HSOutput) + 559: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 128 22 16 562: 11(int) Constant 159 - 561: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 423 126 32 562 16 135 19 - 565: 18(fvec4) ConstantComposite 231 231 231 231 - 566: 48(fvec2) ConstantComposite 231 231 - 567:119(HSOutput) ConstantComposite 565 232 566 + 561: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 424 128 32 562 16 138 19 + 565: 18(fvec4) ConstantComposite 234 234 234 234 + 566: 48(fvec2) ConstantComposite 234 234 + 567:121(HSOutput) ConstantComposite 565 235 566 570: 11(int) Constant 160 576: 11(int) Constant 161 - 577: TypePointer Function 71(fvec3) - 578: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 72 22 16 + 577: TypePointer Function 72(fvec3) + 578: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 73 22 16 584: 11(int) Constant 162 590: 11(int) Constant 163 595: TypeArray 18(fvec4) 19 596: TypePointer Input 595 597(patch.Pos): 596(ptr) Variable Input 598: TypePointer Input 18(fvec4) - 602: TypeArray 71(fvec3) 19 + 602: TypeArray 72(fvec3) 19 603: TypePointer Input 602 604(patch.Normal): 603(ptr) Variable Input - 605: TypePointer Input 71(fvec3) + 605: TypePointer Input 72(fvec3) 609: TypeArray 48(fvec2) 19 610: TypePointer Input 609 611(patch.UV): 610(ptr) Variable Input @@ -421,128 +421,128 @@ WARNING: 0:158: '' : attribute does not apply to entry point 658: TypePointer Output 18(fvec4) 660: TypePointer Output 602 661(@entryPointOutput.Normal): 660(ptr) Variable Output - 665: TypePointer Output 71(fvec3) + 665: TypePointer Output 72(fvec3) 667: TypePointer Output 609 668(@entryPointOutput.UV): 667(ptr) Variable Output 672: TypePointer Output 48(fvec2) - 682: TypePointer Output 91 + 682: TypePointer Output 93 683(@patchConstantOutput.TessLevelOuter): 682(ptr) Variable Output 686: TypePointer Output 8(float) - 697: TypePointer Output 93 + 697: TypePointer Output 95 698(@patchConstantOutput.TessLevelInner): 697(ptr) Variable Output 6(main): 4 Function None 5 7: Label - 594(patch): 89(ptr) Variable Function -643(InvocationID): 117(ptr) Variable Function + 594(patch): 91(ptr) Variable Function +643(InvocationID): 119(ptr) Variable Function 647(flattenTemp): 558(ptr) Variable Function - 648(param): 89(ptr) Variable Function - 650(param): 117(ptr) Variable Function -678(@patchConstantResult): 419(ptr) Variable Function - 679(param): 89(ptr) Variable Function - 599: 598(ptr) AccessChain 597(patch.Pos) 216 + 648(param): 91(ptr) Variable Function + 650(param): 119(ptr) Variable Function +678(@patchConstantResult): 420(ptr) Variable Function + 679(param): 91(ptr) Variable Function + 599: 598(ptr) AccessChain 597(patch.Pos) 219 600: 18(fvec4) Load 599 - 601: 21(ptr) AccessChain 594(patch) 216 216 + 601: 21(ptr) AccessChain 594(patch) 219 219 Store 601 600 - 606: 605(ptr) AccessChain 604(patch.Normal) 216 - 607: 71(fvec3) Load 606 - 608: 577(ptr) AccessChain 594(patch) 216 217 + 606: 605(ptr) AccessChain 604(patch.Normal) 219 + 607: 72(fvec3) Load 606 + 608: 577(ptr) AccessChain 594(patch) 219 220 Store 608 607 - 613: 612(ptr) AccessChain 611(patch.UV) 216 + 613: 612(ptr) AccessChain 611(patch.UV) 219 614: 48(fvec2) Load 613 - 615: 50(ptr) AccessChain 594(patch) 216 430 + 615: 50(ptr) AccessChain 594(patch) 219 431 Store 615 614 - 616: 598(ptr) AccessChain 597(patch.Pos) 217 + 616: 598(ptr) AccessChain 597(patch.Pos) 220 617: 18(fvec4) Load 616 - 618: 21(ptr) AccessChain 594(patch) 217 216 + 618: 21(ptr) AccessChain 594(patch) 220 219 Store 618 617 - 619: 605(ptr) AccessChain 604(patch.Normal) 217 - 620: 71(fvec3) Load 619 - 621: 577(ptr) AccessChain 594(patch) 217 217 + 619: 605(ptr) AccessChain 604(patch.Normal) 220 + 620: 72(fvec3) Load 619 + 621: 577(ptr) AccessChain 594(patch) 220 220 Store 621 620 - 622: 612(ptr) AccessChain 611(patch.UV) 217 + 622: 612(ptr) AccessChain 611(patch.UV) 220 623: 48(fvec2) Load 622 - 624: 50(ptr) AccessChain 594(patch) 217 430 + 624: 50(ptr) AccessChain 594(patch) 220 431 Store 624 623 - 625: 598(ptr) AccessChain 597(patch.Pos) 430 + 625: 598(ptr) AccessChain 597(patch.Pos) 431 626: 18(fvec4) Load 625 - 627: 21(ptr) AccessChain 594(patch) 430 216 + 627: 21(ptr) AccessChain 594(patch) 431 219 Store 627 626 - 628: 605(ptr) AccessChain 604(patch.Normal) 430 - 629: 71(fvec3) Load 628 - 630: 577(ptr) AccessChain 594(patch) 430 217 + 628: 605(ptr) AccessChain 604(patch.Normal) 431 + 629: 72(fvec3) Load 628 + 630: 577(ptr) AccessChain 594(patch) 431 220 Store 630 629 - 631: 612(ptr) AccessChain 611(patch.UV) 430 + 631: 612(ptr) AccessChain 611(patch.UV) 431 632: 48(fvec2) Load 631 - 633: 50(ptr) AccessChain 594(patch) 430 430 + 633: 50(ptr) AccessChain 594(patch) 431 431 Store 633 632 - 634: 598(ptr) AccessChain 597(patch.Pos) 388 + 634: 598(ptr) AccessChain 597(patch.Pos) 390 635: 18(fvec4) Load 634 - 636: 21(ptr) AccessChain 594(patch) 388 216 + 636: 21(ptr) AccessChain 594(patch) 390 219 Store 636 635 - 637: 605(ptr) AccessChain 604(patch.Normal) 388 - 638: 71(fvec3) Load 637 - 639: 577(ptr) AccessChain 594(patch) 388 217 + 637: 605(ptr) AccessChain 604(patch.Normal) 390 + 638: 72(fvec3) Load 637 + 639: 577(ptr) AccessChain 594(patch) 390 220 Store 639 638 - 640: 612(ptr) AccessChain 611(patch.UV) 388 + 640: 612(ptr) AccessChain 611(patch.UV) 390 641: 48(fvec2) Load 640 - 642: 50(ptr) AccessChain 594(patch) 388 430 + 642: 50(ptr) AccessChain 594(patch) 390 431 Store 642 641 646: 11(int) Load 645(InvocationID) Store 643(InvocationID) 646 - 649: 87 Load 594(patch) + 649: 89 Load 594(patch) Store 648(param) 649 651: 11(int) Load 643(InvocationID) Store 650(param) 651 - 652:119(HSOutput) FunctionCall 132(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) 648(param) 650(param) + 652:121(HSOutput) FunctionCall 135(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) 648(param) 650(param) Store 647(flattenTemp) 652 655: 11(int) Load 645(InvocationID) - 656: 21(ptr) AccessChain 647(flattenTemp) 216 + 656: 21(ptr) AccessChain 647(flattenTemp) 219 657: 18(fvec4) Load 656 659: 658(ptr) AccessChain 654(@entryPointOutput.Pos) 655 Store 659 657 662: 11(int) Load 645(InvocationID) - 663: 577(ptr) AccessChain 647(flattenTemp) 217 - 664: 71(fvec3) Load 663 + 663: 577(ptr) AccessChain 647(flattenTemp) 220 + 664: 72(fvec3) Load 663 666: 665(ptr) AccessChain 661(@entryPointOutput.Normal) 662 Store 666 664 669: 11(int) Load 645(InvocationID) - 670: 50(ptr) AccessChain 647(flattenTemp) 430 + 670: 50(ptr) AccessChain 647(flattenTemp) 431 671: 48(fvec2) Load 670 673: 672(ptr) AccessChain 668(@entryPointOutput.UV) 669 Store 673 671 ControlBarrier 46 19 16 674: 11(int) Load 645(InvocationID) - 675: 52(bool) IEqual 674 216 + 675: 52(bool) IEqual 674 219 SelectionMerge 677 None BranchConditional 675 676 677 676: Label - 680: 87 Load 594(patch) + 680: 89 Load 594(patch) Store 679(param) 680 - 681:95(ConstantsHSOutput) FunctionCall 108(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) 679(param) + 681:97(ConstantsHSOutput) FunctionCall 110(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) 679(param) Store 678(@patchConstantResult) 681 - 684: 155(ptr) AccessChain 678(@patchConstantResult) 216 216 + 684: 158(ptr) AccessChain 678(@patchConstantResult) 219 219 685: 8(float) Load 684 - 687: 686(ptr) AccessChain 683(@patchConstantOutput.TessLevelOuter) 216 + 687: 686(ptr) AccessChain 683(@patchConstantOutput.TessLevelOuter) 219 Store 687 685 - 688: 155(ptr) AccessChain 678(@patchConstantResult) 216 217 + 688: 158(ptr) AccessChain 678(@patchConstantResult) 219 220 689: 8(float) Load 688 - 690: 686(ptr) AccessChain 683(@patchConstantOutput.TessLevelOuter) 217 + 690: 686(ptr) AccessChain 683(@patchConstantOutput.TessLevelOuter) 220 Store 690 689 - 691: 155(ptr) AccessChain 678(@patchConstantResult) 216 430 + 691: 158(ptr) AccessChain 678(@patchConstantResult) 219 431 692: 8(float) Load 691 - 693: 686(ptr) AccessChain 683(@patchConstantOutput.TessLevelOuter) 430 + 693: 686(ptr) AccessChain 683(@patchConstantOutput.TessLevelOuter) 431 Store 693 692 - 694: 155(ptr) AccessChain 678(@patchConstantResult) 216 388 + 694: 158(ptr) AccessChain 678(@patchConstantResult) 219 390 695: 8(float) Load 694 - 696: 686(ptr) AccessChain 683(@patchConstantOutput.TessLevelOuter) 388 + 696: 686(ptr) AccessChain 683(@patchConstantOutput.TessLevelOuter) 390 Store 696 695 - 699: 155(ptr) AccessChain 678(@patchConstantResult) 217 216 + 699: 158(ptr) AccessChain 678(@patchConstantResult) 220 219 700: 8(float) Load 699 - 701: 686(ptr) AccessChain 698(@patchConstantOutput.TessLevelInner) 216 + 701: 686(ptr) AccessChain 698(@patchConstantOutput.TessLevelInner) 219 Store 701 700 - 702: 155(ptr) AccessChain 678(@patchConstantResult) 217 217 + 702: 158(ptr) AccessChain 678(@patchConstantResult) 220 220 703: 8(float) Load 702 - 704: 686(ptr) AccessChain 698(@patchConstantOutput.TessLevelInner) 217 + 704: 686(ptr) AccessChain 698(@patchConstantOutput.TessLevelInner) 220 Store 704 703 Branch 677 677: Label @@ -552,372 +552,372 @@ WARNING: 0:158: '' : attribute does not apply to entry point 26(p0): 21(ptr) FunctionParameter 27(p1): 21(ptr) FunctionParameter 29: Label - 144(midPoint): 21(ptr) Variable Function - 157(radius): 155(ptr) Variable Function - 168(v0): 21(ptr) Variable Function - 223(clip0): 21(ptr) Variable Function - 241(clip1): 21(ptr) Variable Function + 147(midPoint): 21(ptr) Variable Function + 160(radius): 158(ptr) Variable Function + 171(v0): 21(ptr) Variable Function + 226(clip0): 21(ptr) Variable Function + 244(clip1): 21(ptr) Variable Function 42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 31 43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 34 34 16 16 40: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 38 26(p0) 41 47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 44 27(p1) 41 - 143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 31 28(screenSpaceTessFactor(vf4;vf4;) - 149: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 147 147 16 16 - 148: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 145 144(midPoint) 41 - 151: 18(fvec4) Load 26(p0) - 152: 18(fvec4) Load 27(p1) - 153: 18(fvec4) FAdd 151 152 - 154: 18(fvec4) VectorTimesScalar 153 150 - Store 144(midPoint) 154 - 162: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 160 160 16 16 - 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 158 157(radius) 41 - 163: 18(fvec4) Load 26(p0) - 164: 18(fvec4) Load 27(p1) - 165: 8(float) ExtInst 3(GLSL.std.450) 67(Distance) 163 164 - 167: 8(float) FDiv 165 166 - Store 157(radius) 167 - 173: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 171 171 16 16 - 172: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 169 168(v0) 41 - 174: 18(fvec4) Load 144(midPoint) - 220: 218(ptr) AccessChain 210 216 217 - 221: 175 Load 220 - 222: 18(fvec4) VectorTimesMatrix 174 221 - Store 168(v0) 222 - 228: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 226 226 16 16 - 227: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 224 223(clip0) 41 - 229: 18(fvec4) Load 168(v0) - 230: 8(float) Load 157(radius) - 233: 8(float) CompositeExtract 232 0 - 234: 8(float) CompositeExtract 232 1 - 235: 8(float) CompositeExtract 232 2 - 236: 18(fvec4) CompositeConstruct 230 233 234 235 - 237: 18(fvec4) FSub 229 236 - 238: 218(ptr) AccessChain 210 216 216 - 239: 175 Load 238 - 240: 18(fvec4) VectorTimesMatrix 237 239 - Store 223(clip0) 240 - 246: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 244 244 16 16 - 245: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 242 241(clip1) 41 - 247: 18(fvec4) Load 168(v0) - 248: 8(float) Load 157(radius) - 249: 8(float) CompositeExtract 232 0 - 250: 8(float) CompositeExtract 232 1 - 251: 8(float) CompositeExtract 232 2 - 252: 18(fvec4) CompositeConstruct 248 249 250 251 - 253: 18(fvec4) FAdd 247 252 - 254: 218(ptr) AccessChain 210 216 216 - 255: 175 Load 254 - 256: 18(fvec4) VectorTimesMatrix 253 255 - Store 241(clip1) 256 - 258: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 259 259 16 16 - 257: 155(ptr) AccessChain 223(clip0) 17 - 260: 8(float) Load 257 - 261: 18(fvec4) Load 223(clip0) - 262: 18(fvec4) CompositeConstruct 260 260 260 260 - 263: 18(fvec4) FDiv 261 262 - Store 223(clip0) 263 - 265: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 266 266 16 16 - 264: 155(ptr) AccessChain 241(clip1) 17 - 267: 8(float) Load 264 - 268: 18(fvec4) Load 241(clip1) - 269: 18(fvec4) CompositeConstruct 267 267 267 267 - 270: 18(fvec4) FDiv 268 269 - Store 241(clip1) 270 - 275: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 276 276 16 16 - 274: 272(ptr) AccessChain 210 216 271 - 277: 48(fvec2) Load 274 - 278: 18(fvec4) Load 223(clip0) - 279: 48(fvec2) VectorShuffle 278 278 0 1 - 280: 48(fvec2) FMul 279 277 - 281: 155(ptr) AccessChain 223(clip0) 16 - 282: 8(float) CompositeExtract 280 0 - Store 281 282 - 283: 155(ptr) AccessChain 223(clip0) 36 - 284: 8(float) CompositeExtract 280 1 - Store 283 284 - 286: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 287 287 16 16 - 285: 272(ptr) AccessChain 210 216 271 - 288: 48(fvec2) Load 285 - 289: 18(fvec4) Load 241(clip1) - 290: 48(fvec2) VectorShuffle 289 289 0 1 - 291: 48(fvec2) FMul 290 288 - 292: 155(ptr) AccessChain 241(clip1) 16 - 293: 8(float) CompositeExtract 291 0 - Store 292 293 - 294: 155(ptr) AccessChain 241(clip1) 36 - 295: 8(float) CompositeExtract 291 1 - Store 294 295 - 297: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 298 298 16 16 - 296: 18(fvec4) Load 223(clip0) - 299: 18(fvec4) Load 241(clip1) - 300: 8(float) ExtInst 3(GLSL.std.450) 67(Distance) 296 299 - 304: 302(ptr) AccessChain 210 216 301 - 305: 8(float) Load 304 - 306: 8(float) FDiv 300 305 - 308: 302(ptr) AccessChain 210 216 307 - 309: 8(float) Load 308 - 310: 8(float) FMul 306 309 - 313: 8(float) ExtInst 3(GLSL.std.450) 43(FClamp) 310 311 312 - ReturnValue 313 + 146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 31 28(screenSpaceTessFactor(vf4;vf4;) + 152: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 150 150 16 16 + 151: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 148 147(midPoint) 41 + 154: 18(fvec4) Load 26(p0) + 155: 18(fvec4) Load 27(p1) + 156: 18(fvec4) FAdd 154 155 + 157: 18(fvec4) VectorTimesScalar 156 153 + Store 147(midPoint) 157 + 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 163 163 16 16 + 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 161 160(radius) 41 + 166: 18(fvec4) Load 26(p0) + 167: 18(fvec4) Load 27(p1) + 168: 8(float) ExtInst 3(GLSL.std.450) 67(Distance) 166 167 + 170: 8(float) FDiv 168 169 + Store 160(radius) 170 + 176: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 174 174 16 16 + 175: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 172 171(v0) 41 + 177: 18(fvec4) Load 147(midPoint) + 223: 221(ptr) AccessChain 213 219 220 + 224: 178 Load 223 + 225: 18(fvec4) VectorTimesMatrix 177 224 + Store 171(v0) 225 + 231: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 229 229 16 16 + 230: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 227 226(clip0) 41 + 232: 18(fvec4) Load 171(v0) + 233: 8(float) Load 160(radius) + 236: 8(float) CompositeExtract 235 0 + 237: 8(float) CompositeExtract 235 1 + 238: 8(float) CompositeExtract 235 2 + 239: 18(fvec4) CompositeConstruct 233 236 237 238 + 240: 18(fvec4) FSub 232 239 + 241: 221(ptr) AccessChain 213 219 219 + 242: 178 Load 241 + 243: 18(fvec4) VectorTimesMatrix 240 242 + Store 226(clip0) 243 + 249: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 247 247 16 16 + 248: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 245 244(clip1) 41 + 250: 18(fvec4) Load 171(v0) + 251: 8(float) Load 160(radius) + 252: 8(float) CompositeExtract 235 0 + 253: 8(float) CompositeExtract 235 1 + 254: 8(float) CompositeExtract 235 2 + 255: 18(fvec4) CompositeConstruct 251 252 253 254 + 256: 18(fvec4) FAdd 250 255 + 257: 221(ptr) AccessChain 213 219 219 + 258: 178 Load 257 + 259: 18(fvec4) VectorTimesMatrix 256 258 + Store 244(clip1) 259 + 261: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 262 262 16 16 + 260: 158(ptr) AccessChain 226(clip0) 17 + 263: 8(float) Load 260 + 264: 18(fvec4) Load 226(clip0) + 265: 18(fvec4) CompositeConstruct 263 263 263 263 + 266: 18(fvec4) FDiv 264 265 + Store 226(clip0) 266 + 268: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 269 269 16 16 + 267: 158(ptr) AccessChain 244(clip1) 17 + 270: 8(float) Load 267 + 271: 18(fvec4) Load 244(clip1) + 272: 18(fvec4) CompositeConstruct 270 270 270 270 + 273: 18(fvec4) FDiv 271 272 + Store 244(clip1) 273 + 278: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 279 279 16 16 + 277: 275(ptr) AccessChain 213 219 274 + 280: 48(fvec2) Load 277 + 281: 18(fvec4) Load 226(clip0) + 282: 48(fvec2) VectorShuffle 281 281 0 1 + 283: 48(fvec2) FMul 282 280 + 284: 158(ptr) AccessChain 226(clip0) 16 + 285: 8(float) CompositeExtract 283 0 + Store 284 285 + 286: 158(ptr) AccessChain 226(clip0) 36 + 287: 8(float) CompositeExtract 283 1 + Store 286 287 + 289: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 290 290 16 16 + 288: 275(ptr) AccessChain 213 219 274 + 291: 48(fvec2) Load 288 + 292: 18(fvec4) Load 244(clip1) + 293: 48(fvec2) VectorShuffle 292 292 0 1 + 294: 48(fvec2) FMul 293 291 + 295: 158(ptr) AccessChain 244(clip1) 16 + 296: 8(float) CompositeExtract 294 0 + Store 295 296 + 297: 158(ptr) AccessChain 244(clip1) 36 + 298: 8(float) CompositeExtract 294 1 + Store 297 298 + 300: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 301 301 16 16 + 299: 18(fvec4) Load 226(clip0) + 302: 18(fvec4) Load 244(clip1) + 303: 8(float) ExtInst 3(GLSL.std.450) 67(Distance) 299 302 + 307: 305(ptr) AccessChain 213 219 304 + 308: 8(float) Load 307 + 309: 8(float) FDiv 303 308 + 311: 305(ptr) AccessChain 213 219 310 + 312: 8(float) Load 311 + 313: 8(float) FMul 309 312 + 316: 8(float) ExtInst 3(GLSL.std.450) 43(FClamp) 313 314 315 + ReturnValue 316 FunctionEnd 59(frustumCheck(vf4;vf2;): 52(bool) Function None 55 57(Pos): 21(ptr) FunctionParameter 58(inUV): 50(ptr) FunctionParameter 60: Label - 319(pos): 21(ptr) Variable Function - 367(i): 365(ptr) Variable Function + 321(pos): 21(ptr) Variable Function + 369(i): 367(ptr) Variable Function 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 + 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 63 63 16 16 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 64 57(Pos) 41 - 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 68 58(inUV) 41 - 318: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 63 63 16 16 - 317: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 62 59(frustumCheck(vf4;vf2;) - 324: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 322 322 16 16 - 323: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 320 319(pos) 41 - 325: 18(fvec4) Load 57(Pos) - Store 319(pos) 325 - 338: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 329 329 16 16 - 337: 326 Load 334(textureHeight) - 348: 339 Load 345(samplerHeight) - 353: 349 SampledImage 337 348 - 354: 48(fvec2) Load 58(inUV) - 355: 18(fvec4) ImageSampleExplicitLod 353 354 Lod 231 - 356: 8(float) CompositeExtract 355 0 - 358: 302(ptr) AccessChain 210 216 357 - 359: 8(float) Load 358 - 360: 8(float) FMul 356 359 - 361: 155(ptr) AccessChain 319(pos) 36 - 362: 8(float) Load 361 - 363: 8(float) FSub 362 360 - 364: 155(ptr) AccessChain 319(pos) 36 - Store 364 363 - 372: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 370 370 16 16 - 371: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 368 367(i) 41 - Store 367(i) 216 - Branch 373 - 373: Label - 377: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 - 378: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 370 370 16 16 - LoopMerge 375 376 None - Branch 379 - 379: Label - 381: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 - 382: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 370 370 16 16 - 380: 213(int) Load 367(i) - 383: 52(bool) SLessThan 380 271 - BranchConditional 383 374 375 - 374: Label - 385: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 - 386: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 387 387 16 16 - 384: 18(fvec4) Load 319(pos) - 389: 213(int) Load 367(i) - 392: 390(ptr) AccessChain 210 216 388 389 - 393: 18(fvec4) Load 392 - 394: 8(float) Dot 384 393 - 396: 8(float) FAdd 394 395 - 397: 52(bool) FOrdLessThan 396 231 - SelectionMerge 399 None - BranchConditional 397 398 399 - 398: Label - 401: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 - 402: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 403 403 16 16 - ReturnValue 400 - 399: Label - 406: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 - Branch 376 - 376: Label - 408: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 - 409: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 370 370 16 16 - 407: 213(int) Load 367(i) - 410: 213(int) IAdd 407 217 - Store 367(i) 410 - Branch 373 + 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 69 58(inUV) 41 + 320: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 62 59(frustumCheck(vf4;vf2;) + 326: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 324 324 16 16 + 325: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 322 321(pos) 41 + 327: 18(fvec4) Load 57(Pos) + Store 321(pos) 327 + 340: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 331 331 16 16 + 339: 328 Load 336(textureHeight) + 350: 341 Load 347(samplerHeight) + 355: 351 SampledImage 339 350 + 356: 48(fvec2) Load 58(inUV) + 357: 18(fvec4) ImageSampleExplicitLod 355 356 Lod 234 + 358: 8(float) CompositeExtract 357 0 + 360: 305(ptr) AccessChain 213 219 359 + 361: 8(float) Load 360 + 362: 8(float) FMul 358 361 + 363: 158(ptr) AccessChain 321(pos) 36 + 364: 8(float) Load 363 + 365: 8(float) FSub 364 362 + 366: 158(ptr) AccessChain 321(pos) 36 + Store 366 365 + 374: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 372 372 16 16 + 373: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 370 369(i) 41 + Store 369(i) 219 + Branch 375 375: Label - 411: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 - 412: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 413 413 16 16 - ReturnValue 177 + 379: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 + 380: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 372 372 16 16 + LoopMerge 377 378 None + Branch 381 + 381: Label + 383: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 + 384: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 372 372 16 16 + 382: 216(int) Load 369(i) + 385: 52(bool) SLessThan 382 274 + BranchConditional 385 376 377 + 376: Label + 387: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 + 388: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 389 389 16 16 + 386: 18(fvec4) Load 321(pos) + 391: 216(int) Load 369(i) + 394: 392(ptr) AccessChain 213 219 390 391 + 395: 18(fvec4) Load 394 + 396: 8(float) Dot 386 395 + 398: 8(float) FAdd 396 397 + 399: 52(bool) FOrdLessThan 398 234 + SelectionMerge 401 None + BranchConditional 399 400 401 + 400: Label + 403: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 + 404: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 405 405 16 16 + ReturnValue 402 + 401: Label + 408: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 + Branch 378 + 378: Label + 410: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 + 411: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 372 372 16 16 + 409: 216(int) Load 369(i) + 412: 216(int) IAdd 409 220 + Store 369(i) 412 + Branch 375 + 377: Label + 413: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 + 414: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 415 415 16 16 + ReturnValue 180 FunctionEnd -108(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];):95(ConstantsHSOutput) Function None 105 - 107(patch): 89(ptr) FunctionParameter - 109: Label - 421(output): 419(ptr) Variable Function - 431(param): 21(ptr) Variable Function - 436(param): 50(ptr) Variable Function - 471(param): 21(ptr) Variable Function - 477(param): 21(ptr) Variable Function - 482(param): 21(ptr) Variable Function - 487(param): 21(ptr) Variable Function - 492(param): 21(ptr) Variable Function - 497(param): 21(ptr) Variable Function - 502(param): 21(ptr) Variable Function - 507(param): 21(ptr) Variable Function - 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 111 - 115: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 113 107(patch) 41 - 418: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 112 112 16 16 - 417: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 111 108(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) - 426: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 424 424 16 16 - 425: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 422 421(output) 41 - Store 421(output) 429 - 433: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 434 434 16 16 - 432: 21(ptr) AccessChain 107(patch) 216 216 - 435: 18(fvec4) Load 432 - Store 431(param) 435 - 437: 50(ptr) AccessChain 107(patch) 216 430 - 438: 48(fvec2) Load 437 - Store 436(param) 438 - 439: 52(bool) FunctionCall 59(frustumCheck(vf4;vf2;) 431(param) 436(param) - 440: 52(bool) LogicalNot 439 - SelectionMerge 442 None - BranchConditional 440 441 462 - 441: Label - 444: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 111 - 445: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 446 446 16 16 - 443: 155(ptr) AccessChain 421(output) 217 216 - Store 443 231 - 448: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 449 449 16 16 - 447: 155(ptr) AccessChain 421(output) 217 217 - Store 447 231 - 451: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 452 452 16 16 - 450: 155(ptr) AccessChain 421(output) 216 216 - Store 450 231 - 454: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 455 455 16 16 - 453: 155(ptr) AccessChain 421(output) 216 217 - Store 453 231 - 457: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 458 458 16 16 - 456: 155(ptr) AccessChain 421(output) 216 430 - Store 456 231 - 460: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 461 461 16 16 - 459: 155(ptr) AccessChain 421(output) 216 388 - Store 459 231 - Branch 442 - 462: Label - 464: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 111 - 465: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 466 466 16 16 - 463: 302(ptr) AccessChain 210 216 307 - 467: 8(float) Load 463 - 468: 52(bool) FOrdGreaterThan 467 231 - SelectionMerge 470 None - BranchConditional 468 469 528 - 469: Label - 473: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 111 - 474: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 475 475 16 16 - 472: 21(ptr) AccessChain 107(patch) 388 216 - 476: 18(fvec4) Load 472 - Store 471(param) 476 - 478: 21(ptr) AccessChain 107(patch) 216 216 - 479: 18(fvec4) Load 478 - Store 477(param) 479 - 480: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 471(param) 477(param) - 481: 155(ptr) AccessChain 421(output) 216 216 - Store 481 480 - 484: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 485 485 16 16 - 483: 21(ptr) AccessChain 107(patch) 216 216 - 486: 18(fvec4) Load 483 - Store 482(param) 486 - 488: 21(ptr) AccessChain 107(patch) 217 216 - 489: 18(fvec4) Load 488 - Store 487(param) 489 - 490: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 482(param) 487(param) - 491: 155(ptr) AccessChain 421(output) 216 217 - Store 491 490 - 494: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 495 495 16 16 - 493: 21(ptr) AccessChain 107(patch) 217 216 - 496: 18(fvec4) Load 493 - Store 492(param) 496 - 498: 21(ptr) AccessChain 107(patch) 430 216 - 499: 18(fvec4) Load 498 - Store 497(param) 499 - 500: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 492(param) 497(param) - 501: 155(ptr) AccessChain 421(output) 216 430 - Store 501 500 - 504: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 505 505 16 16 - 503: 21(ptr) AccessChain 107(patch) 430 216 - 506: 18(fvec4) Load 503 - Store 502(param) 506 - 508: 21(ptr) AccessChain 107(patch) 388 216 - 509: 18(fvec4) Load 508 - Store 507(param) 509 - 510: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 502(param) 507(param) - 511: 155(ptr) AccessChain 421(output) 216 388 - Store 511 510 - 513: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 514 514 16 16 - 512: 155(ptr) AccessChain 421(output) 216 216 - 515: 8(float) Load 512 - 516: 155(ptr) AccessChain 421(output) 216 388 - 517: 8(float) Load 516 - 518: 8(float) ExtInst 3(GLSL.std.450) 46(FMix) 515 517 150 - 519: 155(ptr) AccessChain 421(output) 217 216 - Store 519 518 - 521: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 522 522 16 16 - 520: 155(ptr) AccessChain 421(output) 216 430 - 523: 8(float) Load 520 - 524: 155(ptr) AccessChain 421(output) 216 217 - 525: 8(float) Load 524 - 526: 8(float) ExtInst 3(GLSL.std.450) 46(FMix) 523 525 150 - 527: 155(ptr) AccessChain 421(output) 217 217 - Store 527 526 - Branch 470 - 528: Label - 530: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 111 - 531: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 532 532 16 16 - 529: 155(ptr) AccessChain 421(output) 217 216 - Store 529 311 - 534: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 535 535 16 16 - 533: 155(ptr) AccessChain 421(output) 217 217 - Store 533 311 - 537: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 538 538 16 16 - 536: 155(ptr) AccessChain 421(output) 216 216 - Store 536 311 - 540: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 541 541 16 16 - 539: 155(ptr) AccessChain 421(output) 216 217 - Store 539 311 - 543: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 544 544 16 16 - 542: 155(ptr) AccessChain 421(output) 216 430 - Store 542 311 - 546: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 547 547 16 16 - 545: 155(ptr) AccessChain 421(output) 216 388 - Store 545 311 - Branch 470 - 470: Label - 548: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 111 - Branch 442 - 442: Label - 550: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 111 - 551: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 552 552 16 16 - 549:95(ConstantsHSOutput) Load 421(output) - ReturnValue 549 +110(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];):97(ConstantsHSOutput) Function None 107 + 109(patch): 91(ptr) FunctionParameter + 111: Label + 422(output): 420(ptr) Variable Function + 432(param): 21(ptr) Variable Function + 437(param): 50(ptr) Variable Function + 472(param): 21(ptr) Variable Function + 478(param): 21(ptr) Variable Function + 483(param): 21(ptr) Variable Function + 488(param): 21(ptr) Variable Function + 493(param): 21(ptr) Variable Function + 498(param): 21(ptr) Variable Function + 503(param): 21(ptr) Variable Function + 508(param): 21(ptr) Variable Function + 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 113 + 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 88 88 16 16 + 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 114 109(patch) 41 + 419: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 113 110(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) + 427: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 425 425 16 16 + 426: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 423 422(output) 41 + Store 422(output) 430 + 434: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 435 435 16 16 + 433: 21(ptr) AccessChain 109(patch) 219 219 + 436: 18(fvec4) Load 433 + Store 432(param) 436 + 438: 50(ptr) AccessChain 109(patch) 219 431 + 439: 48(fvec2) Load 438 + Store 437(param) 439 + 440: 52(bool) FunctionCall 59(frustumCheck(vf4;vf2;) 432(param) 437(param) + 441: 52(bool) LogicalNot 440 + SelectionMerge 443 None + BranchConditional 441 442 463 + 442: Label + 445: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 113 + 446: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 447 447 16 16 + 444: 158(ptr) AccessChain 422(output) 220 219 + Store 444 234 + 449: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 450 450 16 16 + 448: 158(ptr) AccessChain 422(output) 220 220 + Store 448 234 + 452: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 453 453 16 16 + 451: 158(ptr) AccessChain 422(output) 219 219 + Store 451 234 + 455: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 456 456 16 16 + 454: 158(ptr) AccessChain 422(output) 219 220 + Store 454 234 + 458: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 459 459 16 16 + 457: 158(ptr) AccessChain 422(output) 219 431 + Store 457 234 + 461: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 462 462 16 16 + 460: 158(ptr) AccessChain 422(output) 219 390 + Store 460 234 + Branch 443 + 463: Label + 465: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 113 + 466: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 467 467 16 16 + 464: 305(ptr) AccessChain 213 219 310 + 468: 8(float) Load 464 + 469: 52(bool) FOrdGreaterThan 468 234 + SelectionMerge 471 None + BranchConditional 469 470 529 + 470: Label + 474: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 113 + 475: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 476 476 16 16 + 473: 21(ptr) AccessChain 109(patch) 390 219 + 477: 18(fvec4) Load 473 + Store 472(param) 477 + 479: 21(ptr) AccessChain 109(patch) 219 219 + 480: 18(fvec4) Load 479 + Store 478(param) 480 + 481: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 472(param) 478(param) + 482: 158(ptr) AccessChain 422(output) 219 219 + Store 482 481 + 485: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 486 486 16 16 + 484: 21(ptr) AccessChain 109(patch) 219 219 + 487: 18(fvec4) Load 484 + Store 483(param) 487 + 489: 21(ptr) AccessChain 109(patch) 220 219 + 490: 18(fvec4) Load 489 + Store 488(param) 490 + 491: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 483(param) 488(param) + 492: 158(ptr) AccessChain 422(output) 219 220 + Store 492 491 + 495: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 496 496 16 16 + 494: 21(ptr) AccessChain 109(patch) 220 219 + 497: 18(fvec4) Load 494 + Store 493(param) 497 + 499: 21(ptr) AccessChain 109(patch) 431 219 + 500: 18(fvec4) Load 499 + Store 498(param) 500 + 501: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 493(param) 498(param) + 502: 158(ptr) AccessChain 422(output) 219 431 + Store 502 501 + 505: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 506 506 16 16 + 504: 21(ptr) AccessChain 109(patch) 431 219 + 507: 18(fvec4) Load 504 + Store 503(param) 507 + 509: 21(ptr) AccessChain 109(patch) 390 219 + 510: 18(fvec4) Load 509 + Store 508(param) 510 + 511: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 503(param) 508(param) + 512: 158(ptr) AccessChain 422(output) 219 390 + Store 512 511 + 514: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 515 515 16 16 + 513: 158(ptr) AccessChain 422(output) 219 219 + 516: 8(float) Load 513 + 517: 158(ptr) AccessChain 422(output) 219 390 + 518: 8(float) Load 517 + 519: 8(float) ExtInst 3(GLSL.std.450) 46(FMix) 516 518 153 + 520: 158(ptr) AccessChain 422(output) 220 219 + Store 520 519 + 522: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 523 523 16 16 + 521: 158(ptr) AccessChain 422(output) 219 431 + 524: 8(float) Load 521 + 525: 158(ptr) AccessChain 422(output) 219 220 + 526: 8(float) Load 525 + 527: 8(float) ExtInst 3(GLSL.std.450) 46(FMix) 524 526 153 + 528: 158(ptr) AccessChain 422(output) 220 220 + Store 528 527 + Branch 471 + 529: Label + 531: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 113 + 532: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 533 533 16 16 + 530: 158(ptr) AccessChain 422(output) 220 219 + Store 530 314 + 535: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 536 536 16 16 + 534: 158(ptr) AccessChain 422(output) 220 220 + Store 534 314 + 538: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 539 539 16 16 + 537: 158(ptr) AccessChain 422(output) 219 219 + Store 537 314 + 541: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 542 542 16 16 + 540: 158(ptr) AccessChain 422(output) 219 220 + Store 540 314 + 544: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 545 545 16 16 + 543: 158(ptr) AccessChain 422(output) 219 431 + Store 543 314 + 547: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 548 548 16 16 + 546: 158(ptr) AccessChain 422(output) 219 390 + Store 546 314 + Branch 471 + 471: Label + 549: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 113 + Branch 443 + 443: Label + 551: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 113 + 552: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 553 553 16 16 + 550:97(ConstantsHSOutput) Load 422(output) + ReturnValue 550 FunctionEnd -132(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;):119(HSOutput) Function None 128 - 130(patch): 89(ptr) FunctionParameter -131(InvocationID): 117(ptr) FunctionParameter - 133: Label +135(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;):121(HSOutput) Function None 131 + 133(patch): 91(ptr) FunctionParameter +134(InvocationID): 119(ptr) FunctionParameter + 136: Label 560(output): 558(ptr) Variable Function - 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 135 - 138: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 137 130(patch) 41 - 142: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 140 131(InvocationID) 41 - 557: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 136 136 16 16 - 556: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 135 132(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) + 141: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 138 + 142: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 130 130 16 16 + 140: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 139 133(patch) 41 + 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 143 134(InvocationID) 41 + 557: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 138 135(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) 564: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 562 562 16 16 563: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 561 560(output) 41 Store 560(output) 567 569: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 570 570 16 16 - 568: 11(int) Load 131(InvocationID) - 571: 21(ptr) AccessChain 130(patch) 568 216 + 568: 11(int) Load 134(InvocationID) + 571: 21(ptr) AccessChain 133(patch) 568 219 572: 18(fvec4) Load 571 - 573: 21(ptr) AccessChain 560(output) 216 + 573: 21(ptr) AccessChain 560(output) 219 Store 573 572 575: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 576 576 16 16 - 574: 11(int) Load 131(InvocationID) - 579: 577(ptr) AccessChain 130(patch) 574 217 - 580: 71(fvec3) Load 579 - 581: 577(ptr) AccessChain 560(output) 217 + 574: 11(int) Load 134(InvocationID) + 579: 577(ptr) AccessChain 133(patch) 574 220 + 580: 72(fvec3) Load 579 + 581: 577(ptr) AccessChain 560(output) 220 Store 581 580 583: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 584 584 16 16 - 582: 11(int) Load 131(InvocationID) - 585: 50(ptr) AccessChain 130(patch) 582 430 + 582: 11(int) Load 134(InvocationID) + 585: 50(ptr) AccessChain 133(patch) 582 431 586: 48(fvec2) Load 585 - 587: 50(ptr) AccessChain 560(output) 430 + 587: 50(ptr) AccessChain 560(output) 431 Store 587 586 589: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 590 590 16 16 - 588:119(HSOutput) Load 560(output) + 588:121(HSOutput) Load 560(output) ReturnValue 588 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.tese.out b/Test/baseResults/spv.debuginfo.hlsl.tese.out index 53704c1f..e2b8ffd3 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.tese.out +++ b/Test/baseResults/spv.debuginfo.hlsl.tese.out @@ -25,13 +25,13 @@ spv.debuginfo.hlsl.tese " 32: String "TessLevelInner" 35: String "ConstantsHSOutput" - 52: String "Pos" - 55: String "Normal" - 59: String "UV" - 63: String "HSOutput" - 71: String "WorldPos" - 81: String "DSOutput" - 89: String "@main" + 53: String "Pos" + 56: String "Normal" + 60: String "UV" + 64: String "HSOutput" + 72: String "WorldPos" + 82: String "DSOutput" + 90: String "@main" 93: String "input" 99: String "TessCoord" 102: String "patch" @@ -64,22 +64,22 @@ spv.debuginfo.hlsl.tese Name 24 "ConstantsHSOutput" MemberName 24(ConstantsHSOutput) 0 "TessLevelOuter" MemberName 24(ConstantsHSOutput) 1 "TessLevelInner" - Name 50 "HSOutput" - MemberName 50(HSOutput) 0 "Pos" - MemberName 50(HSOutput) 1 "Normal" - MemberName 50(HSOutput) 2 "UV" - Name 66 "DSOutput" - MemberName 66(DSOutput) 0 "Pos" - MemberName 66(DSOutput) 1 "Normal" - MemberName 66(DSOutput) 2 "UV" - MemberName 66(DSOutput) 3 "ViewVec" - MemberName 66(DSOutput) 4 "LightVec" - MemberName 66(DSOutput) 5 "EyePos" - MemberName 66(DSOutput) 6 "WorldPos" - Name 87 "@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];" - Name 84 "input" - Name 85 "TessCoord" - Name 86 "patch" + Name 51 "HSOutput" + MemberName 51(HSOutput) 0 "Pos" + MemberName 51(HSOutput) 1 "Normal" + MemberName 51(HSOutput) 2 "UV" + Name 67 "DSOutput" + MemberName 67(DSOutput) 0 "Pos" + MemberName 67(DSOutput) 1 "Normal" + MemberName 67(DSOutput) 2 "UV" + MemberName 67(DSOutput) 3 "ViewVec" + MemberName 67(DSOutput) 4 "LightVec" + MemberName 67(DSOutput) 5 "EyePos" + MemberName 67(DSOutput) 6 "WorldPos" + Name 88 "@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];" + Name 85 "input" + Name 86 "TessCoord" + Name 87 "patch" Name 107 "output" Name 118 "uv1" Name 138 "uv2" @@ -182,139 +182,139 @@ spv.debuginfo.hlsl.tese 33: 11(int) Constant 52 31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 32 23 27 33 30 16 16 17 36: 11(int) Constant 1 - 38: 11(int) Constant 5 - 37: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 36 18 27 38 - 34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 35 36 27 16 16 37 35 16 17 25 31 - 39: TypePointer Function 24(ConstantsHSOutput) - 40: 11(int) Constant 7 - 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 34 40 16 - 42: TypeVector 8(float) 2 - 43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 21 - 44: TypePointer Function 42(fvec2) - 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 43 40 16 - 46: TypeVector 8(float) 4 - 47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 18 - 48: TypeVector 8(float) 3 - 49: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 - 50(HSOutput): TypeStruct 46(fvec4) 48(fvec3) 42(fvec2) - 53: 11(int) Constant 44 - 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 47 27 53 14 16 16 17 - 56: 11(int) Constant 45 - 57: 11(int) Constant 35 - 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 49 27 56 57 16 16 17 - 60: 11(int) Constant 46 - 61: 11(int) Constant 31 - 58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 59 43 27 60 61 16 16 17 - 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 63 36 27 16 16 37 63 16 17 51 54 58 - 64: TypeArray 50(HSOutput) 18 - 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 62 18 - 66(DSOutput): TypeStruct 46(fvec4) 48(fvec3) 42(fvec2) 48(fvec3) 48(fvec3) 48(fvec3) 48(fvec3) - 68: 11(int) Constant 57 - 69: 11(int) Constant 13 - 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 47 27 68 69 16 16 17 - 72: 11(int) Constant 63 - 73: 11(int) Constant 37 - 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17 - 75: 11(int) Constant 59 - 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 59 43 27 75 61 16 16 17 - 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17 - 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17 - 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17 - 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17 - 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 81 36 27 16 16 37 81 16 17 67 70 74 76 77 78 79 - 82: TypeFunction 66(DSOutput) 39(ptr) 44(ptr) 64 - 83: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 80 34 43 62 - 91: 11(int) Constant 68 - 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 89 83 27 91 16 37 89 17 91 - 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 34 27 91 16 90 18 36 + 37: 11(int) Constant 68 + 39: 11(int) Constant 5 + 38: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 36 18 27 39 + 34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 35 36 27 37 16 38 35 16 17 25 31 + 40: TypePointer Function 24(ConstantsHSOutput) + 41: 11(int) Constant 7 + 42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 34 41 16 + 43: TypeVector 8(float) 2 + 44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 21 + 45: TypePointer Function 43(fvec2) + 46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 44 41 16 + 47: TypeVector 8(float) 4 + 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 18 + 49: TypeVector 8(float) 3 + 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 + 51(HSOutput): TypeStruct 47(fvec4) 49(fvec3) 43(fvec2) + 54: 11(int) Constant 44 + 52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 53 48 27 54 14 16 16 17 + 57: 11(int) Constant 45 + 58: 11(int) Constant 35 + 55: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 56 50 27 57 58 16 16 17 + 61: 11(int) Constant 46 + 62: 11(int) Constant 31 + 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 60 44 27 61 62 16 16 17 + 63: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 64 36 27 37 16 38 64 16 17 52 55 59 + 65: TypeArray 51(HSOutput) 18 + 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 63 18 + 67(DSOutput): TypeStruct 47(fvec4) 49(fvec3) 43(fvec2) 49(fvec3) 49(fvec3) 49(fvec3) 49(fvec3) + 69: 11(int) Constant 57 + 70: 11(int) Constant 13 + 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 53 48 27 69 70 16 16 17 + 73: 11(int) Constant 63 + 74: 11(int) Constant 37 + 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 72 50 27 73 74 16 16 17 + 76: 11(int) Constant 59 + 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 60 44 27 76 62 16 16 17 + 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 72 50 27 73 74 16 16 17 + 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 72 50 27 73 74 16 16 17 + 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 72 50 27 73 74 16 16 17 + 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 72 50 27 73 74 16 16 17 + 81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 82 36 27 37 16 38 82 16 17 68 71 75 77 78 79 80 + 83: TypeFunction 67(DSOutput) 40(ptr) 45(ptr) 65 + 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 81 34 44 63 + 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 90 84 27 37 16 38 90 17 37 + 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 34 27 37 16 91 18 36 95: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 99 43 27 91 16 90 18 21 - 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 102 62 27 91 16 90 18 17 - 105: TypePointer Function 66(DSOutput) - 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 80 40 16 + 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 99 44 27 37 16 91 18 21 + 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 102 63 27 37 16 91 18 17 + 105: TypePointer Function 67(DSOutput) + 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 81 41 16 110: 11(int) Constant 70 - 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 80 27 110 16 90 18 + 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 81 27 110 16 91 18 113: 8(float) Constant 0 - 114: 46(fvec4) ConstantComposite 113 113 113 113 - 115: 48(fvec3) ConstantComposite 113 113 113 - 116: 42(fvec2) ConstantComposite 113 113 - 117:66(DSOutput) ConstantComposite 114 115 116 115 115 115 115 + 114: 47(fvec4) ConstantComposite 113 113 113 113 + 115: 49(fvec3) ConstantComposite 113 113 113 + 116: 43(fvec2) ConstantComposite 113 113 + 117:67(DSOutput) ConstantComposite 114 115 116 115 115 115 115 121: 11(int) Constant 71 - 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 120 43 27 121 16 90 18 + 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 120 44 27 121 16 91 18 124: TypeInt 32 1 126: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 125 14 18 16 127: 124(int) Constant 0 128: 124(int) Constant 2 130: 124(int) Constant 1 132: TypePointer Function 8(float) - 133: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 40 16 + 133: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 41 16 141: 11(int) Constant 72 - 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 140 43 27 141 16 90 18 + 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 140 44 27 141 16 91 18 144: 124(int) Constant 3 153: 11(int) Constant 73 - 160: TypePointer Function 48(fvec3) - 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 49 40 16 + 160: TypePointer Function 49(fvec3) + 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 50 41 16 165: 11(int) Constant 75 - 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 164 49 27 165 16 90 18 + 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 164 50 27 165 16 91 18 177: 11(int) Constant 76 - 175: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 176 49 27 177 16 90 18 + 175: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 176 50 27 177 16 91 18 188: 11(int) Constant 77 - 195: TypePointer Function 46(fvec4) - 196: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 47 40 16 + 195: TypePointer Function 47(fvec4) + 196: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 48 41 16 200: 11(int) Constant 80 - 198: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 199 47 27 200 16 90 18 + 198: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 199 48 27 200 16 91 18 212: 11(int) Constant 81 - 210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 211 47 27 212 16 90 18 + 210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 211 48 27 212 16 91 18 224: 11(int) Constant 82 - 222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 223 47 27 224 16 90 18 + 222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 223 48 27 224 16 91 18 233: TypeImage 8(float) 2D sampled format:Unknown 236: 11(int) Constant 84 238: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) - 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 235 16 27 236 16 37 237 238 17 + 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 235 16 27 236 16 38 237 238 17 239: TypePointer UniformConstant 233 240: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 234 16 16 241(displacementMapTexture): 239(ptr) Variable UniformConstant 244: 11(int) Constant 8 - 242: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 243 234 27 236 16 37 243 241(displacementMapTexture) 244 + 242: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 243 234 27 236 16 38 243 241(displacementMapTexture) 244 247: TypeSampler - 248: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 249 36 27 236 16 37 250 238 17 + 248: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 249 36 27 236 16 38 250 238 17 251: TypePointer UniformConstant 247 252: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 248 16 16 253(displacementMapSampler): 251(ptr) Variable UniformConstant - 254: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 255 248 27 236 16 37 255 253(displacementMapSampler) 244 + 254: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 255 248 27 236 16 38 255 253(displacementMapSampler) 244 257: TypeSampledImage 233 - 258: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 259 16 27 236 16 37 260 238 17 - 266: TypeMatrix 46(fvec4) 4 + 258: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 259 16 27 236 16 38 260 238 17 + 266: TypeMatrix 47(fvec4) 4 268: TypeBool 270: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 269 14 21 16 271: 268(bool) ConstantTrue - 267: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 47 18 271 - 272: TypeArray 46(fvec4) 15 - 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 47 15 - 274(UBO): TypeStruct 266 266 46(fvec4) 272 8(float) 8(float) 42(fvec2) 8(float) + 267: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 48 18 271 + 272: TypeArray 47(fvec4) 15 + 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 48 15 + 274(UBO): TypeStruct 266 266 47(fvec4) 272 8(float) 8(float) 43(fvec2) 8(float) 277: 11(int) Constant 29 278: 11(int) Constant 20 275: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 276 267 27 277 278 16 16 17 279: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 276 267 27 277 278 16 16 17 282: 11(int) Constant 30 283: 11(int) Constant 17 - 280: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 281 47 27 282 283 16 16 17 + 280: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 281 48 27 282 283 16 16 17 286: 11(int) Constant 22 - 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 285 273 27 61 286 16 16 17 + 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 285 273 27 62 286 16 16 17 289: 11(int) Constant 27 - 287: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 10 27 57 289 16 16 17 - 290: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 10 27 57 289 16 16 17 + 287: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 10 27 58 289 16 16 17 + 290: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 10 27 58 289 16 16 17 293: 11(int) Constant 34 - 291: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 292 43 27 293 278 16 16 17 - 294: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 10 27 57 289 16 16 17 - 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 296 36 27 236 16 37 296 16 17 275 279 280 284 287 290 291 294 + 291: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 292 44 27 293 278 16 16 17 + 294: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 10 27 58 289 16 16 17 + 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 296 36 27 236 16 38 296 16 17 275 279 280 284 287 290 291 294 297(ubo): TypeStruct 274(UBO) - 298: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 299 295 27 73 73 16 16 17 - 300: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 299 36 27 236 16 37 299 16 17 298 + 298: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 299 295 27 74 74 16 16 17 + 300: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 299 36 27 236 16 38 299 16 17 298 301: TypePointer Uniform 297(ubo) 302: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 300 21 16 303: 301(ptr) Variable Uniform - 304: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 300 27 236 16 37 2 303 244 + 304: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 300 27 236 16 38 2 303 244 305: 124(int) Constant 4 306: TypePointer Uniform 8(float) 307: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 21 16 @@ -322,8 +322,8 @@ spv.debuginfo.hlsl.tese 318: TypePointer Uniform 266 319: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 267 21 16 329: 11(int) Constant 89 - 333: TypePointer Uniform 46(fvec4) - 334: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 47 21 16 + 333: TypePointer Uniform 47(fvec4) + 334: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 48 21 16 337: 11(int) Constant 90 345: 124(int) Constant 6 348: 11(int) Constant 91 @@ -335,25 +335,25 @@ spv.debuginfo.hlsl.tese 369: TypePointer Input 8(float) 382: TypePointer Input 22 383(input.TessLevelInner): 382(ptr) Variable Input - 391: TypePointer Input 48(fvec3) + 391: TypePointer Input 49(fvec3) 392(TessCoord): 391(ptr) Variable Input - 397: TypePointer Function 64 - 399: TypeArray 46(fvec4) 18 + 397: TypePointer Function 65 + 399: TypeArray 47(fvec4) 18 400: TypePointer Input 399 401(patch.Pos): 400(ptr) Variable Input - 402: TypePointer Input 46(fvec4) - 406: TypeArray 48(fvec3) 18 + 402: TypePointer Input 47(fvec4) + 406: TypeArray 49(fvec3) 18 407: TypePointer Input 406 408(patch.Normal): 407(ptr) Variable Input - 412: TypeArray 42(fvec2) 18 + 412: TypeArray 43(fvec2) 18 413: TypePointer Input 412 414(patch.UV): 413(ptr) Variable Input - 415: TypePointer Input 42(fvec2) - 453: TypePointer Output 46(fvec4) + 415: TypePointer Input 43(fvec2) + 453: TypePointer Output 47(fvec4) 454(@entryPointOutput.Pos): 453(ptr) Variable Output - 457: TypePointer Output 48(fvec3) + 457: TypePointer Output 49(fvec3) 458(@entryPointOutput.Normal): 457(ptr) Variable Output - 461: TypePointer Output 42(fvec2) + 461: TypePointer Output 43(fvec2) 462(@entryPointOutput.UV): 461(ptr) Variable Output 465(@entryPointOutput.ViewVec): 457(ptr) Variable Output 468(@entryPointOutput.LightVec): 457(ptr) Variable Output @@ -361,12 +361,12 @@ spv.debuginfo.hlsl.tese 474(@entryPointOutput.WorldPos): 457(ptr) Variable Output 6(main): 4 Function None 5 7: Label - 366(input): 39(ptr) Variable Function - 390(TessCoord): 44(ptr) Variable Function + 366(input): 40(ptr) Variable Function + 390(TessCoord): 45(ptr) Variable Function 398(patch): 397(ptr) Variable Function 446(flattenTemp): 105(ptr) Variable Function - 448(param): 39(ptr) Variable Function - 450(param): 44(ptr) Variable Function + 448(param): 40(ptr) Variable Function + 450(param): 45(ptr) Variable Function 370: 369(ptr) AccessChain 368(input.TessLevelOuter) 127 371: 8(float) Load 370 372: 132(ptr) AccessChain 366(input) 127 127 @@ -391,199 +391,199 @@ spv.debuginfo.hlsl.tese 388: 8(float) Load 387 389: 132(ptr) AccessChain 366(input) 130 130 Store 389 388 - 393: 48(fvec3) Load 392(TessCoord) + 393: 49(fvec3) Load 392(TessCoord) 394: 8(float) CompositeExtract 393 0 395: 8(float) CompositeExtract 393 1 - 396: 42(fvec2) CompositeConstruct 394 395 + 396: 43(fvec2) CompositeConstruct 394 395 Store 390(TessCoord) 396 403: 402(ptr) AccessChain 401(patch.Pos) 127 - 404: 46(fvec4) Load 403 + 404: 47(fvec4) Load 403 405: 195(ptr) AccessChain 398(patch) 127 127 Store 405 404 409: 391(ptr) AccessChain 408(patch.Normal) 127 - 410: 48(fvec3) Load 409 + 410: 49(fvec3) Load 409 411: 160(ptr) AccessChain 398(patch) 127 130 Store 411 410 416: 415(ptr) AccessChain 414(patch.UV) 127 - 417: 42(fvec2) Load 416 - 418: 44(ptr) AccessChain 398(patch) 127 128 + 417: 43(fvec2) Load 416 + 418: 45(ptr) AccessChain 398(patch) 127 128 Store 418 417 419: 402(ptr) AccessChain 401(patch.Pos) 130 - 420: 46(fvec4) Load 419 + 420: 47(fvec4) Load 419 421: 195(ptr) AccessChain 398(patch) 130 127 Store 421 420 422: 391(ptr) AccessChain 408(patch.Normal) 130 - 423: 48(fvec3) Load 422 + 423: 49(fvec3) Load 422 424: 160(ptr) AccessChain 398(patch) 130 130 Store 424 423 425: 415(ptr) AccessChain 414(patch.UV) 130 - 426: 42(fvec2) Load 425 - 427: 44(ptr) AccessChain 398(patch) 130 128 + 426: 43(fvec2) Load 425 + 427: 45(ptr) AccessChain 398(patch) 130 128 Store 427 426 428: 402(ptr) AccessChain 401(patch.Pos) 128 - 429: 46(fvec4) Load 428 + 429: 47(fvec4) Load 428 430: 195(ptr) AccessChain 398(patch) 128 127 Store 430 429 431: 391(ptr) AccessChain 408(patch.Normal) 128 - 432: 48(fvec3) Load 431 + 432: 49(fvec3) Load 431 433: 160(ptr) AccessChain 398(patch) 128 130 Store 433 432 434: 415(ptr) AccessChain 414(patch.UV) 128 - 435: 42(fvec2) Load 434 - 436: 44(ptr) AccessChain 398(patch) 128 128 + 435: 43(fvec2) Load 434 + 436: 45(ptr) AccessChain 398(patch) 128 128 Store 436 435 437: 402(ptr) AccessChain 401(patch.Pos) 144 - 438: 46(fvec4) Load 437 + 438: 47(fvec4) Load 437 439: 195(ptr) AccessChain 398(patch) 144 127 Store 439 438 440: 391(ptr) AccessChain 408(patch.Normal) 144 - 441: 48(fvec3) Load 440 + 441: 49(fvec3) Load 440 442: 160(ptr) AccessChain 398(patch) 144 130 Store 442 441 443: 415(ptr) AccessChain 414(patch.UV) 144 - 444: 42(fvec2) Load 443 - 445: 44(ptr) AccessChain 398(patch) 144 128 + 444: 43(fvec2) Load 443 + 445: 45(ptr) AccessChain 398(patch) 144 128 Store 445 444 - 447: 64 Load 398(patch) + 447: 65 Load 398(patch) 449:24(ConstantsHSOutput) Load 366(input) Store 448(param) 449 - 451: 42(fvec2) Load 390(TessCoord) + 451: 43(fvec2) Load 390(TessCoord) Store 450(param) 451 - 452:66(DSOutput) FunctionCall 87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) 448(param) 450(param) 447 + 452:67(DSOutput) FunctionCall 88(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) 448(param) 450(param) 447 Store 446(flattenTemp) 452 455: 195(ptr) AccessChain 446(flattenTemp) 127 - 456: 46(fvec4) Load 455 + 456: 47(fvec4) Load 455 Store 454(@entryPointOutput.Pos) 456 459: 160(ptr) AccessChain 446(flattenTemp) 130 - 460: 48(fvec3) Load 459 + 460: 49(fvec3) Load 459 Store 458(@entryPointOutput.Normal) 460 - 463: 44(ptr) AccessChain 446(flattenTemp) 128 - 464: 42(fvec2) Load 463 + 463: 45(ptr) AccessChain 446(flattenTemp) 128 + 464: 43(fvec2) Load 463 Store 462(@entryPointOutput.UV) 464 466: 160(ptr) AccessChain 446(flattenTemp) 144 - 467: 48(fvec3) Load 466 + 467: 49(fvec3) Load 466 Store 465(@entryPointOutput.ViewVec) 467 469: 160(ptr) AccessChain 446(flattenTemp) 305 - 470: 48(fvec3) Load 469 + 470: 49(fvec3) Load 469 Store 468(@entryPointOutput.LightVec) 470 472: 160(ptr) AccessChain 446(flattenTemp) 351 - 473: 48(fvec3) Load 472 + 473: 49(fvec3) Load 472 Store 471(@entryPointOutput.EyePos) 473 475: 160(ptr) AccessChain 446(flattenTemp) 345 - 476: 48(fvec3) Load 475 + 476: 49(fvec3) Load 475 Store 474(@entryPointOutput.WorldPos) 476 Return FunctionEnd -87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];):66(DSOutput) Function None 82 - 84(input): 39(ptr) FunctionParameter - 85(TessCoord): 44(ptr) FunctionParameter - 86(patch): 64 FunctionParameter - 88: Label +88(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];):67(DSOutput) Function None 83 + 85(input): 40(ptr) FunctionParameter + 86(TessCoord): 45(ptr) FunctionParameter + 87(patch): 65 FunctionParameter + 89: Label 107(output): 105(ptr) Variable Function - 118(uv1): 44(ptr) Variable Function - 138(uv2): 44(ptr) Variable Function + 118(uv1): 45(ptr) Variable Function + 138(uv2): 45(ptr) Variable Function 162(n1): 160(ptr) Variable Function 174(n2): 160(ptr) Variable Function 197(pos1): 195(ptr) Variable Function 209(pos2): 195(ptr) Variable Function 221(pos): 195(ptr) Variable Function - 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 90 - 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 91 91 16 16 - 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 84(input) 95 - 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 98 85(TessCoord) 95 - 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 101 86(patch) 95 - 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 90 87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) + 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 91 + 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 37 37 16 16 + 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 85(input) 95 + 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 98 86(TessCoord) 95 + 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 101 87(patch) 95 + 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 91 88(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 110 110 16 16 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 108 107(output) 95 Store 107(output) 117 123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 121 121 16 16 122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 119 118(uv1) 95 - 129: 42(fvec2) CompositeExtract 86(patch) 0 2 - 131: 42(fvec2) CompositeExtract 86(patch) 1 2 - 134: 132(ptr) AccessChain 85(TessCoord) 16 + 129: 43(fvec2) CompositeExtract 87(patch) 0 2 + 131: 43(fvec2) CompositeExtract 87(patch) 1 2 + 134: 132(ptr) AccessChain 86(TessCoord) 16 135: 8(float) Load 134 - 136: 42(fvec2) CompositeConstruct 135 135 - 137: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 129 131 136 + 136: 43(fvec2) CompositeConstruct 135 135 + 137: 43(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 129 131 136 Store 118(uv1) 137 143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 141 141 16 16 142: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 139 138(uv2) 95 - 145: 42(fvec2) CompositeExtract 86(patch) 3 2 - 146: 42(fvec2) CompositeExtract 86(patch) 2 2 - 147: 132(ptr) AccessChain 85(TessCoord) 16 + 145: 43(fvec2) CompositeExtract 87(patch) 3 2 + 146: 43(fvec2) CompositeExtract 87(patch) 2 2 + 147: 132(ptr) AccessChain 86(TessCoord) 16 148: 8(float) Load 147 - 149: 42(fvec2) CompositeConstruct 148 148 - 150: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 145 146 149 + 149: 43(fvec2) CompositeConstruct 148 148 + 150: 43(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 145 146 149 Store 138(uv2) 150 152: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 153 153 16 16 - 151: 42(fvec2) Load 118(uv1) - 154: 42(fvec2) Load 138(uv2) - 155: 132(ptr) AccessChain 85(TessCoord) 36 + 151: 43(fvec2) Load 118(uv1) + 154: 43(fvec2) Load 138(uv2) + 155: 132(ptr) AccessChain 86(TessCoord) 36 156: 8(float) Load 155 - 157: 42(fvec2) CompositeConstruct 156 156 - 158: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 151 154 157 - 159: 44(ptr) AccessChain 107(output) 128 + 157: 43(fvec2) CompositeConstruct 156 156 + 158: 43(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 151 154 157 + 159: 45(ptr) AccessChain 107(output) 128 Store 159 158 167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 165 165 16 16 166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 163 162(n1) 95 - 168: 48(fvec3) CompositeExtract 86(patch) 0 1 - 169: 48(fvec3) CompositeExtract 86(patch) 1 1 - 170: 132(ptr) AccessChain 85(TessCoord) 16 + 168: 49(fvec3) CompositeExtract 87(patch) 0 1 + 169: 49(fvec3) CompositeExtract 87(patch) 1 1 + 170: 132(ptr) AccessChain 86(TessCoord) 16 171: 8(float) Load 170 - 172: 48(fvec3) CompositeConstruct 171 171 171 - 173: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 168 169 172 + 172: 49(fvec3) CompositeConstruct 171 171 171 + 173: 49(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 168 169 172 Store 162(n1) 173 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 177 177 16 16 178: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 175 174(n2) 95 - 180: 48(fvec3) CompositeExtract 86(patch) 3 1 - 181: 48(fvec3) CompositeExtract 86(patch) 2 1 - 182: 132(ptr) AccessChain 85(TessCoord) 16 + 180: 49(fvec3) CompositeExtract 87(patch) 3 1 + 181: 49(fvec3) CompositeExtract 87(patch) 2 1 + 182: 132(ptr) AccessChain 86(TessCoord) 16 183: 8(float) Load 182 - 184: 48(fvec3) CompositeConstruct 183 183 183 - 185: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 180 181 184 + 184: 49(fvec3) CompositeConstruct 183 183 183 + 185: 49(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 180 181 184 Store 174(n2) 185 187: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 188 188 16 16 - 186: 48(fvec3) Load 162(n1) - 189: 48(fvec3) Load 174(n2) - 190: 132(ptr) AccessChain 85(TessCoord) 36 + 186: 49(fvec3) Load 162(n1) + 189: 49(fvec3) Load 174(n2) + 190: 132(ptr) AccessChain 86(TessCoord) 36 191: 8(float) Load 190 - 192: 48(fvec3) CompositeConstruct 191 191 191 - 193: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 186 189 192 + 192: 49(fvec3) CompositeConstruct 191 191 191 + 193: 49(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 186 189 192 194: 160(ptr) AccessChain 107(output) 130 Store 194 193 202: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 200 200 16 16 201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 198 197(pos1) 95 - 203: 46(fvec4) CompositeExtract 86(patch) 0 0 - 204: 46(fvec4) CompositeExtract 86(patch) 1 0 - 205: 132(ptr) AccessChain 85(TessCoord) 16 + 203: 47(fvec4) CompositeExtract 87(patch) 0 0 + 204: 47(fvec4) CompositeExtract 87(patch) 1 0 + 205: 132(ptr) AccessChain 86(TessCoord) 16 206: 8(float) Load 205 - 207: 46(fvec4) CompositeConstruct 206 206 206 206 - 208: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 203 204 207 + 207: 47(fvec4) CompositeConstruct 206 206 206 206 + 208: 47(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 203 204 207 Store 197(pos1) 208 214: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 212 212 16 16 213: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 210 209(pos2) 95 - 215: 46(fvec4) CompositeExtract 86(patch) 3 0 - 216: 46(fvec4) CompositeExtract 86(patch) 2 0 - 217: 132(ptr) AccessChain 85(TessCoord) 16 + 215: 47(fvec4) CompositeExtract 87(patch) 3 0 + 216: 47(fvec4) CompositeExtract 87(patch) 2 0 + 217: 132(ptr) AccessChain 86(TessCoord) 16 218: 8(float) Load 217 - 219: 46(fvec4) CompositeConstruct 218 218 218 218 - 220: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 215 216 219 + 219: 47(fvec4) CompositeConstruct 218 218 218 218 + 220: 47(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 215 216 219 Store 209(pos2) 220 226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 224 224 16 16 225: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 222 221(pos) 95 - 227: 46(fvec4) Load 197(pos1) - 228: 46(fvec4) Load 209(pos2) - 229: 132(ptr) AccessChain 85(TessCoord) 36 + 227: 47(fvec4) Load 197(pos1) + 228: 47(fvec4) Load 209(pos2) + 229: 132(ptr) AccessChain 86(TessCoord) 36 230: 8(float) Load 229 - 231: 46(fvec4) CompositeConstruct 230 230 230 230 - 232: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 227 228 231 + 231: 47(fvec4) CompositeConstruct 230 230 230 230 + 232: 47(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 227 228 231 Store 221(pos) 232 246: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 236 236 16 16 245: 233 Load 241(displacementMapTexture) 256: 247 Load 253(displacementMapSampler) 261: 257 SampledImage 245 256 - 262: 44(ptr) AccessChain 107(output) 128 - 263: 42(fvec2) Load 262 - 264: 46(fvec4) ImageSampleExplicitLod 261 263 Lod 113 + 262: 45(ptr) AccessChain 107(output) 128 + 263: 43(fvec2) Load 262 + 264: 47(fvec4) ImageSampleExplicitLod 261 263 Lod 113 265: 8(float) CompositeExtract 264 0 308: 306(ptr) AccessChain 303 127 305 309: 8(float) Load 308 @@ -594,45 +594,45 @@ spv.debuginfo.hlsl.tese 314: 132(ptr) AccessChain 221(pos) 36 Store 314 313 316: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 317 317 16 16 - 315: 46(fvec4) Load 221(pos) + 315: 47(fvec4) Load 221(pos) 320: 318(ptr) AccessChain 303 127 130 321: 266 Load 320 - 322: 46(fvec4) VectorTimesMatrix 315 321 + 322: 47(fvec4) VectorTimesMatrix 315 321 323: 318(ptr) AccessChain 303 127 127 324: 266 Load 323 - 325: 46(fvec4) VectorTimesMatrix 322 324 + 325: 47(fvec4) VectorTimesMatrix 322 324 326: 195(ptr) AccessChain 107(output) 127 Store 326 325 328: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 329 329 16 16 - 327: 46(fvec4) Load 221(pos) - 330: 48(fvec3) VectorShuffle 327 327 0 1 2 - 331: 48(fvec3) FNegate 330 + 327: 47(fvec4) Load 221(pos) + 330: 49(fvec3) VectorShuffle 327 327 0 1 2 + 331: 49(fvec3) FNegate 330 332: 160(ptr) AccessChain 107(output) 144 Store 332 331 336: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 337 337 16 16 335: 333(ptr) AccessChain 303 127 128 - 338: 46(fvec4) Load 335 - 339: 48(fvec3) VectorShuffle 338 338 0 1 2 + 338: 47(fvec4) Load 335 + 339: 49(fvec3) VectorShuffle 338 338 0 1 2 340: 160(ptr) AccessChain 107(output) 144 - 341: 48(fvec3) Load 340 - 342: 48(fvec3) FAdd 339 341 - 343: 48(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 342 + 341: 49(fvec3) Load 340 + 342: 49(fvec3) FAdd 339 341 + 343: 49(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 342 344: 160(ptr) AccessChain 107(output) 305 Store 344 343 347: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 348 348 16 16 - 346: 46(fvec4) Load 221(pos) - 349: 48(fvec3) VectorShuffle 346 346 0 1 2 + 346: 47(fvec4) Load 221(pos) + 349: 49(fvec3) VectorShuffle 346 346 0 1 2 350: 160(ptr) AccessChain 107(output) 345 Store 350 349 353: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 354 354 16 16 - 352: 46(fvec4) Load 221(pos) + 352: 47(fvec4) Load 221(pos) 355: 318(ptr) AccessChain 303 127 130 356: 266 Load 355 - 357: 46(fvec4) VectorTimesMatrix 352 356 - 358: 48(fvec3) VectorShuffle 357 357 0 1 2 + 357: 47(fvec4) VectorTimesMatrix 352 356 + 358: 49(fvec3) VectorShuffle 357 357 0 1 2 359: 160(ptr) AccessChain 107(output) 351 Store 359 358 361: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 362 362 16 16 - 360:66(DSOutput) Load 107(output) + 360:67(DSOutput) Load 107(output) ReturnValue 360 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.hlsl.vert.out b/Test/baseResults/spv.debuginfo.hlsl.vert.out index d557c09c..4e9f17fa 100644 --- a/Test/baseResults/spv.debuginfo.hlsl.vert.out +++ b/Test/baseResults/spv.debuginfo.hlsl.vert.out @@ -27,10 +27,10 @@ spv.debuginfo.hlsl.vert 43: String "instanceScale" 47: String "instanceTexIndex" 51: String "VSInput" - 62: String "Pos" - 66: String "LightVec" - 73: String "VSOutput" - 79: String "@main" + 63: String "Pos" + 67: String "LightVec" + 74: String "VSOutput" + 80: String "@main" 83: String "input" 93: String "output" 130: String "s" @@ -59,15 +59,15 @@ spv.debuginfo.hlsl.vert MemberName 27(VSInput) 5 "instanceRot" MemberName 27(VSInput) 6 "instanceScale" MemberName 27(VSInput) 7 "instanceTexIndex" - Name 60 "VSOutput" - MemberName 60(VSOutput) 0 "Pos" - MemberName 60(VSOutput) 1 "Normal" - MemberName 60(VSOutput) 2 "Color" - MemberName 60(VSOutput) 3 "UV" - MemberName 60(VSOutput) 4 "ViewVec" - MemberName 60(VSOutput) 5 "LightVec" - Name 77 "@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;" - Name 76 "input" + Name 61 "VSOutput" + MemberName 61(VSOutput) 0 "Pos" + MemberName 61(VSOutput) 1 "Normal" + MemberName 61(VSOutput) 2 "Color" + MemberName 61(VSOutput) 3 "UV" + MemberName 61(VSOutput) 4 "ViewVec" + MemberName 61(VSOutput) 5 "LightVec" + Name 78 "@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;" + Name 77 "input" Name 91 "output" Name 128 "s" Name 143 "UBO" @@ -169,126 +169,126 @@ spv.debuginfo.hlsl.vert 49: 11(int) Constant 42 46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 47 25 30 48 49 16 16 17 52: 11(int) Constant 1 - 54: 11(int) Constant 5 - 53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 52 26 30 54 - 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 51 52 30 16 16 53 51 16 17 28 34 35 39 40 41 42 46 - 55: TypePointer Function 27(VSInput) - 56: 11(int) Constant 7 - 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 50 56 16 - 58: TypeVector 8(float) 4 - 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 26 - 60(VSOutput): TypeStruct 58(fvec4) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3) - 63: 11(int) Constant 53 - 64: 11(int) Constant 13 - 61: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 62 59 30 63 64 16 16 17 - 67: 11(int) Constant 58 - 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 66 19 30 67 48 16 16 17 - 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 66 19 30 67 48 16 16 17 - 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 66 19 30 67 48 16 16 17 - 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 66 19 30 67 48 16 16 17 - 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 66 19 30 67 48 16 16 17 - 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 73 52 30 16 16 53 73 16 17 61 65 68 69 70 71 - 74: TypeFunction 60(VSOutput) 55(ptr) - 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 72 50 - 81: 11(int) Constant 62 - 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 79 75 30 81 16 53 79 17 81 - 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 50 30 81 16 80 26 52 + 53: 11(int) Constant 62 + 55: 11(int) Constant 5 + 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 52 26 30 55 + 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 51 52 30 53 16 54 51 16 17 28 34 35 39 40 41 42 46 + 56: TypePointer Function 27(VSInput) + 57: 11(int) Constant 7 + 58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 50 57 16 + 59: TypeVector 8(float) 4 + 60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 26 + 61(VSOutput): TypeStruct 59(fvec4) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3) 18(fvec3) + 64: 11(int) Constant 53 + 65: 11(int) Constant 13 + 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 63 60 30 64 65 16 16 17 + 68: 11(int) Constant 58 + 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 19 30 68 48 16 16 17 + 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 19 30 68 48 16 16 17 + 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 19 30 68 48 16 16 17 + 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 19 30 68 48 16 16 17 + 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 67 19 30 68 48 16 16 17 + 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 74 52 30 53 16 54 74 16 17 62 66 69 70 71 72 + 75: TypeFunction 61(VSOutput) 56(ptr) + 76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 73 50 + 81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 80 76 30 53 16 54 80 17 53 + 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 83 50 30 53 16 81 26 52 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 89: TypePointer Function 60(VSOutput) - 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 72 56 16 + 89: TypePointer Function 61(VSOutput) + 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 73 57 16 94: 11(int) Constant 63 - 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 72 30 94 16 80 26 + 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 73 30 94 16 81 26 97: 8(float) Constant 0 - 98: 58(fvec4) ConstantComposite 97 97 97 97 + 98: 59(fvec4) ConstantComposite 97 97 97 97 99: 18(fvec3) ConstantComposite 97 97 97 - 100:60(VSOutput) ConstantComposite 98 99 99 99 99 99 + 100:61(VSOutput) ConstantComposite 98 99 99 99 99 99 101: 23(int) Constant 2 102: 23(int) Constant 3 103: TypePointer Function 18(fvec3) - 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 19 56 16 + 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 19 57 16 107: 11(int) Constant 64 110: TypePointer Function 20(fvec2) - 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 56 16 + 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 57 16 114: 11(int) Constant 65 116: 23(int) Constant 7 117: TypePointer Function 23(int) - 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 25 56 16 + 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 25 57 16 126: TypePointer Function 8(float) - 127: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 56 16 + 127: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 57 16 131: 11(int) Constant 68 - 129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 130 10 30 131 16 80 26 + 129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 130 10 30 131 16 81 26 134: 23(int) Constant 5 - 137: TypeMatrix 58(fvec4) 4 + 137: TypeMatrix 59(fvec4) 4 139: TypeBool 141: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 140 14 21 16 142: 139(bool) ConstantTrue - 138: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 59 26 142 - 143(UBO): TypeStruct 137 137 58(fvec4) 8(float) 8(float) + 138: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 60 26 142 + 143(UBO): TypeStruct 137 137 59(fvec4) 8(float) 8(float) 146: 11(int) Constant 43 147: 11(int) Constant 20 144: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 145 138 30 146 147 16 16 17 148: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 145 138 30 146 147 16 16 17 151: 11(int) Constant 44 152: 11(int) Constant 17 - 149: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 59 30 151 152 16 16 17 + 149: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 150 60 30 151 152 16 16 17 155: 11(int) Constant 46 153: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 154 10 30 155 152 16 16 17 156: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 154 10 30 155 152 16 16 17 - 157: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 158 52 30 131 16 53 158 16 17 144 148 149 153 156 + 157: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 158 52 30 131 16 54 158 16 17 144 148 149 153 156 159(ubo): TypeStruct 143(UBO) 162: 11(int) Constant 49 160: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 161 157 30 162 48 16 16 17 - 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 161 52 30 131 16 53 161 16 17 160 + 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 161 52 30 131 16 54 161 16 17 160 164: TypePointer Uniform 159(ubo) 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 163 21 16 166: 164(ptr) Variable Uniform 168: 11(int) Constant 8 - 167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 163 30 131 16 53 2 166 168 + 167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 163 30 131 16 54 2 166 168 169: 23(int) Constant 0 170: TypePointer Uniform 8(float) 171: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 21 16 179: 11(int) Constant 69 - 177: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 178 10 30 179 16 80 26 + 177: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 178 10 30 179 16 81 26 188: TypeMatrix 18(fvec3) 3 189: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 19 17 142 190: TypePointer Function 188 - 191: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 189 56 16 + 191: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 189 57 16 195: 11(int) Constant 71 - 193: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 194 189 30 195 16 80 26 + 193: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 194 189 30 195 16 81 26 203: 11(int) Constant 72 205: 8(float) Constant 1065353216 213: 11(int) Constant 76 221: 11(int) Constant 77 230: 11(int) Constant 79 - 228: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 229 189 30 230 16 80 26 + 228: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 229 189 30 230 16 81 26 238: 11(int) Constant 81 247: 11(int) Constant 84 255: 11(int) Constant 85 264: 11(int) Constant 87 - 262: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 263 189 30 264 16 80 26 + 262: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 263 189 30 264 16 81 26 269: 11(int) Constant 88 274: 11(int) Constant 89 284: 11(int) Constant 91 - 282: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 283 189 30 284 16 80 26 + 282: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 283 189 30 284 16 81 26 294: 11(int) Constant 94 296: 23(int) Constant 4 303: 11(int) Constant 95 309: TypePointer Function 137 - 310: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 138 56 16 + 310: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 138 57 16 314: 11(int) Constant 96 - 312: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 313 138 30 314 16 80 26 - 321: TypePointer Function 58(fvec4) - 322: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 59 56 16 + 312: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 313 138 30 314 16 81 26 + 321: TypePointer Function 59(fvec4) + 322: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 60 57 16 324: 23(int) Constant 1 - 325: 58(fvec4) ConstantComposite 97 205 97 97 + 325: 59(fvec4) ConstantComposite 97 205 97 97 328: 11(int) Constant 97 331: 11(int) Constant 98 - 335: 58(fvec4) ConstantComposite 97 97 97 205 + 335: 59(fvec4) ConstantComposite 97 97 97 205 338: 11(int) Constant 99 342: 11(int) Constant 101 - 340: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 341 59 30 342 16 80 26 + 340: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 341 60 30 342 16 81 26 356: 11(int) Constant 102 - 354: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 355 59 30 356 16 80 26 + 354: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 355 60 30 356 16 81 26 361: 23(int) Constant 6 374: 11(int) Constant 104 377: TypePointer Uniform 137 @@ -296,9 +296,9 @@ spv.debuginfo.hlsl.vert 388: 11(int) Constant 105 407: 11(int) Constant 107 422: 11(int) Constant 108 - 420: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 421 19 30 422 16 80 26 - 425: TypePointer Uniform 58(fvec4) - 426: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 59 21 16 + 420: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 421 19 30 422 16 81 26 + 425: TypePointer Uniform 59(fvec4) + 426: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 60 21 16 442: 11(int) Constant 109 449: 11(int) Constant 110 455: 11(int) Constant 111 @@ -314,7 +314,7 @@ spv.debuginfo.hlsl.vert 481(input.instanceScale): 480(ptr) Variable Input 484: TypePointer Input 23(int) 485(input.instanceTexIndex): 484(ptr) Variable Input - 492: TypePointer Output 58(fvec4) + 492: TypePointer Output 59(fvec4) 493(@entryPointOutput.Pos): 492(ptr) Variable Output 496: TypePointer Output 18(fvec3) 497(@entryPointOutput.Normal): 496(ptr) Variable Output @@ -324,9 +324,9 @@ spv.debuginfo.hlsl.vert 509(@entryPointOutput.LightVec): 496(ptr) Variable Output 6(main): 4 Function None 5 7: Label - 459(input): 55(ptr) Variable Function + 459(input): 56(ptr) Variable Function 488(flattenTemp): 89(ptr) Variable Function - 489(param): 55(ptr) Variable Function + 489(param): 56(ptr) Variable Function 462: 18(fvec3) Load 461(input.Pos) 463: 103(ptr) AccessChain 459(input) 169 Store 463 462 @@ -353,10 +353,10 @@ spv.debuginfo.hlsl.vert Store 487 486 490: 27(VSInput) Load 459(input) Store 489(param) 490 - 491:60(VSOutput) FunctionCall 77(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 489(param) + 491:61(VSOutput) FunctionCall 78(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 489(param) Store 488(flattenTemp) 491 494: 321(ptr) AccessChain 488(flattenTemp) 169 - 495: 58(fvec4) Load 494 + 495: 59(fvec4) Load 494 Store 493(@entryPointOutput.Pos) 495 498: 103(ptr) AccessChain 488(flattenTemp) 324 499: 18(fvec3) Load 498 @@ -375,9 +375,9 @@ spv.debuginfo.hlsl.vert Store 509(@entryPointOutput.LightVec) 511 Return FunctionEnd -77(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;):60(VSOutput) Function None 74 - 76(input): 55(ptr) FunctionParameter - 78: Label +78(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;):61(VSOutput) Function None 75 + 77(input): 56(ptr) FunctionParameter + 79: Label 91(output): 89(ptr) Variable Function 128(s): 126(ptr) Variable Function 176(c): 126(ptr) Variable Function @@ -389,22 +389,22 @@ spv.debuginfo.hlsl.vert 339(locPos): 321(ptr) Variable Function 353(pos): 321(ptr) Variable Function 419(lPos): 103(ptr) Variable Function - 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 80 - 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 81 81 16 16 - 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 82 76(input) 85 - 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 80 77(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) + 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 81 + 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 53 53 16 16 + 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 82 77(input) 85 + 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 81 78(@main(struct-VSInput-vf3-vf3-vf2-vf3-vf3-vf3-f1-i11;) 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 94 94 16 16 95: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 91(output) 85 Store 91(output) 100 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 107 107 16 16 - 105: 103(ptr) AccessChain 76(input) 102 + 105: 103(ptr) AccessChain 77(input) 102 108: 18(fvec3) Load 105 109: 103(ptr) AccessChain 91(output) 101 Store 109 108 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 114 114 16 16 - 112: 110(ptr) AccessChain 76(input) 101 + 112: 110(ptr) AccessChain 77(input) 101 115: 20(fvec2) Load 112 - 119: 117(ptr) AccessChain 76(input) 116 + 119: 117(ptr) AccessChain 77(input) 116 120: 23(int) Load 119 121: 8(float) ConvertSToF 120 122: 8(float) CompositeExtract 115 0 @@ -414,7 +414,7 @@ spv.debuginfo.hlsl.vert Store 125 124 133: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 131 131 16 16 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 129 128(s) 85 - 135: 126(ptr) AccessChain 76(input) 134 16 + 135: 126(ptr) AccessChain 77(input) 134 16 136: 8(float) Load 135 172: 170(ptr) AccessChain 166 169 102 173: 8(float) Load 172 @@ -423,7 +423,7 @@ spv.debuginfo.hlsl.vert Store 128(s) 175 181: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 179 179 16 16 180: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 177 176(c) 85 - 182: 126(ptr) AccessChain 76(input) 134 16 + 182: 126(ptr) AccessChain 77(input) 134 16 183: 8(float) Load 182 184: 170(ptr) AccessChain 166 169 102 185: 8(float) Load 184 @@ -445,7 +445,7 @@ spv.debuginfo.hlsl.vert 210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 195 195 16 16 Store 192(mx) 209 212: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 213 213 16 16 - 211: 126(ptr) AccessChain 76(input) 134 52 + 211: 126(ptr) AccessChain 77(input) 134 52 214: 8(float) Load 211 215: 170(ptr) AccessChain 166 169 102 216: 8(float) Load 215 @@ -453,7 +453,7 @@ spv.debuginfo.hlsl.vert 218: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 217 Store 128(s) 218 220: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 221 221 16 16 - 219: 126(ptr) AccessChain 76(input) 134 52 + 219: 126(ptr) AccessChain 77(input) 134 52 222: 8(float) Load 219 223: 170(ptr) AccessChain 166 169 102 224: 8(float) Load 223 @@ -475,7 +475,7 @@ spv.debuginfo.hlsl.vert 244: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 230 230 16 16 Store 227(my) 243 246: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 247 247 16 16 - 245: 126(ptr) AccessChain 76(input) 134 21 + 245: 126(ptr) AccessChain 77(input) 134 21 248: 8(float) Load 245 249: 170(ptr) AccessChain 166 169 102 250: 8(float) Load 249 @@ -483,7 +483,7 @@ spv.debuginfo.hlsl.vert 252: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 251 Store 128(s) 252 254: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 255 255 16 16 - 253: 126(ptr) AccessChain 76(input) 134 21 + 253: 126(ptr) AccessChain 77(input) 134 21 256: 8(float) Load 253 257: 170(ptr) AccessChain 166 169 102 258: 8(float) Load 257 @@ -514,7 +514,7 @@ spv.debuginfo.hlsl.vert 291: 188 MatrixTimesMatrix 289 290 Store 281(rotMat) 291 293: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 294 294 16 16 - 292: 126(ptr) AccessChain 76(input) 134 52 + 292: 126(ptr) AccessChain 77(input) 134 52 295: 8(float) Load 292 297: 170(ptr) AccessChain 166 169 296 298: 8(float) Load 297 @@ -522,7 +522,7 @@ spv.debuginfo.hlsl.vert 300: 8(float) ExtInst 3(GLSL.std.450) 13(Sin) 299 Store 128(s) 300 302: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 303 303 16 16 - 301: 126(ptr) AccessChain 76(input) 134 52 + 301: 126(ptr) AccessChain 77(input) 134 52 304: 8(float) Load 301 305: 170(ptr) AccessChain 166 169 296 306: 8(float) Load 305 @@ -534,7 +534,7 @@ spv.debuginfo.hlsl.vert 317: 8(float) Load 176(c) 318: 8(float) Load 128(s) 319: 8(float) FNegate 318 - 320: 58(fvec4) CompositeConstruct 317 97 319 97 + 320: 59(fvec4) CompositeConstruct 317 97 319 97 323: 321(ptr) AccessChain 311(gRotMat) 169 Store 323 320 327: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 328 328 16 16 @@ -543,7 +543,7 @@ spv.debuginfo.hlsl.vert 330: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 331 331 16 16 329: 8(float) Load 128(s) 332: 8(float) Load 176(c) - 333: 58(fvec4) CompositeConstruct 329 97 332 97 + 333: 59(fvec4) CompositeConstruct 329 97 332 97 334: 321(ptr) AccessChain 311(gRotMat) 101 Store 334 333 337: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 338 338 16 16 @@ -551,44 +551,44 @@ spv.debuginfo.hlsl.vert Store 336 335 344: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 342 342 16 16 343: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 340 339(locPos) 85 - 345: 103(ptr) AccessChain 76(input) 169 + 345: 103(ptr) AccessChain 77(input) 169 346: 18(fvec3) Load 345 347: 188 Load 281(rotMat) 348: 18(fvec3) VectorTimesMatrix 346 347 349: 8(float) CompositeExtract 348 0 350: 8(float) CompositeExtract 348 1 351: 8(float) CompositeExtract 348 2 - 352: 58(fvec4) CompositeConstruct 349 350 351 205 + 352: 59(fvec4) CompositeConstruct 349 350 351 205 Store 339(locPos) 352 358: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 356 356 16 16 357: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 354 353(pos) 85 - 359: 58(fvec4) Load 339(locPos) + 359: 59(fvec4) Load 339(locPos) 360: 18(fvec3) VectorShuffle 359 359 0 1 2 - 362: 126(ptr) AccessChain 76(input) 361 + 362: 126(ptr) AccessChain 77(input) 361 363: 8(float) Load 362 364: 18(fvec3) VectorTimesScalar 360 363 - 365: 103(ptr) AccessChain 76(input) 296 + 365: 103(ptr) AccessChain 77(input) 296 366: 18(fvec3) Load 365 367: 18(fvec3) FAdd 364 366 368: 8(float) CompositeExtract 367 0 369: 8(float) CompositeExtract 367 1 370: 8(float) CompositeExtract 367 2 - 371: 58(fvec4) CompositeConstruct 368 369 370 205 + 371: 59(fvec4) CompositeConstruct 368 369 370 205 Store 353(pos) 371 373: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 374 374 16 16 - 372: 58(fvec4) Load 353(pos) + 372: 59(fvec4) Load 353(pos) 375: 137 Load 311(gRotMat) - 376: 58(fvec4) VectorTimesMatrix 372 375 + 376: 59(fvec4) VectorTimesMatrix 372 375 379: 377(ptr) AccessChain 166 169 324 380: 137 Load 379 - 381: 58(fvec4) VectorTimesMatrix 376 380 + 381: 59(fvec4) VectorTimesMatrix 376 380 382: 377(ptr) AccessChain 166 169 169 383: 137 Load 382 - 384: 58(fvec4) VectorTimesMatrix 381 383 + 384: 59(fvec4) VectorTimesMatrix 381 383 385: 321(ptr) AccessChain 91(output) 169 Store 385 384 387: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 388 388 16 16 - 386: 103(ptr) AccessChain 76(input) 324 + 386: 103(ptr) AccessChain 77(input) 324 389: 18(fvec3) Load 386 390: 188 Load 281(rotMat) 391: 18(fvec3) VectorTimesMatrix 389 390 @@ -596,60 +596,60 @@ spv.debuginfo.hlsl.vert 393: 377(ptr) AccessChain 166 169 324 394: 137 Load 393 395: 137 MatrixTimesMatrix 392 394 - 396: 58(fvec4) CompositeExtract 395 0 + 396: 59(fvec4) CompositeExtract 395 0 397: 18(fvec3) VectorShuffle 396 396 0 1 2 - 398: 58(fvec4) CompositeExtract 395 1 + 398: 59(fvec4) CompositeExtract 395 1 399: 18(fvec3) VectorShuffle 398 398 0 1 2 - 400: 58(fvec4) CompositeExtract 395 2 + 400: 59(fvec4) CompositeExtract 395 2 401: 18(fvec3) VectorShuffle 400 400 0 1 2 402: 188 CompositeConstruct 397 399 401 403: 18(fvec3) VectorTimesMatrix 391 402 404: 103(ptr) AccessChain 91(output) 324 Store 404 403 406: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 407 407 16 16 - 405: 103(ptr) AccessChain 76(input) 169 + 405: 103(ptr) AccessChain 77(input) 169 408: 18(fvec3) Load 405 - 409: 103(ptr) AccessChain 76(input) 296 + 409: 103(ptr) AccessChain 77(input) 296 410: 18(fvec3) Load 409 411: 18(fvec3) FAdd 408 410 412: 8(float) CompositeExtract 411 0 413: 8(float) CompositeExtract 411 1 414: 8(float) CompositeExtract 411 2 - 415: 58(fvec4) CompositeConstruct 412 413 414 205 + 415: 59(fvec4) CompositeConstruct 412 413 414 205 416: 377(ptr) AccessChain 166 169 324 417: 137 Load 416 - 418: 58(fvec4) VectorTimesMatrix 415 417 + 418: 59(fvec4) VectorTimesMatrix 415 417 Store 353(pos) 418 424: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 422 422 16 16 423: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 420 419(lPos) 85 427: 425(ptr) AccessChain 166 169 101 - 428: 58(fvec4) Load 427 + 428: 59(fvec4) Load 427 429: 18(fvec3) VectorShuffle 428 428 0 1 2 430: 377(ptr) AccessChain 166 169 324 431: 137 Load 430 - 432: 58(fvec4) CompositeExtract 431 0 + 432: 59(fvec4) CompositeExtract 431 0 433: 18(fvec3) VectorShuffle 432 432 0 1 2 - 434: 58(fvec4) CompositeExtract 431 1 + 434: 59(fvec4) CompositeExtract 431 1 435: 18(fvec3) VectorShuffle 434 434 0 1 2 - 436: 58(fvec4) CompositeExtract 431 2 + 436: 59(fvec4) CompositeExtract 431 2 437: 18(fvec3) VectorShuffle 436 436 0 1 2 438: 188 CompositeConstruct 433 435 437 439: 18(fvec3) VectorTimesMatrix 429 438 Store 419(lPos) 439 441: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 442 442 16 16 440: 18(fvec3) Load 419(lPos) - 443: 58(fvec4) Load 353(pos) + 443: 59(fvec4) Load 353(pos) 444: 18(fvec3) VectorShuffle 443 443 0 1 2 445: 18(fvec3) FSub 440 444 446: 103(ptr) AccessChain 91(output) 134 Store 446 445 448: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 449 449 16 16 - 447: 58(fvec4) Load 353(pos) + 447: 59(fvec4) Load 353(pos) 450: 18(fvec3) VectorShuffle 447 447 0 1 2 451: 18(fvec3) FNegate 450 452: 103(ptr) AccessChain 91(output) 296 Store 452 451 454: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 30 455 455 16 16 - 453:60(VSOutput) Load 91(output) + 453:61(VSOutput) Load 91(output) ReturnValue 453 FunctionEnd diff --git a/Test/baseResults/spv.debuginfo.include.glsl.frag.out b/Test/baseResults/spv.debuginfo.include.glsl.frag.out index 02b893f2..a6ca6e15 100644 --- a/Test/baseResults/spv.debuginfo.include.glsl.frag.out +++ b/Test/baseResults/spv.debuginfo.include.glsl.frag.out @@ -1,21 +1,31 @@ spv.debuginfo.include.glsl.frag // Module Version 10000 // Generated by (magic number): 8000b -// Id's are bound by 109 +// Id's are bound by 108 Capability Shader Extension "SPV_KHR_non_semantic_info" 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 4: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 - EntryPoint Fragment 15 "main" 81 + EntryPoint Fragment 15 "main" 80 ExecutionMode 15 OriginUpperLeft 2: String "spv.debuginfo.include.glsl.frag" 3: String "spv.debuginfo.include.glsl.h" 9: String "uint" 18: String "float" 31: String "headerFunction" - 34: String "// OpModuleProcessed auto-map-locations + 34: String " +out vec4 headerOut; + +uniform UBO { + vec4 headerUboItem; +}; + +vec4 headerFunction(vec4 a) { + return -a; +}" + 39: String "// OpModuleProcessed auto-map-locations // OpModuleProcessed auto-map-bindings // OpModuleProcessed client vulkan100 // OpModuleProcessed target-env vulkan1.0 @@ -34,43 +44,33 @@ vec4 mainFileFunction(vec4 v) { void main() { headerOut = headerFunction(mainFileFunction(headerUboItem)); }" - 40: String "a" - 48: String "mainFileFunction" - 51: String "v" - 54: String "main" - 60: String " -out vec4 headerOut; - -uniform UBO { - vec4 headerUboItem; -}; - -vec4 headerFunction(vec4 a) { - return -a; -}" - 83: String "headerOut" - 87: String "headerUboItem" - 90: String "UBO" - 95: String "" - 97: String "int" + 42: String "a" + 50: String "mainFileFunction" + 53: String "v" + 57: String "main" + 82: String "headerOut" + 86: String "headerUboItem" + 89: String "UBO" + 94: String "" + 96: String "int" SourceExtension "GL_GOOGLE_cpp_style_line_directive" SourceExtension "GL_GOOGLE_include_directive" Name 15 "main" Name 29 "headerFunction(vf4;" Name 28 "a" - Name 46 "mainFileFunction(vf4;" - Name 45 "v" - Name 81 "headerOut" - Name 85 "UBO" - MemberName 85(UBO) 0 "headerUboItem" - Name 93 "" - Name 100 "param" - Name 107 "param" - Decorate 81(headerOut) Location 0 - Decorate 85(UBO) Block - MemberDecorate 85(UBO) 0 Offset 0 - Decorate 93 Binding 0 - Decorate 93 DescriptorSet 0 + Name 48 "mainFileFunction(vf4;" + Name 47 "v" + Name 80 "headerOut" + Name 84 "UBO" + MemberName 84(UBO) 0 "headerUboItem" + Name 92 "" + Name 99 "param" + Name 106 "param" + Decorate 80(headerOut) Location 0 + Decorate 84(UBO) Block + MemberDecorate 84(UBO) 0 Offset 0 + Decorate 92 Binding 0 + Decorate 92 DescriptorSet 0 5: TypeVoid 6: TypeFunction 5 8: TypeInt 32 0 @@ -90,77 +90,76 @@ vec4 headerFunction(vec4 a) { 25: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 24 13 26: TypeFunction 20(fvec4) 23(ptr) 27: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 14 22 22 - 33: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 34 + 33: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 3 34 35: 8(int) Constant 8 37: 8(int) Constant 1 - 38: 8(int) Constant 2 - 36: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 37 21 33 38 + 38: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 39 + 40: 8(int) Constant 2 + 36: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 37 21 38 40 32: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 31 27 33 35 13 36 31 14 35 - 39: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 40 22 33 35 13 32 21 37 - 42: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) - 49: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 48 27 33 12 13 36 48 14 12 - 50: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 51 22 33 12 13 49 21 37 - 56: 8(int) Constant 10 - 55: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 54 7 33 56 13 36 54 14 56 - 59: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 3 60 + 41: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 42 22 33 35 13 32 21 37 + 44: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) + 51: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 50 27 38 12 13 36 50 14 12 + 52: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 22 38 12 13 51 21 37 + 59: 8(int) Constant 10 + 58: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 57 7 38 59 13 36 57 14 59 63: 8(int) Constant 9 - 79: TypePointer Output 20(fvec4) - 80: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 14 13 - 81(headerOut): 79(ptr) Variable Output - 84: 8(int) Constant 11 - 82: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 83 22 33 84 13 36 83 81(headerOut) 35 - 85(UBO): TypeStruct 20(fvec4) - 88: 8(int) Constant 5 - 86: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 87 22 33 88 24 13 13 14 - 89: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 90 37 33 84 13 36 90 13 14 86 - 91: TypePointer Uniform 85(UBO) - 92: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 89 38 13 - 93: 91(ptr) Variable Uniform - 94: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 95 89 33 84 13 36 95 93 35 - 96: TypeInt 32 1 - 98: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 97 11 21 13 - 99: 96(int) Constant 0 - 101: TypePointer Uniform 20(fvec4) - 102: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 38 13 + 78: TypePointer Output 20(fvec4) + 79: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 14 13 + 80(headerOut): 78(ptr) Variable Output + 83: 8(int) Constant 11 + 81: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 82 22 38 83 13 36 82 80(headerOut) 35 + 84(UBO): TypeStruct 20(fvec4) + 87: 8(int) Constant 5 + 85: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 86 22 38 87 24 13 13 14 + 88: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 89 37 38 83 13 36 89 13 14 85 + 90: TypePointer Uniform 84(UBO) + 91: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 88 40 13 + 92: 90(ptr) Variable Uniform + 93: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 94 88 38 83 13 36 94 92 35 + 95: TypeInt 32 1 + 97: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 96 11 21 13 + 98: 95(int) Constant 0 + 100: TypePointer Uniform 20(fvec4) + 101: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 22 40 13 15(main): 5 Function None 6 16: Label - 100(param): 23(ptr) Variable Function - 107(param): 23(ptr) Variable Function - 77: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 55 - 78: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 56 56 13 13 - 76: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 55 15(main) - 104: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 84 84 13 13 - 103: 101(ptr) AccessChain 93 99 - 105: 20(fvec4) Load 103 - Store 100(param) 105 - 106: 20(fvec4) FunctionCall 46(mainFileFunction(vf4;) 100(param) - Store 107(param) 106 - 108: 20(fvec4) FunctionCall 29(headerFunction(vf4;) 107(param) - Store 81(headerOut) 108 + 99(param): 23(ptr) Variable Function + 106(param): 23(ptr) Variable Function + 76: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58 + 77: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 38 59 59 13 13 + 75: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 58 15(main) + 103: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 38 83 83 13 13 + 102: 100(ptr) AccessChain 92 98 + 104: 20(fvec4) Load 102 + Store 99(param) 104 + 105: 20(fvec4) FunctionCall 48(mainFileFunction(vf4;) 99(param) + Store 106(param) 105 + 107: 20(fvec4) FunctionCall 29(headerFunction(vf4;) 106(param) + Store 80(headerOut) 107 Return FunctionEnd 29(headerFunction(vf4;): 20(fvec4) Function None 26 28(a): 23(ptr) FunctionParameter 30: Label - 43: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 32 - 44: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 35 35 13 13 - 41: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 39 28(a) 42 - 58: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 59 35 35 13 13 - 57: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 32 29(headerFunction(vf4;) - 62: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 59 63 63 13 13 + 45: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 32 + 46: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 35 35 13 13 + 43: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 41 28(a) 44 + 60: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 32 29(headerFunction(vf4;) + 62: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 63 63 13 13 61: 20(fvec4) Load 28(a) 64: 20(fvec4) FNegate 61 ReturnValue 64 FunctionEnd -46(mainFileFunction(vf4;): 20(fvec4) Function None 26 - 45(v): 23(ptr) FunctionParameter - 47: Label - 53: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 49 - 52: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 50 45(v) 42 - 69: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 12 12 13 13 - 68: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 49 46(mainFileFunction(vf4;) - 71: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 24 24 13 13 - 70: 20(fvec4) Load 45(v) - 72: 20(fvec4) FNegate 70 - ReturnValue 72 +48(mainFileFunction(vf4;): 20(fvec4) Function None 26 + 47(v): 23(ptr) FunctionParameter + 49: Label + 55: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 51 + 56: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 38 12 12 13 13 + 54: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 52 47(v) 44 + 68: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 51 48(mainFileFunction(vf4;) + 70: 5 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 38 24 24 13 13 + 69: 20(fvec4) Load 47(v) + 71: 20(fvec4) FNegate 69 + ReturnValue 71 FunctionEnd diff --git a/Test/baseResults/spv.pp.line.frag.out b/Test/baseResults/spv.pp.line.frag.out index af73d175..a5fbf16c 100644 --- a/Test/baseResults/spv.pp.line.frag.out +++ b/Test/baseResults/spv.pp.line.frag.out @@ -13,7 +13,7 @@ WARNING: spv.pp.line.frag:8: varying deprecated in version 130; may be removed i EntryPoint Fragment 5 "main" 60 72 75 78 ExecutionMode 5 OriginUpperLeft 1: String "spv.pp.line.frag" - 13: String "header.h" + 7: String "header.h" Source GLSL 140 1 "// OpModuleProcessed auto-map-locations // OpModuleProcessed auto-map-bindings // OpModuleProcessed client vulkan100 @@ -61,8 +61,8 @@ void main() " SourceExtension "GL_GOOGLE_cpp_style_line_directive" Name 5 "main" - Name 11 "myAbs(f1;" - Name 10 "x" + Name 12 "myAbs(f1;" + Name 11 "x" Name 27 "blendscale" Name 29 "param" Name 31 "bias" @@ -84,44 +84,44 @@ void main() Decorate 78(blend) Location 0 3: TypeVoid 4: TypeFunction 3 - 7: TypeFloat 32 - 8: TypePointer Function 7(float) - 9: TypeFunction 7(float) 8(ptr) - 15: 7(float) Constant 0 + 8: TypeFloat 32 + 9: TypePointer Function 8(float) + 10: TypeFunction 8(float) 9(ptr) + 15: 8(float) Constant 0 16: TypeBool - 28: 7(float) Constant 1071971828 - 32: 7(float) Constant 1073741824 - 34: TypeVector 7(float) 4 + 28: 8(float) Constant 1071971828 + 32: 8(float) Constant 1073741824 + 34: TypeVector 8(float) 4 35: TypePointer Function 34(fvec4) 37: 34(fvec4) ConstantComposite 15 15 15 15 - 38: TypeImage 7(float) 1D sampled format:Unknown + 38: TypeImage 8(float) 1D sampled format:Unknown 39: TypeSampledImage 38 40: TypePointer UniformConstant 39 41(texSampler1D): 40(ptr) Variable UniformConstant - 53: TypeImage 7(float) 2D sampled format:Unknown + 53: TypeImage 8(float) 2D sampled format:Unknown 54: TypeSampledImage 53 55: TypePointer UniformConstant 54 56(texSampler2D): 55(ptr) Variable UniformConstant - 58: TypeVector 7(float) 2 + 58: TypeVector 8(float) 2 59: TypePointer Input 58(fvec2) 60(coords2D): 59(ptr) Variable Input 71: TypePointer Output 34(fvec4) 72(gl_FragColor): 71(ptr) Variable Output 74: TypePointer Input 34(fvec4) 75(u): 74(ptr) Variable Input - 77: TypePointer Input 7(float) + 77: TypePointer Input 8(float) 78(blend): 77(ptr) Variable Input Line 1 23 11 5(main): 3 Function None 4 6: Label - 27(blendscale): 8(ptr) Variable Function - 29(param): 8(ptr) Variable Function - 31(bias): 8(ptr) Variable Function - 33(coords1D): 8(ptr) Variable Function + 27(blendscale): 9(ptr) Variable Function + 29(param): 9(ptr) Variable Function + 31(bias): 9(ptr) Variable Function + 33(coords1D): 9(ptr) Variable Function 36(color): 35(ptr) Variable Function Line 1 25 0 Store 29(param) 28 - 30: 7(float) FunctionCall 11(myAbs(f1;) 29(param) + 30: 8(float) FunctionCall 12(myAbs(f1;) 29(param) Store 27(blendscale) 30 Line 1 26 0 Store 31(bias) 32 @@ -131,15 +131,15 @@ void main() Store 36(color) 37 Line 1 54 0 42: 39 Load 41(texSampler1D) - 43: 7(float) Load 33(coords1D) + 43: 8(float) Load 33(coords1D) 44: 34(fvec4) ImageSampleImplicitLod 42 43 45: 34(fvec4) Load 36(color) 46: 34(fvec4) FAdd 45 44 Store 36(color) 46 Line 1 55 0 47: 39 Load 41(texSampler1D) - 48: 7(float) Load 33(coords1D) - 49: 7(float) Load 31(bias) + 48: 8(float) Load 33(coords1D) + 49: 8(float) Load 31(bias) 50: 34(fvec4) ImageSampleImplicitLod 47 48 Bias 49 51: 34(fvec4) Load 36(color) 52: 34(fvec4) FAdd 51 50 @@ -154,7 +154,7 @@ void main() Line 1 104 0 65: 54 Load 56(texSampler2D) 66: 58(fvec2) Load 60(coords2D) - 67: 7(float) Load 31(bias) + 67: 8(float) Load 31(bias) 68: 34(fvec4) ImageSampleImplicitLod 65 66 Bias 67 69: 34(fvec4) Load 36(color) 70: 34(fvec4) FAdd 69 68 @@ -162,31 +162,31 @@ void main() Line 1 106 0 73: 34(fvec4) Load 36(color) 76: 34(fvec4) Load 75(u) - 79: 7(float) Load 78(blend) - 80: 7(float) Load 27(blendscale) - 81: 7(float) FMul 79 80 + 79: 8(float) Load 78(blend) + 80: 8(float) Load 27(blendscale) + 81: 8(float) FMul 79 80 82: 34(fvec4) CompositeConstruct 81 81 81 81 83: 34(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 73 76 82 Store 72(gl_FragColor) 83 Return FunctionEnd - Line 13 1 20 - 11(myAbs(f1;): 7(float) Function None 9 - 10(x): 8(ptr) FunctionParameter - 12: Label - Line 13 2 0 - 14: 7(float) Load 10(x) + Line 7 1 20 + 12(myAbs(f1;): 8(float) Function None 10 + 11(x): 9(ptr) FunctionParameter + 13: Label + Line 7 2 0 + 14: 8(float) Load 11(x) 17: 16(bool) FOrdGreaterThan 14 15 SelectionMerge 19 None BranchConditional 17 18 22 18: Label - Line 13 3 0 - 20: 7(float) Load 10(x) + Line 7 3 0 + 20: 8(float) Load 11(x) ReturnValue 20 22: Label - Line 13 6 0 - 23: 7(float) Load 10(x) - 24: 7(float) FNegate 23 + Line 7 6 0 + 23: 8(float) Load 11(x) + 24: 8(float) FNegate 23 ReturnValue 24 19: Label Unreachable