Skip to content

cf_compute_shader_reload

Category: graphics
GitHub: cute_graphics.h


Reloads a compute shader from its original file path.

bool cf_compute_shader_reload(CF_ComputeShader* shader);
Parameters Description
shader Pointer to the compute shader handle. Updated in-place on success.

Return Value

Returns true on success.

Remarks

Only works for compute shaders originally created with cf_make_compute_shader. The shader's path is recorded internally at creation time.

CF_ComputeShader
cf_make_compute_shader
cf_destroy_compute_shader