diff --git a/client/scenes/lobby.cpp b/client/scenes/lobby.cpp index 5cf2f254..d6087c78 100644 --- a/client/scenes/lobby.cpp +++ b/client/scenes/lobby.cpp @@ -54,6 +54,11 @@ #include #include +#include "wivrn_config.h" +#if WIVRN_FEATURE_RENDERDOC +#include "vk/renderdoc.h" +#endif + using namespace std::chrono_literals; static bool force_autoconnect = false; @@ -641,6 +646,9 @@ void scenes::lobby::render(const XrFrameState & frame_state) } session.begin_frame(); +#if WIVRN_FEATURE_RENDERDOC + renderdoc_begin(*vk_instance); +#endif XrSpace world_space = application::space(xr::spaces::world); auto [flags, views] = session.locate_views(viewconfig, frame_state.predictedDisplayTime, world_space); @@ -796,6 +804,10 @@ void scenes::lobby::render(const XrFrameState & frame_state) } render_end(); + +#if WIVRN_FEATURE_RENDERDOC + renderdoc_end(*vk_instance); +#endif } void scenes::lobby::on_focused()