SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_GetGPUTextureFormatFromPixelFormat

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

Header File

Defined in <SDL3/SDL_gpu.h>

Syntax

SDL_GPUTextureFormat SDL_GetGPUTextureFormatFromPixelFormat(SDL_PixelFormat format);

Function Parameters

SDL_PixelFormat format a pixel format.

Return Value

(SDL_GPUTextureFormat) Returns the corresponding GPU texture format, or SDL_GPU_TEXTUREFORMAT_INVALID if there is no corresponding GPU texture format.

Version

This function is available since SDL 3.4.0.


CategoryAPI, CategoryAPIFunction, CategoryGPU


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.