feat: draw meshes with instanced multi-draw indirect
This commit is contained in:
@@ -208,6 +208,13 @@ if (!isRunning) break;
|
||||
if (ImGui::Begin("Debug", &m_DebugWindows.stats))
|
||||
{
|
||||
ImGui::Text("FPS: %.2f", avgFPS);
|
||||
|
||||
const auto& stats = renderer.getDrawStats();
|
||||
ImGui::SeparatorText("Meshes");
|
||||
ImGui::Text("Submitted meshes: %u", stats.meshDraws);
|
||||
ImGui::Text("Camera: %u indirect draws, %u instances", stats.mainViewCommands, stats.mainViewInstances);
|
||||
ImGui::Text("All views: %u indirect draws, %u instances", stats.indirectCommands, stats.instances);
|
||||
ImGui::Text("Pending GPU deletions: %zu", gfxDevice.getPendingDeletionCount());
|
||||
}
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user