Skip to content

cf_push_gpu_label

Category: graphics
GitHub: cute_graphics.h


Pushes a named region onto the GPU timeline, visible in RenderDoc/Nsight/PIX.

void cf_push_gpu_label(const char* name);
Parameters Description
name The region's display name in the capture.

Remarks

Purely diagnostic -- no rendering effect. Pop with cf_pop_gpu_label. Regions nest. No-op on the GLES backend. On WebGPU, a no-op unless the app was made with CF_APP_OPTIONS_GFX_DEBUG_BIT: there each region costs calls into the browser, and the draw API labels every batch.

cf_pop_gpu_label