Scroll to navigation

SDL_GPURenderStateDesc(3type) SDL3 DATATYPES SDL_GPURenderStateDesc(3type)

NAME

SDL_GPURenderStateDesc - GPU render state description.

SYNOPSIS

#include <SDL3/SDL_render.h>
typedef struct SDL_GPURenderStateDesc
{
    Uint32 version;                 /**< the version of this interface */

    SDL_GPUShader *fragment_shader; /**< The fragment shader to use when this render state is active */

    Sint32 num_sampler_bindings;    /**< The number of additional fragment samplers to bind when this render state is active */
    const SDL_GPUTextureSamplerBinding *sampler_bindings;   /**< Additional fragment samplers to bind when this render state is active */

    Sint32 num_storage_textures;    /**< The number of storage textures to bind when this render state is active */
    SDL_GPUTexture *const *storage_textures;    /**< Storage textures to bind when this render state is active */

    Sint32 num_storage_buffers;    /**< The number of storage buffers to bind when this render state is active */
    SDL_GPUBuffer *const *storage_buffers;      /**< Storage buffers to bind when this render state is active */
} SDL_GPURenderStateDesc;

DESCRIPTION

This structure should be initialized using SDL_INIT_INTERFACE().

AVAILABILITY

This struct is available since SDL 3.4.0.

SEE ALSO

SDL_CreateGPURenderState(3)

SDL 3.3.0 Simple Directmedia Layer