From 1cc0b88d66cf7ddc5558790005fd0d4e2c42bb59 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 2 Jan 2021 17:28:58 +0100 Subject: [PATCH] Fixed some build errors in test projects --- src/ComputeSharp.Core/Properties/AssemblyInfo.cs | 1 + tests/ComputeSharp.Tests.Internals/AlignmentHelperTests.cs | 2 +- tests/ComputeSharp.Tests/BufferTests.cs | 6 +++--- tests/ComputeSharp.Tests/InitializationTests.cs | 2 +- tests/ComputeSharp.Tests/Texture2DTests.cs | 4 ++-- tests/ComputeSharp.Tests/Texture3DTests.cs | 4 ++-- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/ComputeSharp.Core/Properties/AssemblyInfo.cs b/src/ComputeSharp.Core/Properties/AssemblyInfo.cs index 4f59d117..7c536786 100644 --- a/src/ComputeSharp.Core/Properties/AssemblyInfo.cs +++ b/src/ComputeSharp.Core/Properties/AssemblyInfo.cs @@ -3,3 +3,4 @@ [assembly: InternalsVisibleTo("ComputeSharp.Graphics")] [assembly: InternalsVisibleTo("ComputeSharp.Shaders")] [assembly: InternalsVisibleTo("ComputeSharp.SourceGenerators")] +[assembly: InternalsVisibleTo("ComputeSharp.Tests.Internals")] diff --git a/tests/ComputeSharp.Tests.Internals/AlignmentHelperTests.cs b/tests/ComputeSharp.Tests.Internals/AlignmentHelperTests.cs index 90868229..9886d70c 100644 --- a/tests/ComputeSharp.Tests.Internals/AlignmentHelperTests.cs +++ b/tests/ComputeSharp.Tests.Internals/AlignmentHelperTests.cs @@ -1,4 +1,4 @@ -using ComputeSharp.Graphics.Helpers; +using ComputeSharp.Core.Helpers; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ComputeSharp.Tests.Internals diff --git a/tests/ComputeSharp.Tests/BufferTests.cs b/tests/ComputeSharp.Tests/BufferTests.cs index 6731b5fa..30f97b6e 100644 --- a/tests/ComputeSharp.Tests/BufferTests.cs +++ b/tests/ComputeSharp.Tests/BufferTests.cs @@ -218,7 +218,7 @@ namespace ComputeSharp.Tests } [AutoConstructor] - private readonly partial struct ConstantBufferKernel : IComputeShader + internal readonly partial struct ConstantBufferKernel : IComputeShader { public readonly ConstantBuffer source; public readonly ReadWriteBuffer destination; @@ -245,7 +245,7 @@ namespace ComputeSharp.Tests } [AutoConstructor] - private readonly partial struct ReadOnlyBufferKernel : IComputeShader + internal readonly partial struct ReadOnlyBufferKernel : IComputeShader { public readonly ReadOnlyBuffer source; public readonly ReadWriteBuffer destination; @@ -272,7 +272,7 @@ namespace ComputeSharp.Tests } [AutoConstructor] - private readonly partial struct ReadWriteBufferKernel : IComputeShader + internal readonly partial struct ReadWriteBufferKernel : IComputeShader { public readonly ReadWriteBuffer source; public readonly ReadWriteBuffer destination; diff --git a/tests/ComputeSharp.Tests/InitializationTests.cs b/tests/ComputeSharp.Tests/InitializationTests.cs index 1b3a19e2..2e68999f 100644 --- a/tests/ComputeSharp.Tests/InitializationTests.cs +++ b/tests/ComputeSharp.Tests/InitializationTests.cs @@ -74,7 +74,7 @@ namespace ComputeSharp.Tests } [AutoConstructor] - private readonly partial struct SampleShader : IComputeShader + internal readonly partial struct SampleShader : IComputeShader { public readonly ReadWriteBuffer buffer; diff --git a/tests/ComputeSharp.Tests/Texture2DTests.cs b/tests/ComputeSharp.Tests/Texture2DTests.cs index cf23220f..d9ce8fa5 100644 --- a/tests/ComputeSharp.Tests/Texture2DTests.cs +++ b/tests/ComputeSharp.Tests/Texture2DTests.cs @@ -154,7 +154,7 @@ namespace ComputeSharp.Tests } [AutoConstructor] - private readonly partial struct ReadOnlyTexture2DKernel : IComputeShader + internal readonly partial struct ReadOnlyTexture2DKernel : IComputeShader { public readonly ReadOnlyTexture2D source; public readonly ReadWriteBuffer destination; @@ -183,7 +183,7 @@ namespace ComputeSharp.Tests } [AutoConstructor] - private readonly partial struct ReadWriteTexture2DKernel : IComputeShader + internal readonly partial struct ReadWriteTexture2DKernel : IComputeShader { public readonly ReadWriteTexture2D source; public readonly ReadWriteTexture2D destination; diff --git a/tests/ComputeSharp.Tests/Texture3DTests.cs b/tests/ComputeSharp.Tests/Texture3DTests.cs index b68e02f6..5b771f42 100644 --- a/tests/ComputeSharp.Tests/Texture3DTests.cs +++ b/tests/ComputeSharp.Tests/Texture3DTests.cs @@ -188,7 +188,7 @@ namespace ComputeSharp.Tests } [AutoConstructor] - private readonly partial struct ReadOnlyTexture3DKernel : IComputeShader + internal readonly partial struct ReadOnlyTexture3DKernel : IComputeShader { public readonly ReadOnlyTexture3D source; public readonly ReadWriteBuffer destination; @@ -217,7 +217,7 @@ namespace ComputeSharp.Tests } [AutoConstructor] - private readonly partial struct ReadWriteTexture3DKernel : IComputeShader + internal readonly partial struct ReadWriteTexture3DKernel : IComputeShader { public readonly ReadWriteTexture3D source; public readonly ReadWriteTexture3D destination;