summaryrefslogtreecommitdiff
path: root/src/video_core/surface.cpp
diff options
context:
space:
mode:
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) {
283 return {GetDefaultBlockWidth(format), GetDefaultBlockHeight(format)}; 283 return {GetDefaultBlockWidth(format), GetDefaultBlockHeight(format)};
284} 284}
285 285
286bool IsFormatBCn(PixelFormat format) {
287 switch (format) {
288 case PixelFormat::DXT1:
289 case PixelFormat::DXT23:
290 case PixelFormat::DXT45:
291 case PixelFormat::DXN1:
292 case PixelFormat::DXN2SNORM:
293 case PixelFormat::DXN2UNORM:
294 case PixelFormat::BC7U:
295 case PixelFormat::BC6H_UF16:
296 case PixelFormat::BC6H_SF16:
297 case PixelFormat::DXT1_SRGB:
298 case PixelFormat::DXT23_SRGB:
299 case PixelFormat::DXT45_SRGB:
300 case PixelFormat::BC7U_SRGB:
301 return true;
302 default:
303 return false;
304 }
305}
306
307} // namespace VideoCore::Surface 286} // namespace VideoCore::Surface