mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-22 14:21:41 +02:00
Remove astc recompression method
This commit is contained in:
parent
052a04e610
commit
86f826c313
16 changed files with 45 additions and 242 deletions
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include "common/common_types.h"
|
||||
#include "common/math_util.h"
|
||||
#include "common/settings.h"
|
||||
#include "video_core/surface.h"
|
||||
|
||||
namespace VideoCore::Surface {
|
||||
|
|
@ -469,14 +468,7 @@ u64 TranscodedAstcSize(u64 base_size, PixelFormat format) {
|
|||
static_cast<u64>(DefaultBlockHeight(format)) * RGBA8_PIXEL_SIZE;
|
||||
const u64 uncompressed_size = (base_size * base_block_size) / BytesPerBlock(format);
|
||||
|
||||
switch (Settings::values.astc_recompression.GetValue()) {
|
||||
case Settings::AstcRecompression::Bc1:
|
||||
return uncompressed_size / 8;
|
||||
case Settings::AstcRecompression::Bc3:
|
||||
return uncompressed_size / 4;
|
||||
default:
|
||||
return uncompressed_size;
|
||||
}
|
||||
return uncompressed_size;
|
||||
}
|
||||
|
||||
} // namespace VideoCore::Surface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue