cf_shader_on_error¶
Category: graphics
GitHub: cute_graphics.h
Reports shader compilation errors as they happen.
| Parameters | Description |
|---|---|
on_error_fn |
The reporting callback, handed the full error message. |
udata |
An optional void* passed back to you whenever on_error_fn is called. |
Remarks¶
This is an optional function intended to help facilitate runtime shader reloading during development, e.g. to display compile errors in an in-game overlay instead of just stderr. See also cf_shader_compile_error to poll the most recent error.
Related Pages¶
CF_Shader
cf_shader_compile_error
cf_shader_on_changed
cf_make_draw_shader