diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-02-06 00:19:31 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 00:19:31 -0300 |
commit | 7528f945361a52a0f1b3cd604ae8c203a9670111 (patch) | |
tree | d6a20114cbf5d390450b685993e98adb7e1a2c0f /Ryujinx.Graphics.Vulkan/FramebufferParams.cs | |
parent | 43081c16c48d73dfd585d951281fcbd60bebccbc (diff) |
Implement safe depth-stencil blit using stencil export extension (#4356)1.1.601
* Implement safe depth-stencil blit using stencil export extension
* Delete depth-stencil blit with buffer path
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/FramebufferParams.cs')
-rw-r--r-- | Ryujinx.Graphics.Vulkan/FramebufferParams.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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<int>() : new[] { 0 }; AttachmentsCount = 1; |