diff options
| author | Ac_K <Acoustik666@gmail.com> | 2023-01-13 07:04:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-13 06:04:59 +0000 |
| commit | 85faa9d8fa1f8d5b1a80f3506717186f7a7e26c9 (patch) | |
| tree | c6a9bfe24c089f1c748dcc6ef34aa2e5262c5b8e /Ryujinx.Graphics.Vulkan/FramebufferParams.cs | |
| parent | dca5b14493e730960ed5cd67906278ecea969b3a (diff) | |
Revert "Relax Vulkan requirements (#4228)" (#4279)
This reverts commit dca5b14493e730960ed5cd67906278ecea969b3a.
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/FramebufferParams.cs')
| -rw-r--r-- | Ryujinx.Graphics.Vulkan/FramebufferParams.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Vulkan/FramebufferParams.cs b/Ryujinx.Graphics.Vulkan/FramebufferParams.cs index 84ac0b05..751ef5eb 100644 --- a/Ryujinx.Graphics.Vulkan/FramebufferParams.cs +++ b/Ryujinx.Graphics.Vulkan/FramebufferParams.cs @@ -23,7 +23,7 @@ namespace Ryujinx.Graphics.Vulkan public int[] AttachmentIndices { get; } public int AttachmentsCount { get; } - public int MaxColorAttachmentIndex => AttachmentIndices.Length > 0 ? AttachmentIndices[AttachmentIndices.Length - 1] : -1; + public int MaxColorAttachmentIndex { get; } public bool HasDepthStencil { get; } public int ColorAttachmentsCount => AttachmentsCount - (HasDepthStencil ? 1 : 0); @@ -67,6 +67,7 @@ namespace Ryujinx.Graphics.Vulkan AttachmentSamples = new uint[count]; AttachmentFormats = new VkFormat[count]; AttachmentIndices = new int[count]; + MaxColorAttachmentIndex = colors.Length - 1; uint width = uint.MaxValue; uint height = uint.MaxValue; |
