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, @"(?