table of contents
other versions
- experimental 3.5~git20260404~173adc1+ds-1
| SDL_SetGPURenderStateSamplerBindings(3) | SDL3 FUNCTIONS | SDL_SetGPURenderStateSamplerBindings(3) |
NAME¶
SDL_SetGPURenderStateSamplerBindings - Set sampler bindings variables in a custom GPU render state.
SYNOPSIS¶
#include <SDL3/SDL_render.h>
bool SDL_SetGPURenderStateSamplerBindings(SDL_GPURenderState *state, int num_sampler_bindings, const SDL_GPUTextureSamplerBinding *sampler_bindings);
DESCRIPTION¶
The data is copied and will be binded using SDL_BindGPUFragmentSamplers() during draw call execution.
FUNCTION PARAMETERS¶
- state
- the state to modify.
- num_sampler_bindings
- The number of additional fragment samplers to bind.
- sampler_bindings
- Additional fragment samplers to bind.
RETURN VALUE¶
Returns true on success or false on failure; call SDL_GetError() for more information.
THREAD SAFETY¶
This function should be called on the thread that created the renderer.
AVAILABILITY¶
This function is available since SDL 3.6.0.
| SDL 3.5.0 | Simple Directmedia Layer |