Show offline list count and current specialized shader count in debugger (#44)

This commit is contained in:
Wiseguy 2024-06-02 12:59:19 -04:00 committed by GitHub
parent 1c9594d95b
commit e106c18965
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 0 deletions

View File

@ -2198,6 +2198,11 @@ namespace RT64 {
}
# endif
ImGui::NewLine();
ImGui::Text("Offline Shaders: %d", ext.rasterShaderCache->offlineList.entries.size());
ImGui::Text("Specialized Shaders: %d", ext.rasterShaderCache->shaderCount());
ImGui::NewLine();
bool ubershadersOnly = ext.workloadQueue->ubershadersOnly;
ImGui::Checkbox("Ubershaders Only", &ubershadersOnly);

View File

@ -367,4 +367,9 @@ namespace RT64 {
descQueueChanged.notify_all();
}
uint32_t RasterShaderCache::shaderCount() {
std::unique_lock<std::mutex> lock(GPUShadersMutex);
return GPUShaders.size();
}
};

View File

@ -86,5 +86,6 @@ namespace RT64 {
bool stopOfflineDumper();
bool loadOfflineList(std::istream &stream);
void resetOfflineList();
uint32_t shaderCount();
};
};