table of contents
other versions
- experimental 3.3.2+git20251103~dc5b136+ds-1
| SDL_GetPixelFormatFromGPUTextureFormat(3) | SDL3 FUNCTIONS | SDL_GetPixelFormatFromGPUTextureFormat(3) |
NAME¶
SDL_GetPixelFormatFromGPUTextureFormat - 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.
| SDL 3.3.3 | Simple Directmedia Layer |