SDL_GPUTextureSupportsFormat

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

extern (C) nothrow @nogc extern
bool
SDL_GPUTextureSupportsFormat

Parameters

device SDL_GPUDevice*

a GPU context.

format SDL_GPUTextureFormat

the texture format to check.

type SDL_GPUTextureType

the type of texture (2D, 3D, Cube).

usage SDL_GPUTextureUsageFlags

a bitmask of all usage scenarios to check.

Return Value

Type: bool

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

Meta