SDL_GPUTEXTURESAMPLERBINDING(3type)
β¨ NAME β¨
SDL_GPUTextureSamplerBinding β bestie, this is the struct that holds all the params for a sampler binding call π it's from the SDL3 DATATYPES crew, and we're gonna get you so comfy with it.
π SYNOPSIS π
#include <SDL3/SDL_gpu.h>
typedef struct SDL_GPUTextureSamplerBinding
{
SDL_GPUTexture *texture; /**< The texture to bind. Must have been created with SDL_GPU_TEXTUREUSAGE_SAMPLER. */
SDL_GPUSampler *sampler; /**< The sampler to bind. */
} SDL_GPUTextureSamplerBinding;
okay so it's literally just two pointers and that's the whole vibe. no cap. let's break it down π¦
SDL_GPUTexture *textureβ the texture you're binding. IMPORTANT: it must have been created withSDL_GPU_TEXTUREUSAGE_SAMPLER, no exceptions, she checks the receipts πSDL_GPUSampler *samplerβ the sampler you're binding. that's it. that's the field π
πΈ AVAILABILITY πΈ
this gorgeous lil struct has been on the scene since SDL 3.2.0 π so if you're on anything older, she is not there, and that's on periodt.
π SEE ALSO π
go read these next, bestie, they're all connected iykyk:
SDL_BindGPUVertexSamplers(3)SDL_BindGPUFragmentSamplers(3)SDL_GPUTexture(3type)SDL_GPUSampler(3type)
and that's the whole page!! this came to you from Simple Directmedia Layer, living its best life as part of SDL 3.4.18 β¨ mwah, go bind some textures, you're gonna slay π«Άπ
π¦ 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