From 70a2117d00c170cf21aed01b6259ac78d2d17bb2 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 24 Nov 2023 02:29:11 +0100 Subject: [PATCH] Remove [AutoConstructor] from integration tests --- tests/ComputeSharp.Dxc.NuGet/Program.cs | 5 +---- tests/ComputeSharp.NuGet/Program.cs | 5 +---- tests/ComputeSharp.Pix.NuGet/Program.cs | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/tests/ComputeSharp.Dxc.NuGet/Program.cs b/tests/ComputeSharp.Dxc.NuGet/Program.cs index 0274e8b8..458b60af 100644 --- a/tests/ComputeSharp.Dxc.NuGet/Program.cs +++ b/tests/ComputeSharp.Dxc.NuGet/Program.cs @@ -33,13 +33,10 @@ Trace.Assert(shaderInfo.BoundResourceCount == 2); /// /// A sample kernel that requires dynamic compilation, as it's not precompiled. /// -[AutoConstructor] [ThreadGroupSize(DefaultThreadGroupSizes.X)] [GeneratedComputeShaderDescriptor] -internal readonly partial struct MultiplyByTwo : IComputeShader +internal readonly partial struct MultiplyByTwo(ReadWriteBuffer buffer) : IComputeShader { - public readonly ReadWriteBuffer buffer; - /// public void Execute() { diff --git a/tests/ComputeSharp.NuGet/Program.cs b/tests/ComputeSharp.NuGet/Program.cs index 48fd9a52..42cc0f11 100644 --- a/tests/ComputeSharp.NuGet/Program.cs +++ b/tests/ComputeSharp.NuGet/Program.cs @@ -27,11 +27,8 @@ for (int i = 0; i < array.Length; i++) /// [ThreadGroupSize(DefaultThreadGroupSizes.X)] [GeneratedComputeShaderDescriptor] -[AutoConstructor] -internal readonly partial struct MultiplyByTwo : IComputeShader +internal readonly partial struct MultiplyByTwo(ReadWriteBuffer buffer) : IComputeShader { - public readonly ReadWriteBuffer buffer; - /// public void Execute() { diff --git a/tests/ComputeSharp.Pix.NuGet/Program.cs b/tests/ComputeSharp.Pix.NuGet/Program.cs index 0cd931e5..1e2b97b5 100644 --- a/tests/ComputeSharp.Pix.NuGet/Program.cs +++ b/tests/ComputeSharp.Pix.NuGet/Program.cs @@ -33,11 +33,8 @@ for (int i = 0; i < array.Length; i++) /// [ThreadGroupSize(DefaultThreadGroupSizes.X)] [GeneratedComputeShaderDescriptor] -[AutoConstructor] -internal readonly partial struct MultiplyByTwo : IComputeShader +internal readonly partial struct MultiplyByTwo(ReadWriteBuffer buffer) : IComputeShader { - public readonly ReadWriteBuffer buffer; - /// public void Execute() {