Skip to content

cf_shader_compile_error

Category: graphics
GitHub: cute_graphics.h


Returns the error message from the most recent failed shader compilation, or NULL if it succeeded.

const char* cf_shader_compile_error();

Remarks

Errors name the exact construct and location, e.g. my_shader.shd:12: error: unknown function 'foo'. For draw shaders loaded from disk the path is the shader's own path. The string is owned by CF and valid until the next shader compilation. See cf_shader_on_error to be notified as errors happen.

CF_Shader
cf_make_shader
cf_make_draw_shader
cf_make_shader_from_source
cf_shader_on_error