Skip to content

Commit 14b959e

Browse files
authored
Add debug group for Dear Imgui rendering (#51)
1 parent eb960f8 commit 14b959e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/imgui.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ void render(const wgpu::RenderPassEncoder& pass) noexcept {
113113
ImGui_ImplSDLRenderer3_RenderDrawData(data, renderer);
114114
SDL_RenderPresent(renderer);
115115
} else {
116+
pass.PushDebugGroup("Aurora: Dear Imgui");
116117
ImGui_ImplWGPU_RenderDrawData(data, pass.Get());
118+
pass.PopDebugGroup();
117119
}
118120
}
119121

0 commit comments

Comments
 (0)