---
name: "SDL_PushGPUDebugGroup"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_PushGPUDebugGroup"
---

# SDL\_PushGPUDebugGroup(3)

Begins a debug group with an arbitary name.

## NAME

SDL\_PushGPUDebugGroup - Begins a debug group with an arbitary name.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_PushGPUDebugGroup(**     **SDL\_GPUCommandBuffer \*command\_buffer,**     **const char \*name);**

## 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.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_PopGPUDebugGroup**(3)](/SDL_PopGPUDebugGroup/3.md)
