From c7bbec8df0d3d32d68d47e2f78a2e62460866d1e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 17 Oct 2023 01:57:05 +0200 Subject: [PATCH] Remove leftover ShaderCompilerTests file --- .../ShaderCompilerTests.cs | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 tests/ComputeSharp.Tests.Internals/ShaderCompilerTests.cs diff --git a/tests/ComputeSharp.Tests.Internals/ShaderCompilerTests.cs b/tests/ComputeSharp.Tests.Internals/ShaderCompilerTests.cs deleted file mode 100644 index ff01970d..00000000 --- a/tests/ComputeSharp.Tests.Internals/ShaderCompilerTests.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using ComputeSharp.Shaders.Translation; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -namespace ComputeSharp.Tests.Internals; - -[TestClass] -[TestCategory("ShaderCompiler")] -public class ShaderCompilerTests -{ - private const string ShaderSource = """ - cbuffer _ : register(b0) - { - uint __x; - uint __y; - uint __z; - } - - RWStructuredBuffer buffer : register(u0); - - [NumThreads(32, 1, 1)] - void Execute(uint3 ids : SV_DispatchThreadId) - { - if (ids.x < __x && ids.y < __y && ids.z < __z) - { - buffer[ids.x] *= 2; - } - } - """; - - [TestMethod] - public void CompileTest_Ok() - { - using ComPtr dxcBlob = ShaderCompiler.Instance.Compile(ShaderSource.AsSpan()); - } - - [TestMethod] - [ExpectedException(typeof(DxcCompilationException))] - public void CompileTest_Fail() - { - string faultyShader = ShaderSource.Replace("ids.x", "ids.X"); - - using ComPtr dxcBlob = ShaderCompiler.Instance.Compile(faultyShader.AsSpan()); - } -} \ No newline at end of file