From 3e68a87d63707e53c4b439a80c4c54538de02e4b Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 16 Apr 2023 14:26:22 -0300 Subject: Change SMAA filter texture clear method (#4685) * Change SMAA filter texture clear method * Alpha should be 1 * Delete more unnecessary code --- .../Effects/FxaaPostProcessingEffect.cs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'Ryujinx.Graphics.Vulkan/Effects/FxaaPostProcessingEffect.cs') diff --git a/Ryujinx.Graphics.Vulkan/Effects/FxaaPostProcessingEffect.cs b/Ryujinx.Graphics.Vulkan/Effects/FxaaPostProcessingEffect.cs index 9e73e1b8..b7316d85 100644 --- a/Ryujinx.Graphics.Vulkan/Effects/FxaaPostProcessingEffect.cs +++ b/Ryujinx.Graphics.Vulkan/Effects/FxaaPostProcessingEffect.cs @@ -94,25 +94,9 @@ namespace Ryujinx.Graphics.Vulkan.Effects var bufferRanges = new BufferRange(bufferHandle, 0, rangeSize); _pipeline.SetUniformBuffers(stackalloc[] { new BufferAssignment(2, bufferRanges) }); - Span viewports = stackalloc GAL.Viewport[1]; - - viewports[0] = new GAL.Viewport( - new Rectangle(0, 0, view.Width, view.Height), - ViewportSwizzle.PositiveX, - ViewportSwizzle.PositiveY, - ViewportSwizzle.PositiveZ, - ViewportSwizzle.PositiveW, - 0f, - 1f); - - Span> scissors = stackalloc Rectangle[1]; - var dispatchX = BitUtils.DivRoundUp(view.Width, IPostProcessingEffect.LocalGroupSize); var dispatchY = BitUtils.DivRoundUp(view.Height, IPostProcessingEffect.LocalGroupSize); - _pipeline.SetScissors(stackalloc[] { new Rectangle(0, 0, view.Width, view.Height) }); - _pipeline.SetViewports(viewports, false); - _pipeline.SetImage(0, _texture, GAL.Format.R8G8B8A8Unorm); _pipeline.DispatchCompute(dispatchX, dispatchY, 1); -- cgit v1.2.3