Add [D2DGeneratedShaderMarshaller] to all shader types
このコミットが含まれているのは:
1 親
6b9895ed74
コミット
4d7f288364
27ファイル変更
+72
検索条件に一致するファイルはありません
@@ -11,6 +11,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct ColorfulInfinity : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct ContouredLayers : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct FractalTiling : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct HelloWorld : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct MengerJourney : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct Octagrams : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct ProteanClouds : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct PyramidPattern : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct TerracedHills : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct TriangleGridContouring : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.D2D1;
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct TwoTiledTruchet : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -49,6 +49,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputSimple(0)]
|
||||
[D2DInputSimple(1)]
|
||||
[D2DInputSimple(2)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ShaderWithNoCompileAttributes : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -94,6 +95,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputSimple(1)]
|
||||
[D2DInputSimple(2)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ShaderWithOverriddenProfile : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -139,6 +141,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputSimple(1)]
|
||||
[D2DInputSimple(2)]
|
||||
[D2DCompileOptions(D2D1CompileOptions.Debug | D2D1CompileOptions.AvoidFlowControl | D2D1CompileOptions.PartialPrecision)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ShaderWithOverriddenOptions : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -175,6 +178,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputSimple(2)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DCompileOptions(D2D1CompileOptions.Debug | D2D1CompileOptions.AvoidFlowControl | D2D1CompileOptions.PartialPrecision)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ShaderWithOverriddenProfileAndOptions : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
|
||||
@@ -51,6 +51,7 @@ public partial class D2D1EffectRegistrationDataTests
|
||||
|
||||
[D2DInputCount(2)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private readonly partial struct TestRegistrationBlobShader : ID2D1PixelShader
|
||||
{
|
||||
@@ -96,6 +97,7 @@ public partial class D2D1EffectRegistrationDataTests
|
||||
[D2DEffectDescription("A test effect with some custom metadata")]
|
||||
[D2DEffectCategory("Test effects")]
|
||||
[D2DEffectAuthor("Bob Ross")]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private readonly partial struct TestRegistrationBlobWithCustomMetadataShader : ID2D1PixelShader
|
||||
{
|
||||
@@ -192,6 +194,7 @@ public partial class D2D1EffectRegistrationDataTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private readonly partial struct TestRegistrationBlobWithResourceTextures : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -120,6 +120,7 @@ public partial class D2D1PixelShaderEffectTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct NullConstantBufferShader : ID2D1PixelShader
|
||||
{
|
||||
@@ -151,6 +152,7 @@ public partial class D2D1PixelShaderEffectTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct ConstantBufferSizeTestShader : ID2D1PixelShader
|
||||
{
|
||||
@@ -185,6 +187,7 @@ public partial class D2D1PixelShaderEffectTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct ShaderWithDefaultEffectId : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -194,6 +197,7 @@ public partial class D2D1PixelShaderEffectTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct ShaderWithDefaultEffectId2 : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -217,6 +221,7 @@ public partial class D2D1PixelShaderEffectTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DEffectId("8E1F7F49-EF0D-4242-8912-08ADA36AB4EC")]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct ShaderWithExplicitEffectId : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -235,6 +240,7 @@ public partial class D2D1PixelShaderEffectTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct ShaderWithDefaultEffectDisplayName : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -254,6 +260,7 @@ public partial class D2D1PixelShaderEffectTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DEffectDisplayName("Fancy blur")]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct ShaderWithExplicitEffectDisplayName1 : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -276,6 +283,7 @@ public partial class D2D1PixelShaderEffectTests
|
||||
[D2DEffectDescription("A test effect with \nsome custom metadata")]
|
||||
[D2DEffectCategory("Test effects!")]
|
||||
[D2DEffectAuthor("Bob \r\nRoss")]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct ShaderWithExplicitEffectDisplayName2 : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
|
||||
@@ -66,6 +66,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputComplex(3)]
|
||||
[D2DInputComplex(5)]
|
||||
[D2DInputSimple(6)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
partial struct ShaderWithMultipleInputs : ID2D1PixelShader
|
||||
{
|
||||
public Float4 Execute()
|
||||
@@ -93,6 +94,7 @@ public partial class D2D1PixelShaderTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
partial struct EmptyShader : ID2D1PixelShader
|
||||
{
|
||||
public Float4 Execute()
|
||||
@@ -103,6 +105,7 @@ public partial class D2D1PixelShaderTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.UInt16Normalized)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
partial struct OnlyBufferPrecisionShader : ID2D1PixelShader
|
||||
{
|
||||
public Float4 Execute()
|
||||
@@ -113,6 +116,7 @@ public partial class D2D1PixelShaderTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DOutputBuffer(D2D1ChannelDepth.Four)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
partial struct OnlyChannelDepthShader : ID2D1PixelShader
|
||||
{
|
||||
public Float4 Execute()
|
||||
@@ -123,6 +127,7 @@ public partial class D2D1PixelShaderTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.UInt8NormalizedSrgb, D2D1ChannelDepth.One)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
partial struct CustomBufferOutputShader : ID2D1PixelShader
|
||||
{
|
||||
public Float4 Execute()
|
||||
@@ -189,6 +194,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputDescription(2, D2D1Filter.MinLinearMagPointMinLinear, LevelOfDetailCount = 4)]
|
||||
[D2DInputDescription(5, D2D1Filter.MinMagPointMipLinear)]
|
||||
[D2DInputDescription(6, D2D1Filter.MinPointMagMipLinear, LevelOfDetailCount = 3)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
partial struct ShaderWithInputDescriptions : ID2D1PixelShader
|
||||
{
|
||||
public Float4 Execute()
|
||||
@@ -249,6 +255,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputComplex(1)]
|
||||
[D2DInputComplex(3)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
partial struct ShaderWithoutResourceTextures : ID2D1PixelShader
|
||||
{
|
||||
@@ -260,6 +267,7 @@ public partial class D2D1PixelShaderTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
partial struct ShaderWithJustOneResourceTextures : ID2D1PixelShader
|
||||
{
|
||||
@@ -278,6 +286,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputComplex(1)]
|
||||
[D2DInputComplex(3)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
partial struct ShaderWithResourceTextures : ID2D1PixelShader
|
||||
{
|
||||
@@ -322,6 +331,7 @@ public partial class D2D1PixelShaderTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ShaderWithoutEmbeddedBytecode : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -393,6 +403,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputSimple(1)]
|
||||
[D2DInputSimple(2)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ShaderWithEmbeddedBytecode : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -442,6 +453,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputSimple(2)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)]
|
||||
[D2DCompileOptions(D2D1CompileOptions.IeeeStrictness | D2D1CompileOptions.OptimizationLevel2)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ShaderWithEmbeddedBytecodeAndCompileOptions : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -473,6 +485,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputCount(1)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct SimpleShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -484,6 +497,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputCount(1)]
|
||||
[D2DInputComplex(0)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ComplexShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -509,6 +523,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputCount(1)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DCompileOptions(D2D1CompileOptions.OptimizationLevel2 | D2D1CompileOptions.IeeeStrictness)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ShaderWithExplicitCompileOptionsAndNoShaderProfile : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -557,6 +572,7 @@ public partial class D2D1PixelShaderTests
|
||||
[D2DInputSimple(0)]
|
||||
[D2DInputDescription(0, D2D1Filter.MinMagMipPoint)]
|
||||
[D2DPixelOptions(D2D1PixelOptions.TrivialSampling)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ShaderWithNoCapturedValues : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -804,6 +820,7 @@ public partial class D2D1PixelShaderTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private readonly partial struct ShaderWithScalarVectorAndMatrixTypes : ID2D1PixelShader
|
||||
{
|
||||
@@ -896,6 +913,7 @@ public partial class D2D1PixelShaderTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private readonly partial struct ShaderWithScalarVectorAndMatrixTypesInNestedStructs : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -60,6 +60,7 @@ public partial class D2D1ReflectionServicesTests
|
||||
[D2DInputComplex(2)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader41)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ReflectedShader : ID2D1PixelShader
|
||||
{
|
||||
private readonly float2 offset;
|
||||
@@ -119,6 +120,7 @@ public partial class D2D1ReflectionServicesTests
|
||||
|
||||
[D2DInputCount(1)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private readonly partial struct ReflectedShaderWithDoubleOperations : ID2D1PixelShader
|
||||
{
|
||||
private readonly double amount;
|
||||
|
||||
@@ -171,6 +171,7 @@ public partial class D2D1ResourceTextureManagerTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct DummyShaderWithResourceTexture : ID2D1PixelShader
|
||||
{
|
||||
[D2DResourceTextureIndex(0)]
|
||||
@@ -459,6 +460,7 @@ public partial class D2D1ResourceTextureManagerTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct IndexFrom2DResourceTextureShader : ID2D1PixelShader
|
||||
{
|
||||
[D2DResourceTextureIndex(0)]
|
||||
@@ -533,6 +535,7 @@ public partial class D2D1ResourceTextureManagerTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct IndexFrom3DResourceTextureShader : ID2D1PixelShader
|
||||
{
|
||||
@@ -620,6 +623,7 @@ public partial class D2D1ResourceTextureManagerTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct CopyFromResourceTexture1DShader : ID2D1PixelShader
|
||||
{
|
||||
@@ -717,6 +721,7 @@ public partial class D2D1ResourceTextureManagerTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct CopyFromResourceTexture2DShader : ID2D1PixelShader
|
||||
{
|
||||
@@ -823,6 +828,7 @@ public partial class D2D1ResourceTextureManagerTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct CopyFromResourceTexture3DShader : ID2D1PixelShader
|
||||
{
|
||||
@@ -868,6 +874,7 @@ public partial class D2D1ResourceTextureManagerTests
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct NullResourceTextureShader : ID2D1PixelShader
|
||||
{
|
||||
[D2DResourceTextureIndex(0)]
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ namespace ComputeSharp.D2D1.Tests;
|
||||
internal sealed partial class D2D1ResourceTextureUninitializedFieldDiagnosticSuppressorTests
|
||||
{
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
public readonly partial struct MyShader : ID2D1PixelShader
|
||||
{
|
||||
// This test just needs to validate the project builds fine with this shader.
|
||||
|
||||
@@ -198,6 +198,7 @@ public partial class D2D1TransformMapperTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct DummyShader : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -287,6 +288,7 @@ public partial class D2D1TransformMapperTests
|
||||
[D2DInputCount(1)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct ShaderWithDispatchArea : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -509,6 +509,7 @@ public sealed partial class BokehBlurEffect
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.Float32, D2D1ChannelDepth.Four)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
public readonly partial struct Shader : ID2D1PixelShader
|
||||
{
|
||||
@@ -558,6 +559,7 @@ public sealed partial class BokehBlurEffect
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.Float32, D2D1ChannelDepth.Four)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
public readonly partial struct Shader : ID2D1PixelShader
|
||||
{
|
||||
@@ -602,6 +604,7 @@ public sealed partial class BokehBlurEffect
|
||||
[D2DInputDescription(0, D2D1Filter.MinMagMipPoint)]
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.Float32, D2D1ChannelDepth.Four)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct GammaHighlight : ID2D1PixelShader
|
||||
{
|
||||
@@ -624,6 +627,7 @@ public sealed partial class BokehBlurEffect
|
||||
[D2DInputDescription(0, D2D1Filter.MinMagMipPoint)]
|
||||
[D2DOutputBuffer(D2D1BufferPrecision.Float32, D2D1ChannelDepth.Four)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
internal readonly partial struct InverseGammaHighlight : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace ComputeSharp.D2D1.Tests.Effects;
|
||||
[D2DInputSimple(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
public partial struct CheckerboardClipEffect : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -3,6 +3,7 @@ namespace ComputeSharp.D2D1.Tests.Effects;
|
||||
[D2DInputCount(1)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
public partial struct InvertEffect : ID2D1PixelShader
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
|
||||
@@ -3,6 +3,7 @@ namespace ComputeSharp.D2D1.Tests.Effects;
|
||||
[D2DInputCount(1)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
public partial struct InvertWithThresholdEffect : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -4,9 +4,11 @@ namespace ComputeSharp.D2D1.Tests.Effects;
|
||||
[D2DInputComplex(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader40)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
public readonly partial struct PixelateEffect : ID2D1PixelShader
|
||||
{
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
public readonly partial struct Constants
|
||||
{
|
||||
|
||||
@@ -12,6 +12,7 @@ internal static class MathF
|
||||
[D2DInputCount(0)]
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
public readonly partial struct ZonePlateEffect : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -698,6 +698,7 @@ public partial class CanvasEffectTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct ShaderWithNoInputs : ID2D1PixelShader
|
||||
{
|
||||
|
||||
@@ -459,6 +459,7 @@ public partial class PixelShaderEffectTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct ShaderWithSomeProperties : ID2D1PixelShader
|
||||
{
|
||||
@@ -475,6 +476,7 @@ public partial class PixelShaderEffectTests
|
||||
}
|
||||
|
||||
[D2DInputCount(1)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
[AutoConstructor]
|
||||
private partial struct ShaderWithSomePropertiesAndInputs : ID2D1PixelShader
|
||||
{
|
||||
@@ -487,6 +489,7 @@ public partial class PixelShaderEffectTests
|
||||
}
|
||||
|
||||
[D2DInputCount(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct ShaderWith0Inputs : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -497,6 +500,7 @@ public partial class PixelShaderEffectTests
|
||||
|
||||
[D2DInputCount(1)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct ShaderWith1Input : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
@@ -508,6 +512,7 @@ public partial class PixelShaderEffectTests
|
||||
[D2DInputCount(2)]
|
||||
[D2DInputSimple(0)]
|
||||
[D2DInputSimple(1)]
|
||||
[D2DGeneratedShaderMarshaller]
|
||||
private partial struct ShaderWith2Inputs : ID2D1PixelShader
|
||||
{
|
||||
public float4 Execute()
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする