From e5a4822ee7b2c6b9edd1218bac8043b3ddf88dfe Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 17 Sep 2019 01:13:25 +0200 Subject: [PATCH] Fixed symbol loading issue for HLSL vector types --- src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs b/src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs index cd48a6bf..5c10cd5b 100644 --- a/src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs +++ b/src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs @@ -150,8 +150,8 @@ namespace ComputeSharp.Shaders.Translation rootNode = syntaxTree.GetRoot().DescendantNodes().OfType().First(node => node.GetLeadingTrivia().ToFullString().Contains(methodInfo.Name)); // Update the incremental compilation and retrieve the syntax tree for the method - _Compilation = _Compilation.AddSyntaxTrees(syntaxTree); - semanticModel = _Compilation.GetSemanticModel(syntaxTree); + Compilation compilation = _Compilation.AddSyntaxTrees(syntaxTree); + semanticModel = compilation.GetSemanticModel(syntaxTree); } ///