diff options
| author | DrChat <arkolbed@gmail.com> | 2017-08-19 20:55:29 -0500 |
|---|---|---|
| committer | DrChat <arkolbed@gmail.com> | 2017-08-19 20:55:29 -0500 |
| commit | 57ffee0d8cb9095da7b612720d086c4b10f70654 (patch) | |
| tree | 7b3f9936ec7e450b9cb510556306099ad039645d | |
| parent | 96ba5d55631b23ac9fc1798fbe759acd2226cc4b (diff) | |
GPU: Add name strings for all texture formats
| -rw-r--r-- | src/xenia/gpu/texture_info.h | 1 | ||||
| -rw-r--r-- | src/xenia/gpu/texture_info_formats.cc | 2 |
2 files changed, 2 insertions, 1 deletions
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), |
