From 933dca22ed8d82a23b08159c04e4abceee42ac6b Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 1 Oct 2023 14:09:43 +0200 Subject: [PATCH] Rename to D2DGeneratedPixelShaderDescriptorAttribute --- .../ColorfulInfinity.cs | 2 +- .../ContouredLayers.cs | 2 +- .../FractalTiling.cs | 2 +- .../HelloWorld.cs | 2 +- .../MengerJourney.cs | 2 +- .../Octagrams.cs | 2 +- .../ProteanClouds.cs | 2 +- .../PyramidPattern.cs | 2 +- .../TerracedHills.cs | 2 +- .../TriangleGridContouring.cs | 2 +- .../TwoTiledTruchet.cs | 2 +- .../ID2D1ShaderGenerator.cs | 2 +- ...eneratedPixelShaderDescriptorAttribute.cs} | 8 ++--- .../D2D1PixelShaderTests.cs | 8 ++--- .../D2D1EffectRegistrationDataTests.cs | 6 ++-- .../D2D1PixelShaderEffectTests.cs | 16 ++++----- .../D2D1PixelShaderTests.cs | 36 +++++++++---------- .../D2D1ReflectionServicesTests.cs | 4 +-- .../D2D1ResourceTextureManagerTests.cs | 14 ++++---- ...itializedFieldDiagnosticSuppressorTests.cs | 2 +- .../D2D1TransformMapperTests.cs | 4 +-- .../Effects/BokehBlurEffect.cs | 8 ++--- .../Effects/CheckerboardClipEffect.cs | 2 +- .../Effects/InvertEffect.cs | 2 +- .../Effects/InvertWithThresholdEffect.cs | 2 +- .../Effects/PixelateEffect.cs | 4 +-- .../Effects/ZonePlateEffect.cs | 2 +- .../CanvasEffectTests.cs | 2 +- .../PixelShaderEffectTests.cs | 10 +++--- 29 files changed, 77 insertions(+), 77 deletions(-) rename src/ComputeSharp.D2D1/Attributes/{D2DGeneratedShaderMarshallerAttribute.cs => D2DGeneratedPixelShaderDescriptorAttribute.cs} (65%) diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ColorfulInfinity.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ColorfulInfinity.cs index aebb80fb..84671219 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ColorfulInfinity.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ColorfulInfinity.cs @@ -11,7 +11,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct ColorfulInfinity : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ContouredLayers.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ContouredLayers.cs index 1a7fa26c..d2cf799e 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ContouredLayers.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ContouredLayers.cs @@ -10,7 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct ContouredLayers : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/FractalTiling.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/FractalTiling.cs index fab955e8..9b3e4995 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/FractalTiling.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/FractalTiling.cs @@ -11,7 +11,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct FractalTiling : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/HelloWorld.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/HelloWorld.cs index 2332ba77..f6970705 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/HelloWorld.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/HelloWorld.cs @@ -9,7 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct HelloWorld : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/MengerJourney.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/MengerJourney.cs index 410b302a..ef1a0d13 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/MengerJourney.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/MengerJourney.cs @@ -10,7 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct MengerJourney : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/Octagrams.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/Octagrams.cs index be787a78..2e83fe79 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/Octagrams.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/Octagrams.cs @@ -10,7 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct Octagrams : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ProteanClouds.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ProteanClouds.cs index 068914f4..00527c5c 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ProteanClouds.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/ProteanClouds.cs @@ -11,7 +11,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct ProteanClouds : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/PyramidPattern.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/PyramidPattern.cs index 4564cb0c..93bff4b0 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/PyramidPattern.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/PyramidPattern.cs @@ -11,7 +11,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct PyramidPattern : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TerracedHills.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TerracedHills.cs index 951a4971..b45fe7c1 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TerracedHills.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TerracedHills.cs @@ -10,7 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct TerracedHills : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TriangleGridContouring.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TriangleGridContouring.cs index 24bec468..f2d3b62a 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TriangleGridContouring.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TriangleGridContouring.cs @@ -10,7 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct TriangleGridContouring : ID2D1PixelShader { diff --git a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TwoTiledTruchet.cs b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TwoTiledTruchet.cs index 2deb4d94..4e61a9a1 100644 --- a/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TwoTiledTruchet.cs +++ b/samples/ComputeSharp.SwapChain.Shaders.D2D1.Shared/TwoTiledTruchet.cs @@ -10,7 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1; [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct TwoTiledTruchet : ID2D1PixelShader { diff --git a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs index 3b10c6fc..50a3fd9e 100644 --- a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs +++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.cs @@ -22,7 +22,7 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator IncrementalValuesProvider shaderInfo = context.SyntaxProvider .ForAttributeWithMetadataName( - "ComputeSharp.D2D1.D2DGeneratedShaderMarshallerAttribute", + "ComputeSharp.D2D1.D2DGeneratedPixelShaderDescriptorAttribute", static (node, _) => node.IsTypeDeclarationWithOrPotentiallyWithBaseTypes(), static (context, token) => { diff --git a/src/ComputeSharp.D2D1/Attributes/D2DGeneratedShaderMarshallerAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DGeneratedPixelShaderDescriptorAttribute.cs similarity index 65% rename from src/ComputeSharp.D2D1/Attributes/D2DGeneratedShaderMarshallerAttribute.cs rename to src/ComputeSharp.D2D1/Attributes/D2DGeneratedPixelShaderDescriptorAttribute.cs index 7240d9f8..da27d2fe 100644 --- a/src/ComputeSharp.D2D1/Attributes/D2DGeneratedShaderMarshallerAttribute.cs +++ b/src/ComputeSharp.D2D1/Attributes/D2DGeneratedPixelShaderDescriptorAttribute.cs @@ -3,22 +3,22 @@ using System; namespace ComputeSharp.D2D1; /// -/// An attribute that indicates that a given D2D1 shader should have its associated marshalling code being generated. +/// An attribute that indicates that a given D2D1 shader should have its associated descriptor code being generated. /// /// This attribute can be used on shader types that are declared as : /// -/// [D2DGeneratedShaderMarshaller] +/// [D2DGeneratedPixelShaderDescriptor] /// partial struct MyShader : ID2D1PixelShader /// { /// } /// /// /// -/// When a shader is annotated with , the source generator will also add +/// When a shader is annotated with , the source generator will also add /// to its implemented interfaces, and implement its APIs automatically. /// /// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)] -public sealed class D2DGeneratedShaderMarshallerAttribute : Attribute +public sealed class D2DGeneratedPixelShaderDescriptorAttribute : Attribute { } \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/D2D1PixelShaderTests.cs b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/D2D1PixelShaderTests.cs index 6e912aa8..e84fdad4 100644 --- a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/D2D1PixelShaderTests.cs +++ b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/D2D1PixelShaderTests.cs @@ -49,7 +49,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(0)] [D2DInputSimple(1)] [D2DInputSimple(2)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ShaderWithNoCompileAttributes : ID2D1PixelShader { public float4 Execute() @@ -95,7 +95,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(1)] [D2DInputSimple(2)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ShaderWithOverriddenProfile : ID2D1PixelShader { public float4 Execute() @@ -141,7 +141,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(1)] [D2DInputSimple(2)] [D2DCompileOptions(D2D1CompileOptions.Debug | D2D1CompileOptions.AvoidFlowControl | D2D1CompileOptions.PartialPrecision)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ShaderWithOverriddenOptions : ID2D1PixelShader { public float4 Execute() @@ -178,7 +178,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(2)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DCompileOptions(D2D1CompileOptions.Debug | D2D1CompileOptions.AvoidFlowControl | D2D1CompileOptions.PartialPrecision)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ShaderWithOverriddenProfileAndOptions : ID2D1PixelShader { public float4 Execute() diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs index 562ee092..c0cd430a 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs @@ -51,7 +51,7 @@ public partial class D2D1EffectRegistrationDataTests [D2DInputCount(2)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private readonly partial struct TestRegistrationBlobShader : ID2D1PixelShader { @@ -97,7 +97,7 @@ public partial class D2D1EffectRegistrationDataTests [D2DEffectDescription("A test effect with some custom metadata")] [D2DEffectCategory("Test effects")] [D2DEffectAuthor("Bob Ross")] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private readonly partial struct TestRegistrationBlobWithCustomMetadataShader : ID2D1PixelShader { @@ -194,7 +194,7 @@ public partial class D2D1EffectRegistrationDataTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private readonly partial struct TestRegistrationBlobWithResourceTextures : ID2D1PixelShader { diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderEffectTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderEffectTests.cs index 8a0eee98..2659b325 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderEffectTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderEffectTests.cs @@ -120,7 +120,7 @@ public partial class D2D1PixelShaderEffectTests [D2DInputCount(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct NullConstantBufferShader : ID2D1PixelShader { @@ -152,7 +152,7 @@ public partial class D2D1PixelShaderEffectTests [D2DInputCount(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct ConstantBufferSizeTestShader : ID2D1PixelShader { @@ -187,7 +187,7 @@ public partial class D2D1PixelShaderEffectTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct ShaderWithDefaultEffectId : ID2D1PixelShader { public float4 Execute() @@ -197,7 +197,7 @@ public partial class D2D1PixelShaderEffectTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct ShaderWithDefaultEffectId2 : ID2D1PixelShader { public float4 Execute() @@ -221,7 +221,7 @@ public partial class D2D1PixelShaderEffectTests [D2DInputCount(0)] [D2DEffectId("8E1F7F49-EF0D-4242-8912-08ADA36AB4EC")] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct ShaderWithExplicitEffectId : ID2D1PixelShader { public float4 Execute() @@ -240,7 +240,7 @@ public partial class D2D1PixelShaderEffectTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct ShaderWithDefaultEffectDisplayName : ID2D1PixelShader { public float4 Execute() @@ -260,7 +260,7 @@ public partial class D2D1PixelShaderEffectTests [D2DInputCount(0)] [D2DEffectDisplayName("Fancy blur")] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct ShaderWithExplicitEffectDisplayName1 : ID2D1PixelShader { public float4 Execute() @@ -283,7 +283,7 @@ public partial class D2D1PixelShaderEffectTests [D2DEffectDescription("A test effect with \nsome custom metadata")] [D2DEffectCategory("Test effects!")] [D2DEffectAuthor("Bob \r\nRoss")] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct ShaderWithExplicitEffectDisplayName2 : ID2D1PixelShader { public float4 Execute() diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs index d710f7a4..e66de1f3 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs @@ -66,7 +66,7 @@ public partial class D2D1PixelShaderTests [D2DInputComplex(3)] [D2DInputComplex(5)] [D2DInputSimple(6)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] partial struct ShaderWithMultipleInputs : ID2D1PixelShader { public Float4 Execute() @@ -94,7 +94,7 @@ public partial class D2D1PixelShaderTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] partial struct EmptyShader : ID2D1PixelShader { public Float4 Execute() @@ -105,7 +105,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DOutputBuffer(D2D1BufferPrecision.UInt16Normalized)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] partial struct OnlyBufferPrecisionShader : ID2D1PixelShader { public Float4 Execute() @@ -116,7 +116,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DOutputBuffer(D2D1ChannelDepth.Four)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] partial struct OnlyChannelDepthShader : ID2D1PixelShader { public Float4 Execute() @@ -127,7 +127,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DOutputBuffer(D2D1BufferPrecision.UInt8NormalizedSrgb, D2D1ChannelDepth.One)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] partial struct CustomBufferOutputShader : ID2D1PixelShader { public Float4 Execute() @@ -194,7 +194,7 @@ public partial class D2D1PixelShaderTests [D2DInputDescription(2, D2D1Filter.MinLinearMagPointMinLinear, LevelOfDetailCount = 4)] [D2DInputDescription(5, D2D1Filter.MinMagPointMipLinear)] [D2DInputDescription(6, D2D1Filter.MinPointMagMipLinear, LevelOfDetailCount = 3)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] partial struct ShaderWithInputDescriptions : ID2D1PixelShader { public Float4 Execute() @@ -255,7 +255,7 @@ public partial class D2D1PixelShaderTests [D2DInputComplex(1)] [D2DInputComplex(3)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] partial struct ShaderWithoutResourceTextures : ID2D1PixelShader { @@ -267,7 +267,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(0)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] partial struct ShaderWithJustOneResourceTextures : ID2D1PixelShader { @@ -286,7 +286,7 @@ public partial class D2D1PixelShaderTests [D2DInputComplex(1)] [D2DInputComplex(3)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] partial struct ShaderWithResourceTextures : ID2D1PixelShader { @@ -331,7 +331,7 @@ public partial class D2D1PixelShaderTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ShaderWithoutEmbeddedBytecode : ID2D1PixelShader { public float4 Execute() @@ -403,7 +403,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(1)] [D2DInputSimple(2)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ShaderWithEmbeddedBytecode : ID2D1PixelShader { public float4 Execute() @@ -453,7 +453,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(2)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)] [D2DCompileOptions(D2D1CompileOptions.IeeeStrictness | D2D1CompileOptions.OptimizationLevel2)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ShaderWithEmbeddedBytecodeAndCompileOptions : ID2D1PixelShader { public float4 Execute() @@ -485,7 +485,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(1)] [D2DInputSimple(0)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct SimpleShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader { public float4 Execute() @@ -497,7 +497,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(1)] [D2DInputComplex(0)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ComplexShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader { public float4 Execute() @@ -523,7 +523,7 @@ public partial class D2D1PixelShaderTests [D2DInputCount(1)] [D2DInputSimple(0)] [D2DCompileOptions(D2D1CompileOptions.OptimizationLevel2 | D2D1CompileOptions.IeeeStrictness)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ShaderWithExplicitCompileOptionsAndNoShaderProfile : ID2D1PixelShader { public float4 Execute() @@ -572,7 +572,7 @@ public partial class D2D1PixelShaderTests [D2DInputSimple(0)] [D2DInputDescription(0, D2D1Filter.MinMagMipPoint)] [D2DPixelOptions(D2D1PixelOptions.TrivialSampling)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ShaderWithNoCapturedValues : ID2D1PixelShader { public float4 Execute() @@ -820,7 +820,7 @@ public partial class D2D1PixelShaderTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private readonly partial struct ShaderWithScalarVectorAndMatrixTypes : ID2D1PixelShader { @@ -913,7 +913,7 @@ public partial class D2D1PixelShaderTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private readonly partial struct ShaderWithScalarVectorAndMatrixTypesInNestedStructs : ID2D1PixelShader { diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs index 31f2ef8c..df51cd07 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs @@ -60,7 +60,7 @@ public partial class D2D1ReflectionServicesTests [D2DInputComplex(2)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader41)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ReflectedShader : ID2D1PixelShader { private readonly float2 offset; @@ -120,7 +120,7 @@ public partial class D2D1ReflectionServicesTests [D2DInputCount(1)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private readonly partial struct ReflectedShaderWithDoubleOperations : ID2D1PixelShader { private readonly double amount; diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureManagerTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureManagerTests.cs index be8f5f88..67cdca7d 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureManagerTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureManagerTests.cs @@ -171,7 +171,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct DummyShaderWithResourceTexture : ID2D1PixelShader { [D2DResourceTextureIndex(0)] @@ -460,7 +460,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct IndexFrom2DResourceTextureShader : ID2D1PixelShader { [D2DResourceTextureIndex(0)] @@ -535,7 +535,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct IndexFrom3DResourceTextureShader : ID2D1PixelShader { @@ -623,7 +623,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct CopyFromResourceTexture1DShader : ID2D1PixelShader { @@ -721,7 +721,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct CopyFromResourceTexture2DShader : ID2D1PixelShader { @@ -828,7 +828,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct CopyFromResourceTexture3DShader : ID2D1PixelShader { @@ -874,7 +874,7 @@ public partial class D2D1ResourceTextureManagerTests [D2DInputCount(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct NullResourceTextureShader : ID2D1PixelShader { [D2DResourceTextureIndex(0)] diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureUninitializedFieldDiagnosticSuppressorTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureUninitializedFieldDiagnosticSuppressorTests.cs index 0d05dc10..16a613e6 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureUninitializedFieldDiagnosticSuppressorTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1ResourceTextureUninitializedFieldDiagnosticSuppressorTests.cs @@ -6,7 +6,7 @@ namespace ComputeSharp.D2D1.Tests; internal sealed partial class D2D1ResourceTextureUninitializedFieldDiagnosticSuppressorTests { [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] public readonly partial struct MyShader : ID2D1PixelShader { // This test just needs to validate the project builds fine with this shader. diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1TransformMapperTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1TransformMapperTests.cs index 0c8a37e5..e8c8d873 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1TransformMapperTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1TransformMapperTests.cs @@ -198,7 +198,7 @@ public partial class D2D1TransformMapperTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct DummyShader : ID2D1PixelShader { public float4 Execute() @@ -288,7 +288,7 @@ public partial class D2D1TransformMapperTests [D2DInputCount(1)] [D2DInputSimple(0)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct ShaderWithDispatchArea : ID2D1PixelShader { diff --git a/tests/ComputeSharp.D2D1.Tests/Effects/BokehBlurEffect.cs b/tests/ComputeSharp.D2D1.Tests/Effects/BokehBlurEffect.cs index 16cca7ff..a45388ea 100644 --- a/tests/ComputeSharp.D2D1.Tests/Effects/BokehBlurEffect.cs +++ b/tests/ComputeSharp.D2D1.Tests/Effects/BokehBlurEffect.cs @@ -509,7 +509,7 @@ public sealed partial class BokehBlurEffect [D2DOutputBuffer(D2D1BufferPrecision.Float32, D2D1ChannelDepth.Four)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] public readonly partial struct Shader : ID2D1PixelShader { @@ -559,7 +559,7 @@ public sealed partial class BokehBlurEffect [D2DOutputBuffer(D2D1BufferPrecision.Float32, D2D1ChannelDepth.Four)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DRequiresScenePosition] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] public readonly partial struct Shader : ID2D1PixelShader { @@ -604,7 +604,7 @@ public sealed partial class BokehBlurEffect [D2DInputDescription(0, D2D1Filter.MinMagMipPoint)] [D2DOutputBuffer(D2D1BufferPrecision.Float32, D2D1ChannelDepth.Four)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct GammaHighlight : ID2D1PixelShader { @@ -627,7 +627,7 @@ public sealed partial class BokehBlurEffect [D2DInputDescription(0, D2D1Filter.MinMagMipPoint)] [D2DOutputBuffer(D2D1BufferPrecision.Float32, D2D1ChannelDepth.Four)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct InverseGammaHighlight : ID2D1PixelShader { diff --git a/tests/ComputeSharp.D2D1.Tests/Effects/CheckerboardClipEffect.cs b/tests/ComputeSharp.D2D1.Tests/Effects/CheckerboardClipEffect.cs index 5755e139..2d448d99 100644 --- a/tests/ComputeSharp.D2D1.Tests/Effects/CheckerboardClipEffect.cs +++ b/tests/ComputeSharp.D2D1.Tests/Effects/CheckerboardClipEffect.cs @@ -4,7 +4,7 @@ namespace ComputeSharp.D2D1.Tests.Effects; [D2DInputSimple(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] public partial struct CheckerboardClipEffect : ID2D1PixelShader { diff --git a/tests/ComputeSharp.D2D1.Tests/Effects/InvertEffect.cs b/tests/ComputeSharp.D2D1.Tests/Effects/InvertEffect.cs index 949cf282..dbe72401 100644 --- a/tests/ComputeSharp.D2D1.Tests/Effects/InvertEffect.cs +++ b/tests/ComputeSharp.D2D1.Tests/Effects/InvertEffect.cs @@ -3,7 +3,7 @@ namespace ComputeSharp.D2D1.Tests.Effects; [D2DInputCount(1)] [D2DInputSimple(0)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] public partial struct InvertEffect : ID2D1PixelShader { /// diff --git a/tests/ComputeSharp.D2D1.Tests/Effects/InvertWithThresholdEffect.cs b/tests/ComputeSharp.D2D1.Tests/Effects/InvertWithThresholdEffect.cs index 03b5505a..cca2b3a4 100644 --- a/tests/ComputeSharp.D2D1.Tests/Effects/InvertWithThresholdEffect.cs +++ b/tests/ComputeSharp.D2D1.Tests/Effects/InvertWithThresholdEffect.cs @@ -3,7 +3,7 @@ namespace ComputeSharp.D2D1.Tests.Effects; [D2DInputCount(1)] [D2DInputSimple(0)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] public partial struct InvertWithThresholdEffect : ID2D1PixelShader { diff --git a/tests/ComputeSharp.D2D1.Tests/Effects/PixelateEffect.cs b/tests/ComputeSharp.D2D1.Tests/Effects/PixelateEffect.cs index 07b49135..fd5a28af 100644 --- a/tests/ComputeSharp.D2D1.Tests/Effects/PixelateEffect.cs +++ b/tests/ComputeSharp.D2D1.Tests/Effects/PixelateEffect.cs @@ -4,11 +4,11 @@ namespace ComputeSharp.D2D1.Tests.Effects; [D2DInputComplex(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader40)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] public readonly partial struct PixelateEffect : ID2D1PixelShader { - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] public readonly partial struct Constants { diff --git a/tests/ComputeSharp.D2D1.Tests/Effects/ZonePlateEffect.cs b/tests/ComputeSharp.D2D1.Tests/Effects/ZonePlateEffect.cs index e4a6b808..4526d8a3 100644 --- a/tests/ComputeSharp.D2D1.Tests/Effects/ZonePlateEffect.cs +++ b/tests/ComputeSharp.D2D1.Tests/Effects/ZonePlateEffect.cs @@ -12,7 +12,7 @@ internal static class MathF [D2DInputCount(0)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] -[D2DGeneratedShaderMarshaller] +[D2DGeneratedPixelShaderDescriptor] [AutoConstructor] public readonly partial struct ZonePlateEffect : ID2D1PixelShader { diff --git a/tests/ComputeSharp.D2D1.UI.Tests/CanvasEffectTests.cs b/tests/ComputeSharp.D2D1.UI.Tests/CanvasEffectTests.cs index 3b171107..82f2bb65 100644 --- a/tests/ComputeSharp.D2D1.UI.Tests/CanvasEffectTests.cs +++ b/tests/ComputeSharp.D2D1.UI.Tests/CanvasEffectTests.cs @@ -698,7 +698,7 @@ public partial class CanvasEffectTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct ShaderWithNoInputs : ID2D1PixelShader { diff --git a/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs b/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs index eaa83d7a..ba221a16 100644 --- a/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs +++ b/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs @@ -459,7 +459,7 @@ public partial class PixelShaderEffectTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct ShaderWithSomeProperties : ID2D1PixelShader { @@ -476,7 +476,7 @@ public partial class PixelShaderEffectTests } [D2DInputCount(1)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] private partial struct ShaderWithSomePropertiesAndInputs : ID2D1PixelShader { @@ -489,7 +489,7 @@ public partial class PixelShaderEffectTests } [D2DInputCount(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct ShaderWith0Inputs : ID2D1PixelShader { public float4 Execute() @@ -500,7 +500,7 @@ public partial class PixelShaderEffectTests [D2DInputCount(1)] [D2DInputSimple(0)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct ShaderWith1Input : ID2D1PixelShader { public float4 Execute() @@ -512,7 +512,7 @@ public partial class PixelShaderEffectTests [D2DInputCount(2)] [D2DInputSimple(0)] [D2DInputSimple(1)] - [D2DGeneratedShaderMarshaller] + [D2DGeneratedPixelShaderDescriptor] private partial struct ShaderWith2Inputs : ID2D1PixelShader { public float4 Execute()