Skip to content

cf_dispatch_compute

Category: graphics
GitHub: cute_graphics.h


Dispatches a compute shader.

void cf_dispatch_compute(CF_ComputeShader shader, CF_Material material, CF_ComputeDispatch dispatch);
Parameters Description
shader The compute shader to dispatch.
material Holds uniforms and sampled textures for the compute stage (set via cf_material_set_uniform_cs / cf_material_set_texture_cs).
dispatch Storage resources and workgroup counts.

CF_ComputeShader
CF_ComputeDispatch
CF_Material
cf_material_set_uniform_cs
cf_material_set_texture_cs