Set storage buffers variables in a custom GPU render state.
Defined in <SDL3/SDL_render.h>
bool SDL_SetGPURenderStateStorageBuffers(SDL_GPURenderState *state, int num_storage_buffers, SDL_GPUBuffer *const *storage_buffers);| SDL_GPURenderState * | state | the state to modify. |
| int | num_storage_buffers | The number of storage buffers to bind. |
| SDL_GPUBuffer *const * | storage_buffers | Storage buffers to bind. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
The data is copied and will be binded using SDL_BindGPUFragmentStorageBuffers() during draw call execution.
This function should be called on the thread that created the renderer.
This function is available since SDL 3.6.0.