From a64e7bbd188ab317d13a3db282f7672c16ee1a5f Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 24 Oct 2023 02:21:53 +0200 Subject: [PATCH] Fix a compile error in tests due to DXC warning --- tests/ComputeSharp.Tests/ShaderCompilerTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ComputeSharp.Tests/ShaderCompilerTests.cs b/tests/ComputeSharp.Tests/ShaderCompilerTests.cs index bd9ad46b..01f99b32 100644 --- a/tests/ComputeSharp.Tests/ShaderCompilerTests.cs +++ b/tests/ComputeSharp.Tests/ShaderCompilerTests.cs @@ -550,13 +550,13 @@ namespace ComputeSharp.Tests /// public void Execute() { - float number = this.number; + float x = this.number + ThreadIds.X; - Foo(ref this.buffer[ThreadIds.X], ref number); - Bar(ref this.buffer[ThreadIds.X], ref number); - HelpersForPixelShaderWithScopedParameterInMethods.Baz(in this.buffer[ThreadIds.X], ref number); + Foo(ref this.buffer[ThreadIds.X], ref x); + Bar(ref this.buffer[ThreadIds.X], ref x); + HelpersForPixelShaderWithScopedParameterInMethods.Baz(in this.buffer[ThreadIds.X], ref x); - this.buffer[ThreadIds.X] *= number; + this.buffer[ThreadIds.X] *= x; } } }