SDL_GetPixelFormatFromGPUTextureFormat

Function SDL_GetPixelFormatFromGPUTextureFormat 

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

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

§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.