Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The moethods Shader::from_vertex_string and Shader::from_fragment_string won't build #300

Closed
LiquidityC opened this issue Nov 17, 2021 · 0 comments · Fixed by #301
Closed
Labels
Type: Bug Problems with the code/documentation that need to be fixed.

Comments

@LiquidityC
Copy link
Contributor

Summary

The following code:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Problems with the code/documentation that need to be fixed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant