A structure specifying the parameters of a GPU render state.
Defined in <SDL3/SDL_render.h>
typedef struct SDL_GPURenderStateCreateInfo
{/**< The fragment shader to use when this render state is active */
SDL_GPUShader *fragment_shader;
/**< The number of additional fragment samplers to bind when this render state is active */
Sint32 num_sampler_bindings; const SDL_GPUTextureSamplerBinding *sampler_bindings; /**< Additional fragment samplers to bind when this render state is active */
/**< The number of storage textures to bind when this render state is active */
Sint32 num_storage_textures; const *storage_textures; /**< Storage textures to bind when this render state is active */
SDL_GPUTexture *
/**< The number of storage buffers to bind when this render state is active */
Sint32 num_storage_buffers; const *storage_buffers; /**< Storage buffers to bind when this render state is active */
SDL_GPUBuffer *
/**< A properties ID for extensions. Should be 0 if no extensions are needed. */
SDL_PropertiesID props; } SDL_GPURenderStateCreateInfo;
This struct is available since SDL 3.4.0.