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