Function SDL_GPUTextureSupportsFormat

Source
pub unsafe extern "C" fn SDL_GPUTextureSupportsFormat(
    device: *mut SDL_GPUDevice,
    format: SDL_GPUTextureFormat,
    type: SDL_GPUTextureType,
    usage: SDL_GPUTextureUsageFlags,
) -> bool
Expand description

Determines whether a texture format is supported for a given type and usage.

§Parameters

  • device: a GPU context.
  • format: the texture format to check.
  • type: the type of texture (2D, 3D, Cube).
  • usage: a bitmask of all usage scenarios to check.

§Return value

Returns whether the texture format is supported for this type and usage.

§Availability

This function is available since SDL 3.2.0.