From cea25fbd4d2ad3c66ad8fcc61f5670bdb52c2b36 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 17 Dec 2023 03:11:29 +0100 Subject: [PATCH] Add [RequiresDoublePrecisionSupport] to test shaders --- tests/ComputeSharp.Tests/BufferTests.cs | 1 + tests/ComputeSharp.Tests/ShaderCompilerTests.cs | 1 + tests/ComputeSharp.Tests/ShaderRewriterTests.cs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/tests/ComputeSharp.Tests/BufferTests.cs b/tests/ComputeSharp.Tests/BufferTests.cs index ba855867..938586ea 100644 --- a/tests/ComputeSharp.Tests/BufferTests.cs +++ b/tests/ComputeSharp.Tests/BufferTests.cs @@ -375,6 +375,7 @@ public partial class BufferTests [AutoConstructor] [ThreadGroupSize(DefaultThreadGroupSizes.X)] + [RequiresDoublePrecisionSupport] [GeneratedComputeShaderDescriptor] public readonly partial struct DoublePrecisionSupportShader : IComputeShader { diff --git a/tests/ComputeSharp.Tests/ShaderCompilerTests.cs b/tests/ComputeSharp.Tests/ShaderCompilerTests.cs index 8c507492..2b83b52a 100644 --- a/tests/ComputeSharp.Tests/ShaderCompilerTests.cs +++ b/tests/ComputeSharp.Tests/ShaderCompilerTests.cs @@ -361,6 +361,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [ThreadGroupSize(DefaultThreadGroupSizes.X)] + [RequiresDoublePrecisionSupport] [GeneratedComputeShaderDescriptor] public readonly partial struct DoublePrecisionSupportShader : IComputeShader { diff --git a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs index b7a90ac5..a5bc0500 100644 --- a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs +++ b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs @@ -52,6 +52,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [ThreadGroupSize(DefaultThreadGroupSizes.X)] + [RequiresDoublePrecisionSupport] [GeneratedComputeShaderDescriptor] internal readonly partial struct NanAndInfiniteShader : IComputeShader { @@ -622,6 +623,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [ThreadGroupSize(DefaultThreadGroupSizes.X)] + [RequiresDoublePrecisionSupport] [GeneratedComputeShaderDescriptor] internal readonly partial struct DoubleConstantsInShaderConstantFieldsShader : IComputeShader {