Set custom GPU render state.
Defined in <SDL3/SDL_render.h>
bool SDL_SetRenderGPUState(SDL_Renderer *renderer, SDL_GPURenderState *state);
SDL_Renderer * | renderer | the renderer to use. |
SDL_GPURenderState * | state | the state to to use, or NULL to clear custom GPU render state. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
This function sets custom GPU render state for subsequent draw calls. This allows using custom shaders with the GPU renderer.
This function should be called on the thread that created the renderer.
This function is available since SDL 3.4.0.