let shader = Shader::from_fragment_string(ctx, include_str!("../shaders/lighting.frag"))?;
produces this error:
let shader = Shader::from_fragment_string(ctx, include_str!("../shaders/lighting.frag"))?;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `P` declared on the associated function `from_fragment_string`
Steps to Reproduce
Quite simple to confirm using above code examples.
Additional Info
Removing the parameters from the two mentioned functions fixes the problem. I have a PR ready and I'll send it to you.
Summary
The following code:
produces this error:
Steps to Reproduce
Quite simple to confirm using above code examples.
Additional Info
Removing the parameters from the two mentioned functions fixes the problem. I have a PR ready and I'll send it to you.