diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs index fd0c2545c..aa085cc86 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs @@ -558,12 +558,15 @@ public float4 Execute() [D2DInputCount(1)] [D2DInputComplex(0)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader40Level91)] + [D2DRequiresScenePosition] [D2DGeneratedPixelShaderDescriptor] internal readonly partial struct ComplexShaderWithExplicitShaderProfileAndNoCompileOptions : ID2D1PixelShader { public float4 Execute() { - return D2D.GetInput(0); + float2 uv = D2D.GetScenePosition().XY; + + return D2D.SampleInput(0, uv); } } diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs index a447701d7..64507197b 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs @@ -21,7 +21,7 @@ public void GetShaderInfo() Assert.AreEqual(""" #define D2D_INPUT_COUNT 3 #define D2D_INPUT0_SIMPLE - #define D2D_INPUT1_COMPLEX + #define D2D_INPUT1_SIMPLE #define D2D_INPUT2_COMPLEX #define D2D_REQUIRES_SCENE_POSITION @@ -52,7 +52,7 @@ public void GetShaderInfo() [D2DInputCount(3)] [D2DInputSimple(0)] - [D2DInputComplex(1)] + [D2DInputSimple(1)] [D2DInputComplex(2)] [D2DRequiresScenePosition] [D2DShaderProfile(D2D1ShaderProfile.PixelShader41)] @@ -98,6 +98,7 @@ public void GetShaderInfoWithDoublePrecisionFeature() Assert.AreEqual(""" #define D2D_INPUT_COUNT 1 + #define D2D_INPUT0_SIMPLE #include "d2d1effecthelpers.hlsli" @@ -113,6 +114,7 @@ public void GetShaderInfoWithDoublePrecisionFeature() } [D2DInputCount(1)] + [D2DInputSimple(0)] [D2DRequiresDoublePrecisionSupport] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DGeneratedPixelShaderDescriptor] diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs index 7207cdedd..318d43b85 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs @@ -473,6 +473,7 @@ public float4 Execute() } [D2DInputCount(1)] + [D2DInputSimple(0)] [D2DGeneratedPixelShaderDescriptor] [AutoConstructor] internal readonly partial struct ShaderWithSomePropertiesAndInputs : ID2D1PixelShader