From 7528f945361a52a0f1b3cd604ae8c203a9670111 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 6 Feb 2023 00:19:31 -0300 Subject: Implement safe depth-stencil blit using stencil export extension (#4356) * Implement safe depth-stencil blit using stencil export extension * Delete depth-stencil blit with buffer path --- Ryujinx.Graphics.Vulkan/FramebufferParams.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Vulkan/FramebufferParams.cs') diff --git a/Ryujinx.Graphics.Vulkan/FramebufferParams.cs b/Ryujinx.Graphics.Vulkan/FramebufferParams.cs index ff8d423b..0a1cdcce 100644 --- a/Ryujinx.Graphics.Vulkan/FramebufferParams.cs +++ b/Ryujinx.Graphics.Vulkan/FramebufferParams.cs @@ -38,7 +38,7 @@ namespace Ryujinx.Graphics.Vulkan { _device = device; _attachments = new[] { view }; - _validColorAttachments = 1u; + _validColorAttachments = isDepthStencil ? 0u : 1u; Width = width; Height = height; @@ -46,7 +46,7 @@ namespace Ryujinx.Graphics.Vulkan AttachmentSamples = new[] { samples }; AttachmentFormats = new[] { format }; - AttachmentIndices = new[] { 0 }; + AttachmentIndices = isDepthStencil ? Array.Empty() : new[] { 0 }; AttachmentsCount = 1; -- cgit v1.2.3