summaryrefslogtreecommitdiffstats
path: root/src/video_core/surface.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-07-01 06:18:43 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-07-13 06:01:09 +0200
commiteda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042 (patch)
tree896889ac053cac733567007f74de34169540e2a0 /src/video_core/surface.cpp
parentvideo_core/format_lookup_table: Add formats with existing PixelFormat (diff)
downloadyuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.tar
yuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.tar.gz
yuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.tar.bz2
yuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.tar.lz
yuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.tar.xz
yuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.tar.zst
yuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.zip
Diffstat (limited to 'src/video_core/surface.cpp')
-rw-r--r--src/video_core/surface.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index c1c2f2c52..492ab6215 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -283,25 +283,4 @@ std::pair<u32, u32> GetASTCBlockSize(PixelFormat format) {
return {GetDefaultBlockWidth(format), GetDefaultBlockHeight(format)};
}
-bool IsFormatBCn(PixelFormat format) {
- switch (format) {
- case PixelFormat::DXT1:
- case PixelFormat::DXT23:
- case PixelFormat::DXT45:
- case PixelFormat::DXN1:
- case PixelFormat::DXN2SNORM:
- case PixelFormat::DXN2UNORM:
- case PixelFormat::BC7U:
- case PixelFormat::BC6H_UF16:
- case PixelFormat::BC6H_SF16:
- case PixelFormat::DXT1_SRGB:
- case PixelFormat::DXT23_SRGB:
- case PixelFormat::DXT45_SRGB:
- case PixelFormat::BC7U_SRGB:
- return true;
- default:
- return false;
- }
-}
-
} // namespace VideoCore::Surface