SDL_SetGPURenderStateFragmentUniforms - Man Page
Set fragment shader uniform variables in a custom GPU render state.
Synopsis
#include <SDL3/SDL_render.h> bool SDL_SetGPURenderStateFragmentUniforms(SDL_GPURenderState *state, Uint32 slot_index, const void *data, Uint32 length);
Description
The data is copied and will be pushed using SDL_PushGPUFragmentUniformData() during draw call execution.
Function Parameters
- state
the state to modify.
- slot_index
the fragment uniform slot to push data to.
- data
client data to write.
- length
the length of the data to write.
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.4.0.
Referenced By
SDL_CreateGPURenderState(3), SDL_GPURenderState.3type(3).
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS