summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrChat <arkolbed@gmail.com>2017-08-19 20:56:13 -0500
committerDrChat <arkolbed@gmail.com>2017-08-19 20:56:13 -0500
commite758e8758799f9865f245ac9200187304ebc6d27 (patch)
treefc9737671d8fe96859397b6a911b1b5027ec706a
parent57ffee0d8cb9095da7b612720d086c4b10f70654 (diff)
Trace Viewer: Display texture info even if the demand failed
Display format name as well
-rw-r--r--src/xenia/gpu/trace_viewer.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/xenia/gpu/trace_viewer.cc b/src/xenia/gpu/trace_viewer.cc
index 5f0c5ac20..bf3821228 100644
--- a/src/xenia/gpu/trace_viewer.cc
+++ b/src/xenia/gpu/trace_viewer.cc
@@ -673,20 +673,21 @@ void TraceViewer::DrawTextureInfo(
return;
}
auto texture = GetTextureEntry(texture_info, sampler_info);
- if (!texture) {
- DrawFailedTextureInfo(texture_binding, "Failed to demand texture");
- return;
- }
ImGui::Columns(2);
- ImVec2 button_size(256, 256);
- if (ImGui::ImageButton(ImTextureID(texture), button_size, ImVec2(0, 0),
- ImVec2(1, 1))) {
- // show viewer
+ if (texture) {
+ ImVec2 button_size(256, 256);
+ if (ImGui::ImageButton(ImTextureID(texture), button_size, ImVec2(0, 0),
+ ImVec2(1, 1))) {
+ // show viewer
+ }
+ } else {
+ DrawFailedTextureInfo(texture_binding, "Failed to demand texture");
}
ImGui::NextColumn();
ImGui::Text("Fetch Slot: %u", texture_binding.fetch_constant);
ImGui::Text("Guest Address: %.8X", texture_info.guest_address);
+ ImGui::Text("Format: %s", texture_info.format_info()->name);
switch (texture_info.dimension) {
case Dimension::k1D:
ImGui::Text("1D: %dpx", texture_info.width + 1);