pub unsafe extern "C" fn SDL_SetGPURenderState(
renderer: *mut SDL_Renderer,
state: *mut SDL_GPURenderState,
) -> boolExpand description
Set custom GPU render state.
This function sets custom GPU render state for subsequent draw calls. This allows using custom shaders with the GPU renderer.
§Parameters
renderer: the renderer to use.state: the state to to use, or NULL to clear custom GPU render state.
§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.