SDL_GPUTextu...tsSampleCount(3)
β¨ SDL_GPUTextureSupportsSampleCount β¨
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_GPUTextureSupportsSampleCount π
she's a lil function with a big question: does this texture format even do this sample count? let's get into it π«Ά
πΈ NAME πΈ
SDL_GPUTextureSupportsSampleCount β figures out if a sample count is supported for a texture format. no cap, that's literally her whole job π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_gpu.h>
bool SDL_GPUTextureSupportsSampleCount(
SDL_GPUDevice *device,
SDL_GPUTextureFormat format,
SDL_GPUSampleCount sample_count);
she takes three lil arguments and hands you back a bool β that's the whole vibe β¨
π FUNCTION PARAMETERS π
deviceβ a GPU context. it's giving "the place where all the GPU stuff lives" πformatβ the texture format you want checked. drop the format you're curious about right here πsample_countβ the sample count you want checked. same energy, but for the sample count bestie π
β RETURN VALUE β
Returns whether the sample count is supported for this texture format. so it's a yes/no situation β true if the format can vibe with that sample count, false if it's a hard no π
π§ AVAILABILITY π§
This function is available since SDL 3.2.0. if you're on anything older, she is simply not there yet, iykyk π
and that's the whole page, bestie!! go forth and vibe check your texture formats π
signing off from the Simple Directmedia Layer, running SDL 3.4.18 β mwah, slay, bye πβ¨π
π¦ 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