Overlay: Add DepthOnly GPU debug capture scope

Allow to capture the depth loop.
This commit is contained in:
Clément Foucault
2025-03-07 11:18:26 +01:00
parent 1e00054195
commit 4179960ede

View File

@@ -647,8 +647,12 @@ void Instance::draw(Manager &manager)
static gpu::DebugScope select_scope = {"Selection"};
static gpu::DebugScope draw_scope = {"Overlay"};
static gpu::DebugScope depth_scope = {"DepthOnly"};
if (resources.is_selection()) {
if (state.is_depth_only_drawing) {
depth_scope.begin_capture();
}
else if (resources.is_selection()) {
select_scope.begin_capture();
}
else {
@@ -709,7 +713,10 @@ void Instance::draw(Manager &manager)
resources.read_result();
if (resources.is_selection()) {
if (state.is_depth_only_drawing) {
depth_scope.end_capture();
}
else if (resources.is_selection()) {
select_scope.end_capture();
}
else {