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 π
SDL_UploadToGPUTexture(3)β your other main character, go say hi π«Ά
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
- 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