`ShaderDefVal` uses `String`: ```rust pub enum ShaderDefVal { Bool(String, bool), Int(String, i32), UInt(String, u32), } ``` But most `ShaderDefVal`s are `&'static str`. Replace the `String` with `Cow<'static, str>` can reduce heap allocations.
ShaderDefValusesString:But most
ShaderDefVals are&'static str. Replace theStringwithCow<'static, str>can reduce heap allocations.