@@ -669,6 +669,8 @@ pl_submit_2d_drawlist(plDrawList2D* ptDrawlist, plRenderEncoder* ptEncoder, floa
669669 if (pl_sb_size (ptDrawlist -> sbtVertexBuffer ) == 0u )
670670 return ;
671671
672+ gptGfx -> push_render_debug_group (ptEncoder , "2D Draw" , (plVec4 ){0.33f , 0.02f , 0.10f , 1.0f });
673+
672674 plDevice * ptDevice = gptDrawBackendCtx -> ptDevice ;
673675
674676 const uint32_t uFrameIdx = gptGfx -> get_current_frame_index ();
@@ -853,11 +855,15 @@ pl_submit_2d_drawlist(plDrawList2D* ptDrawlist, plRenderEncoder* ptEncoder, floa
853855 // bump vertex & index buffer offset
854856 ptBufferInfo -> uVertexBufferOffset += uVtxBufSzNeeded ;
855857 gptDrawBackendCtx -> auIndexBufferOffset [uFrameIdx ] += uIdxBufSzNeeded ;
858+
859+ gptGfx -> pop_render_debug_group (ptEncoder );
856860}
857861
858862static void
859863pl_submit_3d_drawlist (plDrawList3D * ptDrawlist , plRenderEncoder * ptEncoder , float fWidth , float fHeight , const plMat4 * ptMVP , plDrawFlags tFlags , uint32_t uMSAASampleCount )
860864{
865+ gptGfx -> push_render_debug_group (ptEncoder , "3D Draw" , (plVec4 ){0.33f , 0.02f , 0.10f , 1.0f });
866+
861867 plDevice * ptDevice = gptDrawBackendCtx -> ptDevice ;
862868 const uint32_t uFrameIdx = gptGfx -> get_current_frame_index ();
863869
@@ -1078,6 +1084,7 @@ pl_submit_3d_drawlist(plDrawList3D* ptDrawlist, plRenderEncoder* ptEncoder, floa
10781084
10791085 gptDraw -> submit_2d_layer (ptDrawlist -> ptLayer );
10801086 pl_submit_2d_drawlist (ptDrawlist -> pt2dDrawlist , ptEncoder , fWidth , fHeight , uMSAASampleCount );
1087+ gptGfx -> pop_render_debug_group (ptEncoder );
10811088}
10821089
10831090plBindGroupPool *
0 commit comments