diff options
author | gdkchan <gab.dark.100@gmail.com> | 2024-02-15 19:06:26 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 19:06:26 -0300 |
commit | e37735ed2630a807c709d2d3e2099f6c1f2b10fe (patch) | |
tree | f6a85a9361c0e340551154b72b335e5bb81dcaf5 /src/Ryujinx.Graphics.OpenGL/Framebuffer.cs | |
parent | 74a18b7c1820ae2094894cd2108c8c3a9bc03260 (diff) |
Implement X8Z24 texture format (#6315)1.1.1197
Diffstat (limited to 'src/Ryujinx.Graphics.OpenGL/Framebuffer.cs')
-rw-r--r-- | src/Ryujinx.Graphics.OpenGL/Framebuffer.cs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/Ryujinx.Graphics.OpenGL/Framebuffer.cs b/src/Ryujinx.Graphics.OpenGL/Framebuffer.cs index 3b79c5d6..394b8bc7 100644 --- a/src/Ryujinx.Graphics.OpenGL/Framebuffer.cs +++ b/src/Ryujinx.Graphics.OpenGL/Framebuffer.cs @@ -119,11 +119,11 @@ namespace Ryujinx.Graphics.OpenGL private static FramebufferAttachment GetAttachment(Format format) { - if (IsPackedDepthStencilFormat(format)) + if (FormatTable.IsPackedDepthStencil(format)) { return FramebufferAttachment.DepthStencilAttachment; } - else if (IsDepthOnlyFormat(format)) + else if (FormatTable.IsDepthOnly(format)) { return FramebufferAttachment.DepthAttachment; } @@ -133,18 +133,6 @@ namespace Ryujinx.Graphics.OpenGL } } - private static bool IsPackedDepthStencilFormat(Format format) - { - return format == Format.D24UnormS8Uint || - format == Format.D32FloatS8Uint || - format == Format.S8UintD24Unorm; - } - - private static bool IsDepthOnlyFormat(Format format) - { - return format == Format.D16Unorm || format == Format.D32Float; - } - public int GetColorLayerCount(int index) { return _colors[index]?.Info.GetDepthOrLayers() ?? 0; |