cf_make_draw_shader_from_bytecode¶
Category: draw
GitHub: cute_draw.h
Creates a custom draw shader from bytecode.
Remarks¶
Your shader must be written in GLSL 450, and must follow some specific rules to be compatible with the draw API. For more in-depth explanations, see CF's docs on Draw Shaders. Note precompiled draw shaders never contain runtime-registered custom SDF shapes (cf_make_custom_shape); custom shapes render invisibly while a bytecode draw shader is pushed.
Related Pages¶
CF_Shader
CF_DrawShaderBytecode
cf_draw_push_shader
cf_draw_pop_shader
cf_draw_peek_shader
cf_make_custom_shape