Scroll to navigation

SDL_SetGPUTextureName(3) SDL3 FUNCTIONS SDL_SetGPUTextureName(3)

NAME

SDL_SetGPUTextureName - Sets an arbitrary string constant to label a texture.

HEADER FILE

Defined in SDL3/SDL_gpu.h

SYNOPSIS

#include "SDL3/SDL.h"
void SDL_SetGPUTextureName(
    SDL_GPUDevice *device,
    SDL_GPUTexture *texture,
    const char *text);

DESCRIPTION

Useful for debugging.

FUNCTION PARAMETERS

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

AVAILABILITY

This function is available since SDL 3.1.3.

SDL 3.1.6 Simple Directmedia Layer