diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs
index 4e88db45..f7346ea6 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs
@@ -165,6 +165,9 @@ public static unsafe class D2D1PixelShaderEffect
+
+
+
""");
@@ -189,9 +192,10 @@ public static unsafe class D2D1PixelShaderEffect
fixed (char* pResourceTextureManager13PropertyName = "ResourceTextureManager13")
fixed (char* pResourceTextureManager14PropertyName = "ResourceTextureManager14")
fixed (char* pResourceTextureManager15PropertyName = "ResourceTextureManager15")
+ fixed (char* pTransformMapperManagerPropertyName = nameof(D2D1PixelShaderEffectProperty.TransformMapperManager))
{
// Prepare the effect binding functions
- D2D1_PROPERTY_BINDING* d2D1PropertyBinding = stackalloc D2D1_PROPERTY_BINDING[17];
+ D2D1_PROPERTY_BINDING* d2D1PropertyBinding = stackalloc D2D1_PROPERTY_BINDING[18];
// Property names
d2D1PropertyBinding[0].propertyName = (ushort*)pBufferPropertyName;
@@ -211,6 +215,7 @@ public static unsafe class D2D1PixelShaderEffect
d2D1PropertyBinding[14].propertyName = (ushort*)pResourceTextureManager13PropertyName;
d2D1PropertyBinding[15].propertyName = (ushort*)pResourceTextureManager14PropertyName;
d2D1PropertyBinding[16].propertyName = (ushort*)pResourceTextureManager15PropertyName;
+ d2D1PropertyBinding[17].propertyName = (ushort*)pTransformMapperManagerPropertyName;
// Property getters
d2D1PropertyBinding[0].getFunction = PixelShaderEffect.GetConstantBuffer;
@@ -230,6 +235,7 @@ public static unsafe class D2D1PixelShaderEffect
d2D1PropertyBinding[14].getFunction = PixelShaderEffect.GetResourceTextureManager13;
d2D1PropertyBinding[15].getFunction = PixelShaderEffect.GetResourceTextureManager14;
d2D1PropertyBinding[16].getFunction = PixelShaderEffect.GetResourceTextureManager15;
+ d2D1PropertyBinding[17].getFunction = PixelShaderEffect.GetTransformMapperManager;
// Property setters
d2D1PropertyBinding[0].setFunction = PixelShaderEffect.SetConstantBuffer;
@@ -249,6 +255,7 @@ public static unsafe class D2D1PixelShaderEffect
d2D1PropertyBinding[14].setFunction = PixelShaderEffect.SetResourceTextureManager13;
d2D1PropertyBinding[15].setFunction = PixelShaderEffect.SetResourceTextureManager14;
d2D1PropertyBinding[16].setFunction = PixelShaderEffect.SetResourceTextureManager15;
+ d2D1PropertyBinding[17].setFunction = PixelShaderEffect.SetTransformMapperManager;
fixed (Guid* pGuid = &PixelShaderEffect.For.Id)
{
@@ -257,7 +264,7 @@ public static unsafe class D2D1PixelShaderEffect
classId: pGuid,
propertyXml: (ushort*)pXml,
bindings: d2D1PropertyBinding,
- bindingsCount: 17,
+ bindingsCount: 18,
effectFactory: PixelShaderEffect.For.Factory).Assert();
}
@@ -432,6 +439,9 @@ public static unsafe class D2D1PixelShaderEffect
+
+
+
"""u8);
@@ -439,7 +449,7 @@ public static unsafe class D2D1PixelShaderEffect
writer.WriteRaw((byte)'\0');
// Bindings
- writer.WriteRaw(17);
+ writer.WriteRaw(18);
writer.WriteRaw("ConstantBuffer"u8);
writer.WriteRaw((byte)'\0');
writer.WriteRaw((nint)PixelShaderEffect.GetConstantBuffer);
@@ -508,6 +518,10 @@ public static unsafe class D2D1PixelShaderEffect
writer.WriteRaw((byte)'\0');
writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager15);
writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager15);
+ writer.WriteRaw("TransformMapperManager"u8);
+ writer.WriteRaw((byte)'\0');
+ writer.WriteRaw((nint)PixelShaderEffect.GetTransformMapperManager);
+ writer.WriteRaw((nint)PixelShaderEffect.SetTransformMapperManager);
// Effect factory
writer.WriteRaw((nint)PixelShaderEffect.For.Factory);
diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffectProperty.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffectProperty.cs
index 892ec2f4..7c0f3e88 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffectProperty.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffectProperty.cs
@@ -112,4 +112,14 @@ public static class D2D1PixelShaderEffectProperty
///
/// For more info, see .
public const uint ResourceTextureManager15 = 16;
+
+ ///
+ /// The index for the ID2D1TransformMapperManager property of a object.
+ ///
+ ///
+ /// The value of this property is of type D2D1_PROPERTY_TYPE_BLOB.
+ /// This value can be passed when calling ID2D1Effect::SetValue.
+ /// For more info, see .
+ ///
+ public const uint TransformMapperManager = 17;
}
\ No newline at end of file
diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs
index 31c16d92..42850e72 100644
--- a/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs
+++ b/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs
@@ -17,7 +17,7 @@ public partial class D2D1EffectRegistrationDataTests
Assert.AreEqual(effectId, data.ClassId);
Assert.AreEqual(2, data.NumberOfInputs);
Assert.IsTrue(data.EffectFactory is not null);
- Assert.AreEqual(17, data.PropertyBindings.Length);
+ Assert.AreEqual(18, data.PropertyBindings.Length);
Assert.AreEqual(nameof(D2D1PixelShaderEffectProperty.ConstantBuffer), data.PropertyBindings.Span[0].PropertyName);
Assert.AreEqual(nameof(D2D1PixelShaderEffectProperty.ResourceTextureManager0), data.PropertyBindings.Span[1].PropertyName);
Assert.AreEqual(nameof(D2D1PixelShaderEffectProperty.ResourceTextureManager1), data.PropertyBindings.Span[2].PropertyName);
@@ -35,6 +35,7 @@ public partial class D2D1EffectRegistrationDataTests
Assert.AreEqual(nameof(D2D1PixelShaderEffectProperty.ResourceTextureManager13), data.PropertyBindings.Span[14].PropertyName);
Assert.AreEqual(nameof(D2D1PixelShaderEffectProperty.ResourceTextureManager14), data.PropertyBindings.Span[15].PropertyName);
Assert.AreEqual(nameof(D2D1PixelShaderEffectProperty.ResourceTextureManager15), data.PropertyBindings.Span[16].PropertyName);
+ Assert.AreEqual(nameof(D2D1PixelShaderEffectProperty.TransformMapperManager), data.PropertyBindings.Span[17].PropertyName);
foreach (ref readonly D2D1PropertyBinding propertyBinding in data.PropertyBindings.Span)
{
@@ -104,6 +105,9 @@ public partial class D2D1EffectRegistrationDataTests
+
+
+
""", data.PropertyXml);
}