SDL_GetGPUTextureFormatFromPixelFormat - Man Page
Get the GPU texture format corresponding to an SDL pixel format.
Synopsis
#include <SDL3/SDL_gpu.h> SDL_GPUTextureFormat SDL_GetGPUTextureFormatFromPixelFormat(SDL_PixelFormat format);
Function Parameters
- format
a pixel format.
Return Value
Returns the corresponding GPU texture format, or SDL_GPU_TEXTUREFORMAT_INVALID if there is no corresponding GPU texture format.
Availability
This function is available since SDL 3.4.0.
Info
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS