diff options
Diffstat (limited to 'Ryujinx.Graphics.GAL/Format.cs')
| -rw-r--r-- | Ryujinx.Graphics.GAL/Format.cs | 9 |
1 files changed, 6 insertions, 3 deletions
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 } /// <summary> - /// Checks if the texture format is a BGRA format with 8-bit components. + /// Checks if the texture format is a BGR format. /// </summary> /// <param name="format">Texture format</param> - /// <returns>True if the texture format is a BGRA format with 8-bit components, false otherwise</returns> - public static bool IsBgra8(this Format format) + /// <returns>True if the texture format is a BGR format, false otherwise</returns> + 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: |
