SDL 3.0
SDL_GPURenderStateDesc Struct Reference

#include <SDL_render.h>

+ Collaboration diagram for SDL_GPURenderStateDesc:

Data Fields

Uint32 version
 
SDL_GPUShader * fragment_shader
 
Sint32 num_sampler_bindings
 
const SDL_GPUTextureSamplerBinding * sampler_bindings
 
Sint32 num_storage_textures
 
SDL_GPUTexture *const * storage_textures
 
Sint32 num_storage_buffers
 
SDL_GPUBuffer *const * storage_buffers
 

Detailed Description

GPU render state description.

This structure should be initialized using SDL_INIT_INTERFACE().

Since
This struct is available since SDL 3.4.0.
See also
SDL_CreateGPURenderState

Definition at line 2819 of file SDL_render.h.

Field Documentation

◆ fragment_shader

SDL_GPUShader* SDL_GPURenderStateDesc::fragment_shader

The fragment shader to use when this render state is active

Definition at line 2823 of file SDL_render.h.

◆ num_sampler_bindings

Sint32 SDL_GPURenderStateDesc::num_sampler_bindings

The number of additional fragment samplers to bind when this render state is active

Definition at line 2825 of file SDL_render.h.

◆ num_storage_buffers

Sint32 SDL_GPURenderStateDesc::num_storage_buffers

The number of storage buffers to bind when this render state is active

Definition at line 2831 of file SDL_render.h.

◆ num_storage_textures

Sint32 SDL_GPURenderStateDesc::num_storage_textures

The number of storage textures to bind when this render state is active

Definition at line 2828 of file SDL_render.h.

◆ sampler_bindings

const SDL_GPUTextureSamplerBinding* SDL_GPURenderStateDesc::sampler_bindings

Additional fragment samplers to bind when this render state is active

Definition at line 2826 of file SDL_render.h.

◆ storage_buffers

SDL_GPUBuffer* const* SDL_GPURenderStateDesc::storage_buffers

Storage buffers to bind when this render state is active

Definition at line 2832 of file SDL_render.h.

◆ storage_textures

SDL_GPUTexture* const* SDL_GPURenderStateDesc::storage_textures

Storage textures to bind when this render state is active

Definition at line 2829 of file SDL_render.h.

◆ version

Uint32 SDL_GPURenderStateDesc::version

the version of this interface

Definition at line 2821 of file SDL_render.h.


The documentation for this struct was generated from the following file: