mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
ImDebugger: Add a basic texture browser
This commit is contained in:
1 parent
27f08d705b
commit
e4adc112ff
21 files changed
+152
-18
No files matched your search
@@ -822,6 +822,7 @@ void ImDebugger::Frame(MIPSDebugInterface *mipsDebug, GPUDebugInterface *gpuDebu
|
||||
}
|
||||
if (ImGui::BeginMenu("Graphics")) {
|
||||
ImGui::MenuItem("Display Output", nullptr, &cfg_.displayOpen);
|
||||
ImGui::MenuItem("Textures", nullptr, &cfg_.texturesOpen);
|
||||
ImGui::MenuItem("Framebuffers", nullptr, &cfg_.framebuffersOpen);
|
||||
// More to come here...
|
||||
ImGui::EndMenu();
|
||||
@@ -902,6 +903,10 @@ void ImDebugger::Frame(MIPSDebugInterface *mipsDebug, GPUDebugInterface *gpuDebu
|
||||
DrawFramebuffersWindow(cfg_, gpuDebug->GetFramebufferManagerCommon());
|
||||
}
|
||||
|
||||
if (cfg_.texturesOpen) {
|
||||
DrawTexturesWindow(cfg_, gpuDebug->GetTextureCacheCommon());
|
||||
}
|
||||
|
||||
if (cfg_.displayOpen) {
|
||||
DrawDisplayWindow(cfg_, gpuDebug->GetFramebufferManagerCommon());
|
||||
}
|
||||
@@ -1115,6 +1120,7 @@ void ImConfig::SyncConfig(IniFile *ini, bool save) {
|
||||
sync.Sync("filesystemBrowserOpen", &filesystemBrowserOpen, false);
|
||||
sync.Sync("kernelObjectsOpen", &kernelObjectsOpen, false);
|
||||
sync.Sync("audioChannelsOpen", &audioChannelsOpen, false);
|
||||
sync.Sync("texturesOpen", &texturesOpen, false);
|
||||
|
||||
sync.SetSection(ini->GetOrCreateSection("Settings"));
|
||||
sync.Sync("displayLatched", &displayLatched, false);
|
||||
|
||||
Reference in new issue
Block a user