Fix unit tests using ComputeContext APIs

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-28 16:58:17 +01:00
1 親 db01f40030
コミット 37670e8f4c
4ファイル変更
+8

検索条件に一致するファイルはありません

+3
ファイルの表示
@@ -293,6 +293,9 @@ public sealed partial class HlslBokehBlurProcessor
source.Height,
new(texture, reals, imaginaries, kernel));
context.FullBarrier(reals);
context.FullBarrier(imaginaries);
context.For<HorizontalConvolutionAndAccumulatePartialsProcessor>(
source.Width,
source.Height,
@@ -108,6 +108,7 @@ public sealed partial class HlslGaussianBlurProcessor
using (var context = GraphicsDevice.CreateComputeContext())
{
context.For<VerticalConvolutionProcessor>(source.Width, source.Height, new(sourceTexture, firstPassTexture, kernelBuffer));
context.FullBarrier(firstPassTexture);
context.For<HorizontalConvolutionProcessor>(source.Width, source.Height, new(firstPassTexture, sourceTexture, kernelBuffer));
}