logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GPUShaderCreateInfo - A structure specifying code and metadata for creating a shader object.

Availability

       This struct is available since SDL 3.2.0.

Name

       SDL_GPUShaderCreateInfo - A structure specifying code and metadata for creating a shader object.

See Also

SDL_CreateGPUShader(3)

Simple Directmedia Layer                           SDL 3.2.20                     SDL_GPUShaderCreateInfo(3type)

Synopsis

#include<SDL3/SDL_gpu.h>typedefstructSDL_GPUShaderCreateInfo{size_tcode_size;/**<Thesizeinbytesofthecodepointedto.*/constUint8*code;/**<Apointertoshadercode.*/constchar*entrypoint;/**<Apointertoanull-terminatedUTF-8stringspecifyingtheentrypointfunctionnamefortheshader.*/SDL_GPUShaderFormatformat;/**<Theformatoftheshadercode.*/SDL_GPUShaderStagestage;/**<Thestagetheshaderprogramcorrespondsto.*/Uint32num_samplers;/**<Thenumberofsamplersdefinedintheshader.*/Uint32num_storage_textures;/**<Thenumberofstoragetexturesdefinedintheshader.*/Uint32num_storage_buffers;/**<Thenumberofstoragebuffersdefinedintheshader.*/Uint32num_uniform_buffers;/**<Thenumberofuniformbuffersdefinedintheshader.*/SDL_PropertiesIDprops;/**<ApropertiesIDforextensions.Shouldbe0ifnoextensionsareneeded.*/}SDL_GPUShaderCreateInfo;

See Also