diff options
Diffstat (limited to 'src/Ryujinx.Graphics.Vulkan/FramebufferParams.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Vulkan/FramebufferParams.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Vulkan/FramebufferParams.cs b/src/Ryujinx.Graphics.Vulkan/FramebufferParams.cs index 749d5929..7600c2d5 100644 --- a/src/Ryujinx.Graphics.Vulkan/FramebufferParams.cs +++ b/src/Ryujinx.Graphics.Vulkan/FramebufferParams.cs @@ -148,6 +148,16 @@ namespace Ryujinx.Graphics.Vulkan return _attachments[index]; } + public Auto<DisposableImageView> GetDepthStencilAttachment() + { + if (!HasDepthStencil) + { + return null; + } + + return _attachments[AttachmentsCount - 1]; + } + public ComponentType GetAttachmentComponentType(int index) { if (_colors != null && (uint)index < _colors.Length) |