azul_webrender_build::shader

Function build_shader_strings

Source
pub fn build_shader_strings<G: Fn(&str) -> Cow<'static, str>>(
    gl_version: ShaderVersion,
    features: &[&str],
    base_filename: &str,
    get_source: &G,
) -> (String, String)
Expand description

Creates heap-allocated strings for both vertex and fragment shaders.