SDL_GetGPUTextureFormatFromPixelFormat

Function SDL_GetGPUTextureFormatFromPixelFormat 

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

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

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