SDL_GetPixelFormatFromGPUTextureFormat - Man Page

Get the SDL pixel format corresponding to a GPU texture format.

Synopsis

#include <SDL3/SDL_gpu.h>

SDL_PixelFormat SDL_GetPixelFormatFromGPUTextureFormat(SDL_GPUTextureFormat format);

Function Parameters

format

a texture format.

Return Value

Returns the corresponding pixel format, or SDL_PIXELFORMAT_UNKNOWN if there is no corresponding pixel format.

Availability

This function is available since SDL 3.4.0.

Info

SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS