diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs index 867cc04c..e83187bb 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs @@ -557,10 +557,10 @@ public static unsafe class D2D1PixelShaderEffect /// /// A pointer to the ID2D1Effect instance to use. /// The input ID2D1ResourceTextureManager object (see ). - /// The index of the resource texture to assign the resource texture manager to. + /// The index of the resource texture to assign the resource texture manager to. /// Thrown if or are . /// For more info, see . - public static void SetResourceTextureManagerForD2D1Effect(void* d2D1Effect, void* resourceTextureManager, int index) + public static void SetResourceTextureManagerForD2D1Effect(void* d2D1Effect, void* resourceTextureManager, int resourceTextureIndex) { if (d2D1Effect is null) { @@ -573,7 +573,7 @@ public static unsafe class D2D1PixelShaderEffect } ((ID2D1Effect*)d2D1Effect)->SetValue( - index: D2D1PixelShaderEffectProperty.ResourceTextureManager0 + (uint)index, + index: D2D1PixelShaderEffectProperty.ResourceTextureManager0 + (uint)resourceTextureIndex, type: D2D1_PROPERTY_TYPE.D2D1_PROPERTY_TYPE_IUNKNOWN, data: (byte*)&resourceTextureManager, dataSize: (uint)sizeof(void*)).Assert(); @@ -584,10 +584,10 @@ public static unsafe class D2D1PixelShaderEffect /// /// A pointer to the ID2D1Effect instance to use. /// The input instance.. - /// The index of the resource texture to assign the resource texture manager to. + /// The index of the resource texture to assign the resource texture manager to. /// Thrown if or are . /// For more info, see . - public static void SetResourceTextureManagerForD2D1Effect(void* d2D1Effect, D2D1ResourceTextureManager resourceTextureManager, int index) + public static void SetResourceTextureManagerForD2D1Effect(void* d2D1Effect, D2D1ResourceTextureManager resourceTextureManager, int resourceTextureIndex) { if (d2D1Effect is null) { @@ -604,7 +604,7 @@ public static unsafe class D2D1PixelShaderEffect resourceTextureManager.GetD2D1ResourceTextureManager(resourceTextureManager2.GetAddressOf()); ((ID2D1Effect*)d2D1Effect)->SetValue( - index: D2D1PixelShaderEffectProperty.ResourceTextureManager0 + (uint)index, + index: D2D1PixelShaderEffectProperty.ResourceTextureManager0 + (uint)resourceTextureIndex, type: D2D1_PROPERTY_TYPE.D2D1_PROPERTY_TYPE_IUNKNOWN, data: (byte*)resourceTextureManager2.GetAddressOf(), dataSize: (uint)sizeof(void*)).Assert();