SDL_GPUTextureSupportsFormat - Determines whether a texture format is supported for a given type and
Contents
Availability
This function is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.10 SDL_GPUTextureSupportsFormat(3)
Function 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.
Header File
Defined in SDL3/SDL_gpu.h
Name
SDL_GPUTextureSupportsFormat - Determines whether a texture format is supported for a given type and
usage.
Return Value
Returns whether the texture format is supported for this type and usage.
Synopsis
#include"SDL3/SDL.h"boolSDL_GPUTextureSupportsFormat(SDL_GPUDevice*device,SDL_GPUTextureFormatformat,SDL_GPUTextureTypetype,SDL_GPUTextureUsageFlagsusage);
