Get the SDL pixel format corresponding to a GPU texture format.
Defined in <SDL3/SDL_gpu.h>
SDL_PixelFormat SDL_GetPixelFormatFromGPUTextureFormat(SDL_GPUTextureFormat format);
SDL_GPUTextureFormat | format | a texture format. |
(SDL_PixelFormat) Returns the corresponding pixel format, or SDL_PIXELFORMAT_UNKNOWN if there is no corresponding pixel format.
This function is available since SDL 3.4.0.