From c702943af3c7e9396b8fa86e3c1be3cb9339addc Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 20 Aug 2021 18:26:25 -0300 Subject: Swap BGR components for 16-bit BGR texture formats (#2567) --- Ryujinx.Graphics.GAL/Format.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Ryujinx.Graphics.GAL/Format.cs') diff --git a/Ryujinx.Graphics.GAL/Format.cs b/Ryujinx.Graphics.GAL/Format.cs index 1d034921..98b6f506 100644 --- a/Ryujinx.Graphics.GAL/Format.cs +++ b/Ryujinx.Graphics.GAL/Format.cs @@ -235,14 +235,17 @@ namespace Ryujinx.Graphics.GAL } /// - /// Checks if the texture format is a BGRA format with 8-bit components. + /// Checks if the texture format is a BGR format. /// /// Texture format - /// True if the texture format is a BGRA format with 8-bit components, false otherwise - public static bool IsBgra8(this Format format) + /// True if the texture format is a BGR format, false otherwise + public static bool IsBgr(this Format format) { switch (format) { + case Format.B5G6R5Unorm: + case Format.B5G5R5X1Unorm: + case Format.B5G5R5A1Unorm: case Format.B8G8R8X8Unorm: case Format.B8G8R8A8Unorm: case Format.B8G8R8X8Srgb: -- cgit v1.2.3