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
This commit is contained in:
gdkchan
2023-02-06 00:19:31 -03:00
committed by GitHub
parent 43081c16c4
commit 7528f94536
10 changed files with 330 additions and 213 deletions

View File

@ -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;