From 4f71982c2065ffe2bd8804b04c86a6883887c02f Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 30 Aug 2019 17:32:05 +0200 Subject: [PATCH] Fixed a small bug in the partial sum pass --- .../Processor/HlslBokehBlurProcessor{TPixel}.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ComputeSharp.BokehBlur/Processor/HlslBokehBlurProcessor{TPixel}.cs b/samples/ComputeSharp.BokehBlur/Processor/HlslBokehBlurProcessor{TPixel}.cs index 7660f96e..9a99ce87 100644 --- a/samples/ComputeSharp.BokehBlur/Processor/HlslBokehBlurProcessor{TPixel}.cs +++ b/samples/ComputeSharp.BokehBlur/Processor/HlslBokehBlurProcessor{TPixel}.cs @@ -459,7 +459,7 @@ namespace ComputeSharp.BokehBlur.Processor Vector4 real = source.Memory.Span[y * width * 2 + x * 2]; Vector4 imaginary = source.Memory.Span[y * width * 2 + x * 2 + 1]; - target.Memory.Span[y * width + x] = real * z + imaginary * w; + target.Memory.Span[y * width + x] += real * z + imaginary * w; } }); }