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() {