From 57ffee0d8cb9095da7b612720d086c4b10f70654 Mon Sep 17 00:00:00 2001 From: DrChat Date: Sat, 19 Aug 2017 20:55:29 -0500 Subject: [PATCH] GPU: Add name strings for all texture formats --- src/xenia/gpu/texture_info.h | 1 + src/xenia/gpu/texture_info_formats.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/texture_info.h b/src/xenia/gpu/texture_info.h index f6ca86214..b67843d14 100644 --- a/src/xenia/gpu/texture_info.h +++ b/src/xenia/gpu/texture_info.h @@ -237,6 +237,7 @@ enum class FormatType { struct FormatInfo { TextureFormat format; + const char* name; FormatType type; uint32_t block_width; uint32_t block_height; diff --git a/src/xenia/gpu/texture_info_formats.cc b/src/xenia/gpu/texture_info_formats.cc index 5cc1e80fc..700a342e5 100644 --- a/src/xenia/gpu/texture_info_formats.cc +++ b/src/xenia/gpu/texture_info_formats.cc @@ -17,7 +17,7 @@ namespace gpu { using namespace xe::gpu::xenos; #define FORMAT_INFO(texture_format, format, block_width, block_height, bits_per_pixel) \ - {TextureFormat::texture_format, FormatType::format, block_width, block_height, bits_per_pixel} + {TextureFormat::texture_format, #texture_format, FormatType::format, block_width, block_height, bits_per_pixel} const FormatInfo* FormatInfo::Get(uint32_t gpu_format) { static const FormatInfo format_infos[64] = { FORMAT_INFO(k_1_REVERSE , kUncompressed, 1, 1, 1),