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_GPUComputePipelineCreateInfo - A structure specifying the parameters of a compute pipeline state.

Availability

       This struct is available since SDL 3.2.0.

Name

       SDL_GPUComputePipelineCreateInfo - A structure specifying the parameters of a compute pipeline state.

See Also

SDL_CreateGPUComputePipeline(3), SDL_GPUShaderFormat(3type)

Simple Directmedia Layer                           SDL 3.2.20            SDL_GPUComputePipelineCreateInfo(3type)

Synopsis

#include<SDL3/SDL_gpu.h>typedefstructSDL_GPUComputePipelineCreateInfo{size_tcode_size;/**<Thesizeinbytesofthecomputeshadercodepointedto.*/constUint8*code;/**<Apointertocomputeshadercode.*/constchar*entrypoint;/**<Apointertoanull-terminatedUTF-8stringspecifyingtheentrypointfunctionnamefortheshader.*/SDL_GPUShaderFormatformat;/**<Theformatofthecomputeshadercode.*/Uint32num_samplers;/**<Thenumberofsamplersdefinedintheshader.*/Uint32num_readonly_storage_textures;/**<Thenumberofreadonlystoragetexturesdefinedintheshader.*/Uint32num_readonly_storage_buffers;/**<Thenumberofreadonlystoragebuffersdefinedintheshader.*/Uint32num_readwrite_storage_textures;/**<Thenumberofread-writestoragetexturesdefinedintheshader.*/Uint32num_readwrite_storage_buffers;/**<Thenumberofread-writestoragebuffersdefinedintheshader.*/Uint32num_uniform_buffers;/**<Thenumberofuniformbuffersdefinedintheshader.*/Uint32threadcount_x;/**<ThenumberofthreadsintheXdimension.Thisshouldmatchthevalueintheshader.*/Uint32threadcount_y;/**<ThenumberofthreadsintheYdimension.Thisshouldmatchthevalueintheshader.*/Uint32threadcount_z;/**<ThenumberofthreadsintheZdimension.Thisshouldmatchthevalueintheshader.*/SDL_PropertiesIDprops;/**<ApropertiesIDforextensions.Shouldbe0ifnoextensionsareneeded.*/}SDL_GPUComputePipelineCreateInfo;

See Also