SDL_GetGPURendererDevice - Man Page

Return the GPU device used by a renderer.

Synopsis

#include <SDL3/SDL_render.h>

SDL_GPUDevice * SDL_GetGPURendererDevice(SDL_Renderer *renderer);

Function Parameters

renderer

the rendering context.

Return Value

Returns the GPU device used by the renderer, or NULL if the renderer is not a GPU renderer; call SDL_GetError() for more information.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.4.0.

Referenced By

SDL_CreateGPURenderer(3).

SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS