Skip to main content

SDL_GetPixelFormatFromGPUTextureFormat

Function SDL_GetPixelFormatFromGPUTextureFormat 

Source
pub unsafe extern "C" fn SDL_GetPixelFormatFromGPUTextureFormat(
    format: SDL_GPUTextureFormat,
) -> SDL_PixelFormat
Expand description

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

Parameter: format a texture format. Returns: the corresponding pixel format, or SDL_PIXELFORMAT_UNKNOWN if there is no corresponding pixel format.

Available Since: This function is available since SDL 3.4.0.