Skip to content

cf_material_set_texture_cs

Category: graphics
GitHub: cute_graphics.h


Sets up a sampled texture for the compute shader stage.

void cf_material_set_texture_cs(CF_Material material, const char* name, CF_Texture texture);
Parameters Description
material The material.
name The name of the texture as it appears in the compute shader.
texture Data (usually an image) for a shader to access.

CF_Material
cf_material_set_uniform_cs
cf_dispatch_compute