aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/Format.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-08-20 18:26:25 -0300
committerGitHub <noreply@github.com>2021-08-20 18:26:25 -0300
commitc702943af3c7e9396b8fa86e3c1be3cb9339addc (patch)
tree972faf72edd4af3d18b90c30d2d8c2b2bdf49e59 /Ryujinx.Graphics.GAL/Format.cs
parent6c76bc3bc0ecd1d3a86cf4e8c396c71370274ba1 (diff)
Swap BGR components for 16-bit BGR texture formats (#2567)
Diffstat (limited to 'Ryujinx.Graphics.GAL/Format.cs')
-rw-r--r--Ryujinx.Graphics.GAL/Format.cs9
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: