Scroll to navigation

SDL_SetGPUBufferName(3) SDL3 FUNCTIONS SDL_SetGPUBufferName(3)

NAME

SDL_SetGPUBufferName - Sets an arbitrary string constant to label a buffer.

HEADER FILE

Defined in SDL3/SDL_gpu.h

SYNOPSIS

#include "SDL3/SDL.h"
void SDL_SetGPUBufferName(
    SDL_GPUDevice *device,
    SDL_GPUBuffer *buffer,
    const char *text);

DESCRIPTION

Useful for debugging.

FUNCTION PARAMETERS

a GPU Context.
a buffer to attach the name to.
a UTF-8 string constant to mark as the name of the buffer.

AVAILABILITY

This function is available since SDL 3.1.3.

SDL 3.1.6 Simple Directmedia Layer