From 470a64f2338b8019d7812d724c3aa9e793f3acf6 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 14 Dec 2022 13:27:01 +0100 Subject: [PATCH] Fix incorrect source indices when realizing D2D effects --- .../PixelShaderEffect{T}.ICanvasImageInterop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComputeSharp.D2D1.Uwp/PixelShaderEffect{T}.ICanvasImageInterop.cs b/src/ComputeSharp.D2D1.Uwp/PixelShaderEffect{T}.ICanvasImageInterop.cs index 61688e34..048b8c97 100644 --- a/src/ComputeSharp.D2D1.Uwp/PixelShaderEffect{T}.ICanvasImageInterop.cs +++ b/src/ComputeSharp.D2D1.Uwp/PixelShaderEffect{T}.ICanvasImageInterop.cs @@ -285,7 +285,7 @@ unsafe partial class PixelShaderEffect { if (!SetD2DInput( index: i, - value: Sources.Storage[0].GetWrapper(), + value: Sources.Storage[i].GetWrapper(), flags: flags, targetDpi: targetDpi, d2D1DeviceContext: deviceContext))