From c3a57bbad53567af4546a68f0e9dbcd913bd9a75 Mon Sep 17 00:00:00 2001 From: "N.E.C" Date: Sun, 30 Jul 2017 12:45:55 -0700 Subject: Video: Clearly separate Texture and EFB Copy formats Improve bookkeeping around formats. Hopefully make code less confusing. - Rename TlutFormat -> TLUTFormat to follow conventions. - Use enum classes to prevent using a Texture format where an EFB Copy format is expected or vice-versa. - Use common EFBCopyFormat names regardless of depth and YUV configurations. --- Source/Core/VideoCommon/HiresTextures.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/HiresTextures.cpp') diff --git a/Source/Core/VideoCommon/HiresTextures.cpp b/Source/Core/VideoCommon/HiresTextures.cpp index 36b170ef10..60b7630512 100644 --- a/Source/Core/VideoCommon/HiresTextures.cpp +++ b/Source/Core/VideoCommon/HiresTextures.cpp @@ -215,7 +215,7 @@ void HiresTexture::Prefetch() } std::string HiresTexture::GenBaseName(const u8* texture, size_t texture_size, const u8* tlut, - size_t tlut_size, u32 width, u32 height, int format, + size_t tlut_size, u32 width, u32 height, TextureFormat format, bool has_mipmaps, bool dump) { std::string name = ""; @@ -385,7 +385,8 @@ u32 HiresTexture::CalculateMipCount(u32 width, u32 height) std::shared_ptr HiresTexture::Search(const u8* texture, size_t texture_size, const u8* tlut, size_t tlut_size, u32 width, - u32 height, int format, bool has_mipmaps) + u32 height, TextureFormat format, + bool has_mipmaps) { std::string base_filename = GenBaseName(texture, texture_size, tlut, tlut_size, width, height, format, has_mipmaps); -- cgit v1.2.3