Add Vulkan debug options to the Debug tab (#2254)

Co-authored-by: DanielSvoboda <daniel.svoboda@hotmail.com>
This commit is contained in:
tomboylover93 2025-01-30 14:34:31 -03:00 committed by GitHub
parent c89c7e8fed
commit e805b97520
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 1518 additions and 153 deletions

View file

@ -208,7 +208,7 @@ void Render(const vk::CommandBuffer& cmdbuf, const vk::ImageView& image_view,
return;
}
if (Config::vkHostMarkersEnabled()) {
if (Config::getVkHostMarkersEnabled()) {
cmdbuf.beginDebugUtilsLabelEXT(vk::DebugUtilsLabelEXT{
.pLabelName = "ImGui Render",
});
@ -233,7 +233,7 @@ void Render(const vk::CommandBuffer& cmdbuf, const vk::ImageView& image_view,
cmdbuf.beginRendering(render_info);
Vulkan::RenderDrawData(*draw_data, cmdbuf);
cmdbuf.endRendering();
if (Config::vkHostMarkersEnabled()) {
if (Config::getVkHostMarkersEnabled()) {
cmdbuf.endDebugUtilsLabelEXT();
}
}

View file

@ -152,7 +152,7 @@ void WorkerLoop() {
g_job_list.pop_front();
g_job_list_mtx.unlock();
if (Config::vkCrashDiagnosticEnabled()) {
if (Config::getVkCrashDiagnosticEnabled()) {
// FIXME: Crash diagnostic hangs when building the command buffer here
continue;
}