Scroll to navigation

SDL_SetGPURenderStateStorageTextures(3) SDL3 FUNCTIONS SDL_SetGPURenderStateStorageTextures(3)

NAME

SDL_SetGPURenderStateStorageTextures - Set storage textures variables in a custom GPU render state.

SYNOPSIS

#include <SDL3/SDL_render.h>
bool SDL_SetGPURenderStateStorageTextures(SDL_GPURenderState *state, int num_storage_textures, SDL_GPUTexture *const *storage_textures);

DESCRIPTION

The data is copied and will be binded using SDL_BindGPUFragmentStorageTextures() during draw call execution.

FUNCTION PARAMETERS

the state to modify.
The number of storage textures to bind.
Storage textures 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