From a4fc88b9309b84d8e9eae1bbcc1c4624c74fa731 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 24 Aug 2019 23:57:17 +0200 Subject: [PATCH] Removed in keyword from shader body --- src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs b/src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs index 8a8c37f2..050e8c69 100644 --- a/src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs +++ b/src/ComputeSharp.Shaders/Translation/MethodDecompiler.cs @@ -173,8 +173,11 @@ namespace ComputeSharp.Shaders.Translation // Unwrap the nested fields string unwrappedSourceCode = UnwrapSyntaxTree(methodFixedCode); + // Remove the in keyword from the source + string inFixedSourceCode = Regex.Replace(unwrappedSourceCode, @"(?