aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/Format.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-01-22 15:23:00 -0300
committerGitHub <noreply@github.com>2022-01-22 19:23:00 +0100
commit42c75dbb8f9472f434d0324a37a87e91ee7b50f3 (patch)
treebae433fed0b2807893d520c1b1b49e33588ea303 /Ryujinx.Graphics.GAL/Format.cs
parent8117f6a9790e129ffd4513f23f6f5be6c6864269 (diff)
Add support for BC1/2/3 decompression (for 3D textures) (#2987)1.1.4
* Add support for BC1/2/3 decompression (for 3D textures) * Optimize and clean up * Unsafe not needed here * Fix alpha value interpolation when a0 <= a1
Diffstat (limited to 'Ryujinx.Graphics.GAL/Format.cs')
-rw-r--r--Ryujinx.Graphics.GAL/Format.cs22
1 files changed, 0 insertions, 22 deletions
diff --git a/Ryujinx.Graphics.GAL/Format.cs b/Ryujinx.Graphics.GAL/Format.cs
index d5e183ba..a454413b 100644
--- a/Ryujinx.Graphics.GAL/Format.cs
+++ b/Ryujinx.Graphics.GAL/Format.cs
@@ -67,11 +67,9 @@ namespace Ryujinx.Graphics.GAL
R10G10B10A2Uint,
R11G11B10Float,
R9G9B9E5Float,
- Bc1RgbUnorm,
Bc1RgbaUnorm,
Bc2Unorm,
Bc3Unorm,
- Bc1RgbSrgb,
Bc1RgbaSrgb,
Bc2Srgb,
Bc3Srgb,
@@ -349,25 +347,5 @@ namespace Ryujinx.Graphics.GAL
{
return format.IsUint() || format.IsSint();
}
-
- /// <summary>
- /// Checks if the texture format is a BC4 compressed format.
- /// </summary>
- /// <param name="format">Texture format</param>
- /// <returns>True if the texture format is a BC4 compressed format, false otherwise</returns>
- public static bool IsBc4(this Format format)
- {
- return format == Format.Bc4Unorm || format == Format.Bc4Snorm;
- }
-
- /// <summary>
- /// Checks if the texture format is a BC5 compressed format.
- /// </summary>
- /// <param name="format">Texture format</param>
- /// <returns>True if the texture format is a BC5 compressed format, false otherwise</returns>
- public static bool IsBc5(this Format format)
- {
- return format == Format.Bc5Unorm || format == Format.Bc5Snorm;
- }
}
} \ No newline at end of file