From 6131b7f9b0d2ee95c98e5e76a5f5bafe62ef74ae Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 11 Oct 2022 19:01:28 +0200 Subject: [PATCH] Fix C# 11 check in D2D1 source generator Used the wrong local in dab94bdae7ee5dea51667aa113218dcfb0083ba5 --- src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs index 906a9bff..6dbd90ca 100644 --- a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs +++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs @@ -217,7 +217,7 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator IncrementalValuesProvider<((HierarchyInfo Hierarchy, string HlslSource) Info, bool CanUseRawMultilineStringLiterals)> hlslSourceInfo = shaderInfoWithErrors .Select(static (item, _) => (item.Hierarchy, item.HlslShaderSource.HlslSource)) - .Combine(canUseSkipLocalsInit); + .Combine(canUseRawMultilineStringLiterals); // Generate the BuildHlslSource() methods context.RegisterSourceOutput(hlslSourceInfo, static (context, item) =>