textureSupportsFormat method

bool textureSupportsFormat(
  1. int format,
  2. int type,
  3. int usage
)

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

\param device a GPU context. \param format the texture format to check. \param type the type of texture (2D, 3D, Cube). \param usage a bitmask of all usage scenarios to check. \returns whether the texture format is supported for this type and usage.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC bool SDLCALL SDL_GPUTextureSupportsFormat( SDL_GPUDevice *device, SDL_GPUTextureFormat format, SDL_GPUTextureType type, SDL_GPUTextureUsageFlags usage)

See also:

Implementation

bool textureSupportsFormat(int format, int type, int usage) =>
    sdlGpuTextureSupportsFormat(this, format, type, usage);