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

@@ -63,6 +63,10 @@ KrResult KRRenderGraphBlackFrame::initialize(KRSurface &surface)
info.depthAttachment.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR;
info.finalPass = true;
info.type = RenderPassType::RENDER_PASS_BLACK_FRAME;
#if KRENGINE_DEBUG_GPU_LABELS
strncpy(info.debugLabel, "Black Frame", KRENGINE_DEBUG_GPU_LABEL_MAX_LEN);
#endif
addRenderPass(*surface.getDevice(), info);
return KR_SUCCESS;