cf_material_set_uniform_cs¶
Category: graphics
GitHub: cute_graphics.h
Sets up a uniform value for the compute shader stage.
void cf_material_set_uniform_cs(CF_Material material, const char* name, void* data, CF_UniformType type, int array_length);
| Parameters | Description |
|---|---|
material |
The material. |
name |
The name of the uniform as it appears in the compute shader. |
data |
The value of the uniform. |
type |
The type of the uniform. See CF_UniformType. |
array_length |
The number of elements in the uniform array. |
Remarks¶
Same name-matching behavior as cf_material_set_uniform_vs/cf_material_set_uniform_fs.