SDL_BindGPUComputeSamplers

Binds texture-sampler pairs for use on the compute 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_BindGPUComputeSamplers

Parameters

compute_pass SDL_GPUComputePass*

a compute pass handle.

first_slot Uint32

the compute 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 bindings to bind from the array.

See Also

Meta