diff --git a/samples/ComputeSharp.Benchmark/Blas/BlasHelpers.cs b/samples/ComputeSharp.Benchmark/Blas/BlasHelpers.cs index 7f092b09..c5ffab0d 100644 --- a/samples/ComputeSharp.Benchmark/Blas/BlasHelpers.cs +++ b/samples/ComputeSharp.Benchmark/Blas/BlasHelpers.cs @@ -82,6 +82,7 @@ internal static partial class BlasHelpers /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] public readonly partial struct FullyConnectedForwardKernel : IComputeShader { private readonly int n; diff --git a/samples/ComputeSharp.Benchmark/Dispatching/DispatchingBenchmark.cs b/samples/ComputeSharp.Benchmark/Dispatching/DispatchingBenchmark.cs index 5c477a7a..35d57b83 100644 --- a/samples/ComputeSharp.Benchmark/Dispatching/DispatchingBenchmark.cs +++ b/samples/ComputeSharp.Benchmark/Dispatching/DispatchingBenchmark.cs @@ -110,6 +110,7 @@ public partial class DispatchingBenchmark : IDisposable [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct TestShader : IComputeShader { private readonly ReadWriteBuffer buffer; diff --git a/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs b/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs index 6c8d9fc8..2db0049c 100644 --- a/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs +++ b/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs @@ -315,6 +315,7 @@ public sealed partial class HlslBokehBlurProcessor /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct VerticalConvolutionProcessor : IComputeShader { private readonly IReadWriteNormalizedTexture2D source; @@ -353,6 +354,7 @@ public sealed partial class HlslBokehBlurProcessor /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct HorizontalConvolutionAndAccumulatePartialsProcessor : IComputeShader { private readonly float z; @@ -393,6 +395,7 @@ public sealed partial class HlslBokehBlurProcessor /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct GammaHighlightProcessor : IComputeShader { private readonly IReadWriteNormalizedTexture2D source; @@ -418,6 +421,7 @@ public sealed partial class HlslBokehBlurProcessor /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct InverseGammaHighlightProcessor : IComputeShader { private readonly ReadWriteTexture2D source; diff --git a/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs b/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs index d35ac808..f358f6ac 100644 --- a/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs +++ b/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs @@ -119,6 +119,7 @@ public sealed partial class HlslGaussianBlurProcessor /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct VerticalConvolutionProcessor : IComputeShader { private readonly IReadWriteNormalizedTexture2D source; @@ -152,6 +153,7 @@ public sealed partial class HlslGaussianBlurProcessor /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct HorizontalConvolutionProcessor : IComputeShader { private readonly IReadWriteNormalizedTexture2D source; diff --git a/samples/ComputeSharp.Sample.FSharp.Shaders/MultiplyByTwo.cs b/samples/ComputeSharp.Sample.FSharp.Shaders/MultiplyByTwo.cs index ac8d99a2..d9c60473 100644 --- a/samples/ComputeSharp.Sample.FSharp.Shaders/MultiplyByTwo.cs +++ b/samples/ComputeSharp.Sample.FSharp.Shaders/MultiplyByTwo.cs @@ -5,6 +5,7 @@ namespace ComputeSharp.Sample.FSharp.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] +[GeneratedComputeShaderDescriptor] public readonly partial struct MultiplyByTwo : IComputeShader { private readonly ReadWriteBuffer buffer; diff --git a/samples/ComputeSharp.Sample/Program.cs b/samples/ComputeSharp.Sample/Program.cs index 761aecc4..6c862923 100644 --- a/samples/ComputeSharp.Sample/Program.cs +++ b/samples/ComputeSharp.Sample/Program.cs @@ -25,6 +25,7 @@ Formatting.PrintMatrix(array, 10, 10, "AFTER"); /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct MultiplyByTwo : IComputeShader { private readonly ReadWriteBuffer buffer; diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/ColorfulInfinity.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/ColorfulInfinity.cs index 8d4b2b1d..433c0645 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/ColorfulInfinity.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/ColorfulInfinity.cs @@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct ColorfulInfinity : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/ContouredLayers.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/ContouredLayers.cs index 52cd77f2..e15a8d8f 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/ContouredLayers.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/ContouredLayers.cs @@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct ContouredLayers : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/ExtrudedTruchetPattern.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/ExtrudedTruchetPattern.cs index 44905851..e9babd5a 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/ExtrudedTruchetPattern.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/ExtrudedTruchetPattern.cs @@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct ExtrudedTruchetPattern : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/FourColorGradient.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/FourColorGradient.cs index 123f0575..7a7ee12d 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/FourColorGradient.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/FourColorGradient.cs @@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct FourColorGradient : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/FractalTiling.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/FractalTiling.cs index 156ece01..10b444c5 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/FractalTiling.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/FractalTiling.cs @@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct FractalTiling : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/HelloWorld.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/HelloWorld.cs index 75fc97c1..7e507eb8 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/HelloWorld.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/HelloWorld.cs @@ -6,6 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct HelloWorld : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/MengerJourney.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/MengerJourney.cs index 1b006248..1958ac85 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/MengerJourney.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/MengerJourney.cs @@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct MengerJourney : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/Octagrams.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/Octagrams.cs index 1fc1f0a6..9f87a082 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/Octagrams.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/Octagrams.cs @@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct Octagrams : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/ProteanClouds.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/ProteanClouds.cs index 6799eda1..d1dfdefa 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/ProteanClouds.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/ProteanClouds.cs @@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct ProteanClouds : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/PyramidPattern.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/PyramidPattern.cs index f4260f4c..af6b0c26 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/PyramidPattern.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/PyramidPattern.cs @@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct PyramidPattern : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/TerracedHills.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/TerracedHills.cs index 6eeff2ba..a32cd0c8 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/TerracedHills.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/TerracedHills.cs @@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct TerracedHills : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/TriangleGridContouring.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/TriangleGridContouring.cs index a3c03f54..4f24de96 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/TriangleGridContouring.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/TriangleGridContouring.cs @@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct TriangleGridContouring : IComputeShader { /// diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/TwoTiledTruchet.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/TwoTiledTruchet.cs index 091813da..2b536ab8 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.Shared/TwoTiledTruchet.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/TwoTiledTruchet.cs @@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct TwoTiledTruchet : IComputeShader { /// diff --git a/src/ComputeSharp.SourceGenerators/ComputeShaderDescriptorGenerator.Helpers.cs b/src/ComputeSharp.SourceGenerators/ComputeShaderDescriptorGenerator.Helpers.cs index aaa4bcc4..b2bc0a1f 100644 --- a/src/ComputeSharp.SourceGenerators/ComputeShaderDescriptorGenerator.Helpers.cs +++ b/src/ComputeSharp.SourceGenerators/ComputeShaderDescriptorGenerator.Helpers.cs @@ -25,8 +25,7 @@ partial class ComputeShaderDescriptorGenerator return true; } - else if (interfaceSymbol is { IsGenericType: true } && - SymbolEqualityComparer.Default.Equals(interfaceSymbol.ConstructedFrom, pixelShaderSymbol)) + else if (SymbolEqualityComparer.Default.Equals(interfaceSymbol.ConstructedFrom, pixelShaderSymbol)) { result = true; diff --git a/tests/ComputeSharp.Dynamic.NuGet/Program.cs b/tests/ComputeSharp.Dynamic.NuGet/Program.cs index 8a1cb76c..58d6e86e 100644 --- a/tests/ComputeSharp.Dynamic.NuGet/Program.cs +++ b/tests/ComputeSharp.Dynamic.NuGet/Program.cs @@ -35,6 +35,7 @@ Trace.Assert(shaderInfo.BoundResourceCount == 2); /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct MultiplyByTwo : IComputeShader { public readonly ReadWriteBuffer buffer; diff --git a/tests/ComputeSharp.NuGet/Program.cs b/tests/ComputeSharp.NuGet/Program.cs index bb7fb0d3..c4424f36 100644 --- a/tests/ComputeSharp.NuGet/Program.cs +++ b/tests/ComputeSharp.NuGet/Program.cs @@ -30,6 +30,7 @@ for (int i = 0; i < array.Length; i++) /// A sample kernel that is precompiled. /// [EmbeddedBytecode(DispatchAxis.X)] +[GeneratedComputeShaderDescriptor] [AutoConstructor] internal readonly partial struct MultiplyByTwo : IComputeShader { diff --git a/tests/ComputeSharp.Pix.NuGet/Program.cs b/tests/ComputeSharp.Pix.NuGet/Program.cs index 0d6e690b..306c6d71 100644 --- a/tests/ComputeSharp.Pix.NuGet/Program.cs +++ b/tests/ComputeSharp.Pix.NuGet/Program.cs @@ -36,6 +36,7 @@ for (int i = 0; i < array.Length; i++) /// A sample kernel that is precompiled. /// [EmbeddedBytecode(DispatchAxis.X)] +[GeneratedComputeShaderDescriptor] [AutoConstructor] internal readonly partial struct MultiplyByTwo : IComputeShader { diff --git a/tests/ComputeSharp.Tests.DeviceLost/DeviceDisposalTests.cs b/tests/ComputeSharp.Tests.DeviceLost/DeviceDisposalTests.cs index c1fcf6a7..312509ea 100644 --- a/tests/ComputeSharp.Tests.DeviceLost/DeviceDisposalTests.cs +++ b/tests/ComputeSharp.Tests.DeviceLost/DeviceDisposalTests.cs @@ -144,6 +144,7 @@ public partial class DeviceDisposalTests } [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] [AutoConstructor] private readonly partial struct InitializeShader : IComputeShader { @@ -177,6 +178,7 @@ public partial class DeviceDisposalTests } [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] private partial struct HelloWorldShader : IComputeShader { public float4 Execute() diff --git a/tests/ComputeSharp.Tests.DisableDynamicCompilation/DispatchTests.cs b/tests/ComputeSharp.Tests.DisableDynamicCompilation/DispatchTests.cs index b0d1ec55..b8cf0c02 100644 --- a/tests/ComputeSharp.Tests.DisableDynamicCompilation/DispatchTests.cs +++ b/tests/ComputeSharp.Tests.DisableDynamicCompilation/DispatchTests.cs @@ -32,6 +32,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(32, 1, 1)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ComputeShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -76,6 +77,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(8, 8, 1)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct PixelShader : IComputeShader { private readonly float b; diff --git a/tests/ComputeSharp.Tests.GlobalStatements/Program.cs b/tests/ComputeSharp.Tests.GlobalStatements/Program.cs index 33a9c0a1..6c0139b8 100644 --- a/tests/ComputeSharp.Tests.GlobalStatements/Program.cs +++ b/tests/ComputeSharp.Tests.GlobalStatements/Program.cs @@ -23,6 +23,7 @@ Console.WriteLine("Test passed successfully!"); [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] +[GeneratedComputeShaderDescriptor] public readonly partial struct ApplyFunctionShader : IComputeShader { private readonly ReadWriteBuffer sourceTexture; diff --git a/tests/ComputeSharp.Tests.Internals/ShaderDataLoaderTests.cs b/tests/ComputeSharp.Tests.Internals/ShaderDataLoaderTests.cs index 0562dc04..105203c4 100644 --- a/tests/ComputeSharp.Tests.Internals/ShaderDataLoaderTests.cs +++ b/tests/ComputeSharp.Tests.Internals/ShaderDataLoaderTests.cs @@ -11,6 +11,7 @@ public partial class ShaderDataLoaderTests { [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public partial struct CapturedResourceShader : IComputeShader { public ReadWriteBuffer _; @@ -46,6 +47,7 @@ public partial class ShaderDataLoaderTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public partial struct MultipleResourcesAndPrimitivesShader : IComputeShader { public ReadWriteBuffer _0; @@ -91,6 +93,7 @@ public partial class ShaderDataLoaderTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public partial struct ScalarAndVectorTypesShader : IComputeShader { public ReadWriteBuffer _; @@ -141,6 +144,7 @@ public partial class ShaderDataLoaderTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public partial struct ScalarVectorAndMatrixTypesShader : IComputeShader { public ReadWriteBuffer _; @@ -226,6 +230,7 @@ public partial class ShaderDataLoaderTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public partial struct FlatCustomTypeShader : IComputeShader { public ReadWriteBuffer _0; @@ -317,6 +322,7 @@ public partial class ShaderDataLoaderTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public partial struct NestedCustomTypesShader : IComputeShader { public ReadWriteBuffer _0; @@ -408,6 +414,7 @@ public partial class ShaderDataLoaderTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public partial struct AmbiguousNamesShader : IComputeShader { public ReadWriteBuffer a; diff --git a/tests/ComputeSharp.Tests/BufferTests.cs b/tests/ComputeSharp.Tests/BufferTests.cs index 6d6c3dcd..94a5e26b 100644 --- a/tests/ComputeSharp.Tests/BufferTests.cs +++ b/tests/ComputeSharp.Tests/BufferTests.cs @@ -279,6 +279,7 @@ public partial class BufferTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ConstantBufferKernel : IComputeShader { public readonly ConstantBuffer source; @@ -308,6 +309,7 @@ public partial class BufferTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyBufferKernel : IComputeShader { public readonly ReadOnlyBuffer source; @@ -337,6 +339,7 @@ public partial class BufferTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteBufferKernel : IComputeShader { public readonly ReadWriteBuffer source; @@ -373,6 +376,7 @@ public partial class BufferTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct DoublePrecisionSupportShader : IComputeShader { public readonly ReadWriteBuffer buffer; diff --git a/tests/ComputeSharp.Tests/ComputeContextTests.cs b/tests/ComputeSharp.Tests/ComputeContextTests.cs index adff51ed..4842b574 100644 --- a/tests/ComputeSharp.Tests/ComputeContextTests.cs +++ b/tests/ComputeSharp.Tests/ComputeContextTests.cs @@ -1295,6 +1295,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct OffsetComputeShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -1309,6 +1310,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ClearPixelShader : IComputeShader { /// @@ -1320,6 +1322,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ColorPixelShader : IComputeShader { public readonly float4 color; @@ -1333,6 +1336,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct LinearSampling2DPixelShader : IComputeShader { public readonly IReadOnlyTexture2D source; @@ -1346,6 +1350,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct LinearSampling3DComputeShader : IComputeShader { public readonly IReadOnlyTexture3D source; @@ -1365,6 +1370,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct LinearSamplingFromNormalized2DPixelShader : IComputeShader { public readonly IReadOnlyNormalizedTexture2D source; @@ -1378,6 +1384,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct CopyToOutputPixelShader : IComputeShader { public readonly IReadOnlyNormalizedTexture2D source; @@ -1391,6 +1398,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct InvertPixelShader : IComputeShader { public readonly IReadWriteNormalizedTexture2D source; @@ -1404,6 +1412,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct LinearSamplingFromNormalized3DComputeShader : IComputeShader { public readonly IReadOnlyNormalizedTexture3D source; @@ -1423,6 +1432,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Dotted2DPixelShader : IComputeShader { public readonly IReadWriteNormalizedTexture2D source; @@ -1452,6 +1462,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Dotted3DPixelShader : IComputeShader { public readonly IReadWriteNormalizedTexture3D source; @@ -1481,6 +1492,7 @@ public partial class ComputeContextTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ConvertToNonNormalized2DShader : IComputeShader { public readonly IReadOnlyNormalizedTexture2D source; diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index 88cf77f0..35c21b0b 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -20,6 +20,7 @@ + diff --git a/tests/ComputeSharp.Tests/DispatchTests.cs b/tests/ComputeSharp.Tests/DispatchTests.cs index 8c0f47f4..aab627ee 100644 --- a/tests/ComputeSharp.Tests/DispatchTests.cs +++ b/tests/ComputeSharp.Tests/DispatchTests.cs @@ -58,6 +58,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ThreadIdsShader : IComputeShader { public readonly ReadWriteTexture3D buffer; @@ -113,6 +114,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ThreadIdsNormalizedShader : IComputeShader { public readonly ReadWriteTexture3D buffer; @@ -155,6 +157,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct GroupIdsShader : IComputeShader { public readonly ReadWriteTexture3D buffer; @@ -186,6 +189,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(4, 15, 7)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct GroupSizeShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -219,6 +223,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(32, 1, 1)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct GridIdsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -251,6 +256,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct DispatchSizeShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -291,6 +297,7 @@ public partial class DispatchTests } [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct DispatchPixelShader : IComputeShader { public float4 Execute() @@ -321,6 +328,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct FixedGroupSharedPixelShader : IComputeShader { private readonly ReadWriteBuffer buffer; @@ -365,6 +373,7 @@ public partial class DispatchTests [AutoConstructor] [EmbeddedBytecode(32, 1, 1)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct DynamicGroupSharedPixelShader : IComputeShader { private readonly ReadWriteBuffer buffer; diff --git a/tests/ComputeSharp.Tests/IPixelShaderTests.cs b/tests/ComputeSharp.Tests/IPixelShaderTests.cs index 7fad3712..999378d1 100644 --- a/tests/ComputeSharp.Tests/IPixelShaderTests.cs +++ b/tests/ComputeSharp.Tests/IPixelShaderTests.cs @@ -36,6 +36,7 @@ public partial class IPixelShaderTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct EarlyReturnShader : IComputeShader { public float4 Execute() diff --git a/tests/ComputeSharp.Tests/InitializationTests.cs b/tests/ComputeSharp.Tests/InitializationTests.cs index 005502f9..28a868d1 100644 --- a/tests/ComputeSharp.Tests/InitializationTests.cs +++ b/tests/ComputeSharp.Tests/InitializationTests.cs @@ -74,6 +74,7 @@ public partial class InitializationTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct SampleShader : IComputeShader { public readonly ReadWriteBuffer buffer; diff --git a/tests/ComputeSharp.Tests/ResourceDimensionsTests.g.cs b/tests/ComputeSharp.Tests/ResourceDimensionsTests.g.cs index 426325ff..d5e05040 100644 --- a/tests/ComputeSharp.Tests/ResourceDimensionsTests.g.cs +++ b/tests/ComputeSharp.Tests/ResourceDimensionsTests.g.cs @@ -30,6 +30,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyBuffer_T1_AsReadOnlyBufferShader : IComputeShader { public readonly ReadOnlyBuffer source; @@ -63,6 +64,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteBuffer_T1_AsReadWriteBufferShader : IComputeShader { public readonly ReadWriteBuffer source; @@ -96,6 +98,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture1D_T1_AsReadOnlyTexture1DShader : IComputeShader { public readonly ReadOnlyTexture1D source; @@ -129,6 +132,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture1D_T1_AsReadWriteTexture1DShader : IComputeShader { public readonly ReadWriteTexture1D source; @@ -166,6 +170,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture1D_T1_AsIReadOnlyTexture1DShader : IComputeShader { public readonly IReadOnlyTexture1D source; @@ -199,6 +204,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture1D_T2_AsReadOnlyTexture1DShader : IComputeShader { public readonly ReadOnlyTexture1D source; @@ -232,6 +238,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture1D_T2_AsIReadOnlyNormalizedTexture1DShader : IComputeShader { public readonly IReadOnlyNormalizedTexture1D source; @@ -265,6 +272,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture1D_T2_AsReadWriteTexture1DShader : IComputeShader { public readonly ReadWriteTexture1D source; @@ -298,6 +306,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture1D_T2_AsIReadWriteNormalizedTexture1DShader : IComputeShader { public readonly IReadWriteNormalizedTexture1D source; @@ -331,6 +340,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture2D_T1_AsReadOnlyTexture2DShader : IComputeShader { public readonly ReadOnlyTexture2D source; @@ -365,6 +375,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture2D_T1_AsReadWriteTexture2DShader : IComputeShader { public readonly ReadWriteTexture2D source; @@ -403,6 +414,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture2D_T1_AsIReadOnlyTexture2DShader : IComputeShader { public readonly IReadOnlyTexture2D source; @@ -437,6 +449,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture2D_T2_AsReadOnlyTexture2DShader : IComputeShader { public readonly ReadOnlyTexture2D source; @@ -471,6 +484,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture2D_T2_AsIReadOnlyNormalizedTexture2DShader : IComputeShader { public readonly IReadOnlyNormalizedTexture2D source; @@ -505,6 +519,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture2D_T2_AsReadWriteTexture2DShader : IComputeShader { public readonly ReadWriteTexture2D source; @@ -539,6 +554,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture2D_T2_AsIReadWriteNormalizedTexture2DShader : IComputeShader { public readonly IReadWriteNormalizedTexture2D source; @@ -573,6 +589,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture3D_T1_AsReadOnlyTexture3DShader : IComputeShader { public readonly ReadOnlyTexture3D source; @@ -608,6 +625,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture3D_T1_AsReadWriteTexture3DShader : IComputeShader { public readonly ReadWriteTexture3D source; @@ -647,6 +665,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture3D_T1_AsIReadOnlyTexture3DShader : IComputeShader { public readonly IReadOnlyTexture3D source; @@ -682,6 +701,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture3D_T2_AsReadOnlyTexture3DShader : IComputeShader { public readonly ReadOnlyTexture3D source; @@ -717,6 +737,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture3D_T2_AsIReadOnlyNormalizedTexture3DShader : IComputeShader { public readonly IReadOnlyNormalizedTexture3D source; @@ -752,6 +773,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture3D_T2_AsReadWriteTexture3DShader : IComputeShader { public readonly ReadWriteTexture3D source; @@ -787,6 +809,7 @@ public partial class ResourceDimensionsTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture3D_T2_AsIReadWriteNormalizedTexture3DShader : IComputeShader { public readonly IReadWriteNormalizedTexture3D source; diff --git a/tests/ComputeSharp.Tests/ResourceDimensionsTests.tt b/tests/ComputeSharp.Tests/ResourceDimensionsTests.tt index b39c5b09..ad2d44f6 100644 --- a/tests/ComputeSharp.Tests/ResourceDimensionsTests.tt +++ b/tests/ComputeSharp.Tests/ResourceDimensionsTests.tt @@ -133,6 +133,7 @@ foreach (var pair in typesMap) [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct <#=testMethodName#>Shader : IComputeShader { public readonly <#=shaderResourceType#> source; diff --git a/tests/ComputeSharp.Tests/ShaderCompilerTests.cs b/tests/ComputeSharp.Tests/ShaderCompilerTests.cs index b44ddc23..ca4f35b0 100644 --- a/tests/ComputeSharp.Tests/ShaderCompilerTests.cs +++ b/tests/ComputeSharp.Tests/ShaderCompilerTests.cs @@ -19,6 +19,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct ReservedKeywordsShader : IComputeShader { public readonly ReadWriteBuffer row_major; @@ -55,6 +56,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct ReservedKeywordsInCustomTypesShader : IComputeShader { public readonly ReadWriteBuffer row_major; @@ -83,6 +85,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct ReservedKeywordsFromHlslTypesAndBuiltInValuesShader : IComputeShader { public readonly ReadWriteBuffer fragmentKeyword; @@ -125,6 +128,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct ReservedKeywordsPrecompiledShader : IComputeShader { public readonly ReadWriteBuffer row_major; @@ -162,6 +166,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct SpecialTypeAsReturnTypeShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -184,6 +189,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct LocalFunctionInExternalMethodsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -216,6 +222,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct CapturedNestedStructTypeShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -236,6 +243,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct ExternalStructTypeShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -258,6 +266,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct OutOfOrderMethodsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -294,6 +303,7 @@ namespace ComputeSharp.Tests } [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] public readonly partial struct StatelessPixelShader : IComputeShader { /// @@ -305,6 +315,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct LoopWithVarCounterShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -335,6 +346,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct DoublePrecisionSupportShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -355,6 +367,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct FieldAccessWithThisExpressionShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -382,6 +395,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ComputeShaderWithInheritedShaderInterfaceShader : IMyBaseShader { int IMyBaseShader.A => 42; @@ -416,6 +430,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct PixelShaderWithInheritedShaderInterfaceShader : IMyBaseShader { int IMyBaseShader.A => 42; @@ -465,6 +480,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct StructInstanceMethodsShader : IComputeShader { public readonly MyStructTypeA a; @@ -499,6 +515,7 @@ namespace ComputeSharp.Tests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct PixelShaderWithScopedParameterInMethodsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -537,6 +554,7 @@ namespace ExternalNamespace { [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct UserDefinedTypeShader : IComputeShader { public readonly ReadWriteBuffer buffer; diff --git a/tests/ComputeSharp.Tests/ShaderMembersTests.cs b/tests/ComputeSharp.Tests/ShaderMembersTests.cs index b48a2840..f8be121f 100644 --- a/tests/ComputeSharp.Tests/ShaderMembersTests.cs +++ b/tests/ComputeSharp.Tests/ShaderMembersTests.cs @@ -32,6 +32,7 @@ public partial class ShaderMembersTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct StaticConstantsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -72,6 +73,7 @@ public partial class ShaderMembersTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct GlobalVariableShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -107,6 +109,7 @@ public partial class ShaderMembersTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct BoolInstanceFieldsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -171,6 +174,7 @@ public partial class ShaderMembersTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct BoolInstanceFieldInCustomStructShader : IComputeShader { public readonly ReadWriteBuffer buffer; diff --git a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs index 034bfaf8..efb9bfe5 100644 --- a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs +++ b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs @@ -53,6 +53,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct NanAndInfiniteShader : IComputeShader { public readonly ReadWriteBuffer buffer1; @@ -114,6 +115,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ModAndComparisonOperatorsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -176,6 +178,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct BitwiseOperatorsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -229,6 +232,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct BooleanOperatorsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -279,6 +283,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ToBooleanConversionIntrinsicsShader : IComputeShader { public readonly ReadOnlyBuffer buffer1; @@ -363,6 +368,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct FromBooleanConversionIntrinsicsShader : IComputeShader { public readonly ReadOnlyBuffer source; @@ -446,6 +452,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ConstantsInShaderConstantFieldsShader : IComputeShader { public const float rot_angle = (float)(137.2 / 180.0 * Math.PI); @@ -524,6 +531,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct DoubleConstantsInShaderConstantFieldsShader : IComputeShader { public const float DoubleToFloatConstant = (float)(1 / 255.0); @@ -586,6 +594,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct InterlockedOperationsShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -631,6 +640,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct GlslStyleMulOperatorsShader : IComputeShader { public readonly ReadOnlyBuffer source1; @@ -772,6 +782,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct CustomStructTypeShader : IComputeShader { public readonly ReadWriteBuffer source; @@ -810,6 +821,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct MiscHlslIntrinsicsShader : IComputeShader { public readonly ReadWriteBuffer buffer1; @@ -853,6 +865,7 @@ public partial class ShaderRewriterTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadonlyModifierInMethodsShader : IComputeShader { private readonly ReadWriteBuffer buffer; diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/ColorfulInfinity.cs b/tests/ComputeSharp.Tests/Shaders/Compute/ColorfulInfinity.cs index 07a6b4f5..add82728 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/ColorfulInfinity.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/ColorfulInfinity.cs @@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct ColorfulInfinity : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/ContouredLayers.cs b/tests/ComputeSharp.Tests/Shaders/Compute/ContouredLayers.cs index 267b42c7..2c5f03ad 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/ContouredLayers.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/ContouredLayers.cs @@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct ContouredLayers : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/ExtrudedTruchetPattern.cs b/tests/ComputeSharp.Tests/Shaders/Compute/ExtrudedTruchetPattern.cs index d6fc5a22..0af21b02 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/ExtrudedTruchetPattern.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/ExtrudedTruchetPattern.cs @@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct ExtrudedTruchetPattern : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/FourColorGradient.cs b/tests/ComputeSharp.Tests/Shaders/Compute/FourColorGradient.cs index 781c3977..bc869bf0 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/FourColorGradient.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/FourColorGradient.cs @@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct FourColorGradient : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/FractalTiling.cs b/tests/ComputeSharp.Tests/Shaders/Compute/FractalTiling.cs index 63b95527..579e923f 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/FractalTiling.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/FractalTiling.cs @@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct FractalTiling : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/HelloWorld.cs b/tests/ComputeSharp.Tests/Shaders/Compute/HelloWorld.cs index 43c0573f..78a069f3 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/HelloWorld.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/HelloWorld.cs @@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct HelloWorld : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/MengerJourney.cs b/tests/ComputeSharp.Tests/Shaders/Compute/MengerJourney.cs index eddb7030..948696ec 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/MengerJourney.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/MengerJourney.cs @@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct MengerJourney : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/Octagrams.cs b/tests/ComputeSharp.Tests/Shaders/Compute/Octagrams.cs index 6d82537d..b4c27361 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/Octagrams.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/Octagrams.cs @@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct Octagrams : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/ProteanClouds.cs b/tests/ComputeSharp.Tests/Shaders/Compute/ProteanClouds.cs index 837d8c33..f9c22af0 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/ProteanClouds.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/ProteanClouds.cs @@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct ProteanClouds : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/PyramidPattern.cs b/tests/ComputeSharp.Tests/Shaders/Compute/PyramidPattern.cs index dd78a284..fc6c30e9 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/PyramidPattern.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/PyramidPattern.cs @@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct PyramidPattern : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/TerracedHills.cs b/tests/ComputeSharp.Tests/Shaders/Compute/TerracedHills.cs index 4b70114c..4e40ad21 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/TerracedHills.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/TerracedHills.cs @@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct TerracedHills : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/TriangleGridContouring.cs b/tests/ComputeSharp.Tests/Shaders/Compute/TriangleGridContouring.cs index 64df5c0f..de1e0b2c 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/TriangleGridContouring.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/TriangleGridContouring.cs @@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct TriangleGridContouring : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Shaders/Compute/TwoTiledTruchet.cs b/tests/ComputeSharp.Tests/Shaders/Compute/TwoTiledTruchet.cs index ae6ee711..7583d288 100644 --- a/tests/ComputeSharp.Tests/Shaders/Compute/TwoTiledTruchet.cs +++ b/tests/ComputeSharp.Tests/Shaders/Compute/TwoTiledTruchet.cs @@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute; /// [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] +[GeneratedComputeShaderDescriptor] internal readonly partial struct TwoTiledTruchet : IComputeShader { /// diff --git a/tests/ComputeSharp.Tests/Texture1DTests.Pixels.cs b/tests/ComputeSharp.Tests/Texture1DTests.Pixels.cs index 014dec14..2b588302 100644 --- a/tests/ComputeSharp.Tests/Texture1DTests.Pixels.cs +++ b/tests/ComputeSharp.Tests/Texture1DTests.Pixels.cs @@ -90,6 +90,7 @@ partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] public readonly partial struct SamplingComputeShader : IComputeShader { public readonly IReadOnlyNormalizedTexture1D source; diff --git a/tests/ComputeSharp.Tests/Texture1DTests.Pixels.g.cs b/tests/ComputeSharp.Tests/Texture1DTests.Pixels.g.cs index 4a791f90..0fe24a5f 100644 --- a/tests/ComputeSharp.Tests/Texture1DTests.Pixels.g.cs +++ b/tests/ComputeSharp.Tests/Texture1DTests.Pixels.g.cs @@ -70,6 +70,7 @@ partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Bgra32_Float4 : IComputeShader { public readonly ReadOnlyTexture1D source; @@ -83,6 +84,7 @@ partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_R16_float : IComputeShader { public readonly ReadOnlyTexture1D source; @@ -96,6 +98,7 @@ partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_R8_float : IComputeShader { public readonly ReadOnlyTexture1D source; @@ -109,6 +112,7 @@ partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rg16_Float2 : IComputeShader { public readonly ReadOnlyTexture1D source; @@ -122,6 +126,7 @@ partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rg32_Float2 : IComputeShader { public readonly ReadOnlyTexture1D source; @@ -135,6 +140,7 @@ partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rgba32_Float4 : IComputeShader { public readonly ReadOnlyTexture1D source; @@ -148,6 +154,7 @@ partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rgba64_Float4 : IComputeShader { public readonly ReadOnlyTexture1D source; diff --git a/tests/ComputeSharp.Tests/Texture1DTests.Pixels.tt b/tests/ComputeSharp.Tests/Texture1DTests.Pixels.tt index 10c63aeb..a0aa73c8 100644 --- a/tests/ComputeSharp.Tests/Texture1DTests.Pixels.tt +++ b/tests/ComputeSharp.Tests/Texture1DTests.Pixels.tt @@ -66,6 +66,7 @@ foreach (var (t, tPixel) in EnumerateTypes()) [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_<#=t#>_<#=tPixel#> : IComputeShader { public readonly ReadOnlyTexture1D<<#=t#>, <#=tPixel#>> source; diff --git a/tests/ComputeSharp.Tests/Texture1DTests.cs b/tests/ComputeSharp.Tests/Texture1DTests.cs index ef323c0b..62ad9e0b 100644 --- a/tests/ComputeSharp.Tests/Texture1DTests.cs +++ b/tests/ComputeSharp.Tests/Texture1DTests.cs @@ -364,6 +364,7 @@ public partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture1DKernel : IComputeShader { public readonly ReadOnlyTexture1D source; @@ -395,6 +396,7 @@ public partial class Texture1DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture1DKernel : IComputeShader { public readonly ReadWriteTexture1D source; diff --git a/tests/ComputeSharp.Tests/Texture2DTests.Pixels.cs b/tests/ComputeSharp.Tests/Texture2DTests.Pixels.cs index dbc26b43..d018f337 100644 --- a/tests/ComputeSharp.Tests/Texture2DTests.Pixels.cs +++ b/tests/ComputeSharp.Tests/Texture2DTests.Pixels.cs @@ -73,6 +73,7 @@ partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] public readonly partial struct SamplingComputeShader : IComputeShader { public readonly IReadOnlyNormalizedTexture2D source; @@ -107,6 +108,7 @@ partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] public readonly partial struct SamplingPixelShader : IComputeShader { public readonly IReadOnlyNormalizedTexture2D texture; diff --git a/tests/ComputeSharp.Tests/Texture2DTests.Pixels.g.cs b/tests/ComputeSharp.Tests/Texture2DTests.Pixels.g.cs index 51fd801e..21eba694 100644 --- a/tests/ComputeSharp.Tests/Texture2DTests.Pixels.g.cs +++ b/tests/ComputeSharp.Tests/Texture2DTests.Pixels.g.cs @@ -70,6 +70,7 @@ partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Bgra32_Float4 : IComputeShader { public readonly ReadOnlyTexture2D source; @@ -83,6 +84,7 @@ partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_R16_float : IComputeShader { public readonly ReadOnlyTexture2D source; @@ -96,6 +98,7 @@ partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_R8_float : IComputeShader { public readonly ReadOnlyTexture2D source; @@ -109,6 +112,7 @@ partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rg16_Float2 : IComputeShader { public readonly ReadOnlyTexture2D source; @@ -122,6 +126,7 @@ partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rg32_Float2 : IComputeShader { public readonly ReadOnlyTexture2D source; @@ -135,6 +140,7 @@ partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rgba32_Float4 : IComputeShader { public readonly ReadOnlyTexture2D source; @@ -148,6 +154,7 @@ partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rgba64_Float4 : IComputeShader { public readonly ReadOnlyTexture2D source; diff --git a/tests/ComputeSharp.Tests/Texture2DTests.Pixels.tt b/tests/ComputeSharp.Tests/Texture2DTests.Pixels.tt index f5577e31..d7330a3a 100644 --- a/tests/ComputeSharp.Tests/Texture2DTests.Pixels.tt +++ b/tests/ComputeSharp.Tests/Texture2DTests.Pixels.tt @@ -66,6 +66,7 @@ foreach (var (t, tPixel) in EnumerateTypes()) [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_<#=t#>_<#=tPixel#> : IComputeShader { public readonly ReadOnlyTexture2D<<#=t#>, <#=tPixel#>> source; diff --git a/tests/ComputeSharp.Tests/Texture2DTests.cs b/tests/ComputeSharp.Tests/Texture2DTests.cs index 5cf79486..a8e14b88 100644 --- a/tests/ComputeSharp.Tests/Texture2DTests.cs +++ b/tests/ComputeSharp.Tests/Texture2DTests.cs @@ -429,6 +429,7 @@ public partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture2DKernel : IComputeShader { public readonly ReadOnlyTexture2D source; @@ -460,6 +461,7 @@ public partial class Texture2DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture2DKernel : IComputeShader { public readonly ReadWriteTexture2D source; diff --git a/tests/ComputeSharp.Tests/Texture3DTests.Pixels.g.cs b/tests/ComputeSharp.Tests/Texture3DTests.Pixels.g.cs index f2601e67..b26c60e8 100644 --- a/tests/ComputeSharp.Tests/Texture3DTests.Pixels.g.cs +++ b/tests/ComputeSharp.Tests/Texture3DTests.Pixels.g.cs @@ -70,6 +70,7 @@ partial class Texture3DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Bgra32_Float4 : IComputeShader { public readonly ReadOnlyTexture3D source; @@ -83,6 +84,7 @@ partial class Texture3DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_R16_float : IComputeShader { public readonly ReadOnlyTexture3D source; @@ -96,6 +98,7 @@ partial class Texture3DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_R8_float : IComputeShader { public readonly ReadOnlyTexture3D source; @@ -109,6 +112,7 @@ partial class Texture3DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rg16_Float2 : IComputeShader { public readonly ReadOnlyTexture3D source; @@ -122,6 +126,7 @@ partial class Texture3DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rg32_Float2 : IComputeShader { public readonly ReadOnlyTexture3D source; @@ -135,6 +140,7 @@ partial class Texture3DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rgba32_Float4 : IComputeShader { public readonly ReadOnlyTexture3D source; @@ -148,6 +154,7 @@ partial class Texture3DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_Rgba64_Float4 : IComputeShader { public readonly ReadOnlyTexture3D source; diff --git a/tests/ComputeSharp.Tests/Texture3DTests.Pixels.tt b/tests/ComputeSharp.Tests/Texture3DTests.Pixels.tt index f18c826b..07a5109b 100644 --- a/tests/ComputeSharp.Tests/Texture3DTests.Pixels.tt +++ b/tests/ComputeSharp.Tests/Texture3DTests.Pixels.tt @@ -66,6 +66,7 @@ foreach (var (t, tPixel) in EnumerateTypes()) [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct Shader_Unorm_<#=t#>_<#=tPixel#> : IComputeShader { public readonly ReadOnlyTexture3D<<#=t#>, <#=tPixel#>> source; diff --git a/tests/ComputeSharp.Tests/Texture3DTests.cs b/tests/ComputeSharp.Tests/Texture3DTests.cs index faa111a4..79b5c025 100644 --- a/tests/ComputeSharp.Tests/Texture3DTests.cs +++ b/tests/ComputeSharp.Tests/Texture3DTests.cs @@ -534,6 +534,7 @@ public partial class Texture3DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadOnlyTexture3DKernel : IComputeShader { public readonly ReadOnlyTexture3D source; @@ -565,6 +566,7 @@ public partial class Texture3DTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct ReadWriteTexture3DKernel : IComputeShader { public readonly ReadWriteTexture3D source; diff --git a/tests/ComputeSharp.Tests/ThreadGroupSizeTests.cs b/tests/ComputeSharp.Tests/ThreadGroupSizeTests.cs index b36df45e..58aa2a45 100644 --- a/tests/ComputeSharp.Tests/ThreadGroupSizeTests.cs +++ b/tests/ComputeSharp.Tests/ThreadGroupSizeTests.cs @@ -29,6 +29,7 @@ public partial class ThreadGroupSizeTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.X)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct DispatchXShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -41,6 +42,7 @@ public partial class ThreadGroupSizeTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XY)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct DispatchXYShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -53,6 +55,7 @@ public partial class ThreadGroupSizeTests [AutoConstructor] [EmbeddedBytecode(DispatchAxis.XYZ)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct DispatchXYZShader : IComputeShader { public readonly ReadWriteBuffer buffer; @@ -65,6 +68,7 @@ public partial class ThreadGroupSizeTests [AutoConstructor] [EmbeddedBytecode(11, 14, 6)] + [GeneratedComputeShaderDescriptor] internal readonly partial struct DispatchCustomShader : IComputeShader { public readonly ReadWriteBuffer buffer;