SDL_GPUTextureSupportsFormat(3)
π NAME π
okay so bestie, welcome to the SDL3 FUNCTIONS manual, specifically the page for SDL_GPUTextureSupportsFormat(3). the function is SDL_GPUTextureSupportsFormat, and it determines whether a texture format is supported for a given type and usage. that's the tea. ββ¨
β¨ SYNOPSIS β¨
#include <SDL3/SDL_gpu.h>
bool SDL_GPUTextureSupportsFormat(
SDL_GPUDevice *device,
SDL_GPUTextureFormat format,
SDL_GPUTextureType type,
SDL_GPUTextureUsageFlags usage);
look at that signature, bestie. it's giving iconic and also extremely bool. π
π FUNCTION PARAMETERS π
deviceβ a GPU context. like, the GPU situation you're passing in. π«Άformatβ the texture format to check. the one you're vibe-checking. β¨typeβ the type of texture (2D, 3D, Cube). yep, those exact three. πusageβ a bitmask of all usage scenarios to check. all the usage scenarios, in bitmask form. π
πΈ RETURN VALUE πΈ
Returns whether the texture format is supported for this type and usage. it's giving yes-or-no, and honestly? we love that for it. π
π¦ AVAILABILITY π¦
This function is available since SDL 3.2.0. periodt. β¨
k bye bestie! this page came from Simple Directmedia Layer, version SDL 3.4.18, and it's the SDL_GPUTextureSupportsFormat(3) page. no date in the footer, just vibes. mwah π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms