SDL_BindGPUVertexSamplers

Binds texture-sampler pairs for use on the vertex shader.

The textures must have been created with SDL_GPU_TEXTUREUSAGE_SAMPLER.

Be sure your shader is set up according to the requirements documented in SDL_CreateGPUShader().

extern (C) nothrow @nogc extern
void
SDL_BindGPUVertexSamplers

Parameters

render_pass SDL_GPURenderPass*

a render pass handle.

first_slot Uint32

the vertex sampler slot to begin binding from.

texture_sampler_bindings const(SDL_GPUTextureSamplerBinding)*

an array of texture-sampler binding structs.

num_bindings Uint32

the number of texture-sampler pairs to bind from the array.

See Also

Meta