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_DispatchGPUCompute - Dispatches compute work.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                          SDL_DispatchGPUCompute(3)

Description

       You must not call this function before binding a compute pipeline.

       A  VERY  IMPORTANT NOTE If you dispatch multiple times in a compute pass, and the dispatches write to the
       same resource region as each other, there is no guarantee of which order the writes will  occur.  If  the
       write order matters, you MUST end the compute pass and begin another one.

Function Parameters

compute_pass
              a compute pass handle.

       groupcount_x
              number of local workgroups to dispatch in the X dimension.

       groupcount_y
              number of local workgroups to dispatch in the Y dimension.

       groupcount_z
              number of local workgroups to dispatch in the Z dimension.

Header File

       Defined in SDL3/SDL_gpu.h

Name

       SDL_DispatchGPUCompute - Dispatches compute work.

Synopsis

#include"SDL3/SDL.h"voidSDL_DispatchGPUCompute(SDL_GPUComputePass*compute_pass,Uint32groupcount_x,Uint32groupcount_y,Uint32groupcount_z);

See Also