Fix unit tests using ComputeContext APIs
このコミットが含まれているのは:
1 親
db01f40030
コミット
37670e8f4c
4ファイル変更
+8
検索条件に一致するファイルはありません
@@ -74,6 +74,7 @@ public partial class DispatchingBenchmark : IDisposable
|
||||
using var context = GraphicsDevice.Default.CreateComputeContext();
|
||||
|
||||
context.For(64, new TestShader(Buffer!));
|
||||
context.FullBarrier(Buffer!);
|
||||
context.For(64, new TestShader(Buffer!));
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ public partial class ComputeContextTests
|
||||
using (ComputeContext context = device.Get().CreateComputeContext())
|
||||
{
|
||||
context.ForEach(texture, default(ClearPixelShader));
|
||||
context.FullBarrier(texture);
|
||||
context.ForEach(texture, new ColorPixelShader(new float4(0.22f, 0.44f, 0.66f, 0.88f)));
|
||||
}
|
||||
|
||||
@@ -73,7 +74,9 @@ public partial class ComputeContextTests
|
||||
context.For(512, new OffsetComputeShader(buffer, 0));
|
||||
context.For(64, new OffsetComputeShader(buffer, 512));
|
||||
context.ForEach(texture, default(ClearPixelShader));
|
||||
context.StartBarrier(texture);
|
||||
context.For(299, new OffsetComputeShader(buffer, 576));
|
||||
context.EndBarrier(texture);
|
||||
context.ForEach(texture, new ColorPixelShader(new float4(0.22f, 0.44f, 0.66f, 0.88f)));
|
||||
context.For(149, new OffsetComputeShader(buffer, 875));
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする