Add GPU debug labels for render passes

This commit is contained in:
2025-04-09 22:48:38 -07:00
parent 4ccdaea970
commit 698f890500
8 changed files with 60 additions and 0 deletions

View File

@@ -56,6 +56,10 @@ void KRRenderPass::create(KRDevice& device, const RenderPassInfo& info, const Vk
if (vkCreateRenderPass(device.m_logicalDevice, &createInfo, nullptr, &m_renderPass) != VK_SUCCESS) {
// failed! TODO - Error handling
}
#if KRENGINE_DEBUG_GPU_LABELS
device.setDebugLabel(m_renderPass, info.debugLabel);
#endif
}
void KRRenderPass::destroy(KRDevice& device)