logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_PushGPUDebugGroup - Begins a debug group with an arbitary name.

Availability

       This function is available since SDL 3.2.0.

Description

       Used  for  denoting  groups  of  calls when viewing the command buffer callstream in a graphics debugging
       tool.

       Each call to SDL_PushGPUDebugGroup must have a corresponding call to SDL_PopGPUDebugGroup.

       On some backends (e.g. Metal), pushing a debug group during a  render/blit/compute  pass  will  create  a
       group  that  is scoped to the native pass rather than the command buffer. For best results, if you push a
       debug group during a pass, always pop it in the same pass.

Function Parameters

command_buffer
              a command buffer.

       name   a UTF-8 string constant that names the group.

Name

       SDL_PushGPUDebugGroup - Begins a debug group with an arbitary name.

See Also

SDL_PopGPUDebugGroup(3)

Simple Directmedia Layer                           SDL 3.2.20                           SDL_PushGPUDebugGroup(3)

Synopsis

#include<SDL3/SDL_gpu.h>voidSDL_PushGPUDebugGroup(SDL_GPUCommandBuffer*command_buffer,constchar*name);

See Also