diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1InteropServicesTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1InteropServicesTests.cs index 0e8ef2d8..9916fff0 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1InteropServicesTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1InteropServicesTests.cs @@ -6,7 +6,7 @@ namespace ComputeSharp.D2D1.Tests; [TestClass] [TestCategory("D2D1InteropServices")] -public class D2D1InteropServicesTests +public partial class D2D1InteropServicesTests { [TestMethod] public unsafe void GetInputCount() @@ -14,5 +14,32 @@ public class D2D1InteropServicesTests Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputCount(), 1u); Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputCount(), 1u); Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputCount(), 0u); + Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputCount(), 7u); + } + + [TestMethod] + public unsafe void GetInputType() + { + Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputType(0), D2D1PixelShaderInputType.Simple); + Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputType(1), D2D1PixelShaderInputType.Complex); + Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputType(2), D2D1PixelShaderInputType.Simple); + Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputType(3), D2D1PixelShaderInputType.Complex); + Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputType(4), D2D1PixelShaderInputType.Complex); + Assert.AreEqual(D2D1InteropServices.GetPixelShaderInputType(5), D2D1PixelShaderInputType.Complex); + } + + [D2DInputCount(7)] + [D2DInputSimple(0)] + [D2DInputSimple(2)] + [D2DInputComplex(1)] + [D2DInputComplex(3)] + [D2DInputComplex(5)] + [D2DInputSimple(6)] + partial struct ShaderWithMultipleInputs : ID2D1PixelShader + { + public Float4 Execute() + { + return 0; + } } } \ No newline at end of file