SDL_GPUTEXTUREFORMATTEXELBLOCKSIZE(3)

πŸ’… SDL_GPUTextureFormatTexelBlockSize πŸ’…

okay bestie, so this one lives in the SDL3 FUNCTIONS manual, and it's literally the glow-up you need when you're like "how big is one texel block for this format tho" 🫢


✨ NAME ✨

SDL_GPUTextureFormatTexelBlockSize β€” obtains the texel block size for a texture format. no cap, that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_gpu.h>

Uint32 SDL_GPUTextureFormatTexelBlockSize(
    SDL_GPUTextureFormat format);

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • format β€” the texture format you want to know the texel size of. like, hand me the format and I'll tell you its block size, periodt. πŸ’–

⭐ RETURN VALUE ⭐

Returns the texel block size of the texture format. that's it, that's the tea. ✨


πŸ‘‘ AVAILABILITY πŸ‘‘

This function is available since SDL 3.2.0. so if you're on anything older… girl, upgrade. 😭


🌈 SEE ALSO 🌈


okay so that's literally the whole page, mwah πŸ’…βœ¨

this was brought to you by Simple Directmedia Layer, SDL 3.4.18, iykyk β€” stay slay, bestie πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from