You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I wanna start by saying I'm probably wrong about this somehow, as I'm very new to nannou, and rust in general. So, sorry if I missed something obvious. Anyway, I was trying to run some of the example files with cargo, but I kept getting this error:
error[E0433]: failed to resolve: could not find `ShaderType`in`hotglsl`
--> nannou_isf/src/pipeline.rs:419:31
|
419 |let ty = hotglsl::ShaderType::Fragment;| ^^^^^^^^^^ could not find `ShaderType`in`hotglsl`
For more information about this error, try `rustc --explain E0433`.
error: could not compile `nannou_isf` (lib) due to 1 previous error
I looked through the code at that line, and couldn't immediately figure out what was wrong. I tried updating everything with cargo update and rustup update, but that didn't seem to fix it. I went though the code on github to make sure that the code was the same on the same line, and it was. So I decided to look through the crate on docs.rs, but I couldn't find any mention of ShaderType anywhere in the documentation. I eventually decided to make a change to the pipeline.rs file on my computer and changed the reference on line 419 from ShaderType to ShaderStage, because it looked like that enum was serving the same purpose that ShaderType was trying to serve. Here's the whole function just for more context:
I added a comment to make it clear what I changed.
Anyway everything seems to be working as expected now. I'm sorry of this is poorly formatted or missing important information. This is my first time creating a Github Issue.
The text was updated successfully, but these errors were encountered:
Hi! We're in the middle of a big rewrite at the moment. I'm glad you were able to get it working -- we're soon to deprecate this code, and so it's possible that it's just breaking on main atm. I'll take a look later and see if I can incorporate your fix :)
Hello, I wanna start by saying I'm probably wrong about this somehow, as I'm very new to nannou, and rust in general. So, sorry if I missed something obvious. Anyway, I was trying to run some of the example files with cargo, but I kept getting this error:
I looked through the code at that line, and couldn't immediately figure out what was wrong. I tried updating everything with
cargo update
andrustup update
, but that didn't seem to fix it. I went though the code on github to make sure that the code was the same on the same line, and it was. So I decided to look through the crate on docs.rs, but I couldn't find any mention of ShaderType anywhere in the documentation. I eventually decided to make a change to the pipeline.rs file on my computer and changed the reference on line 419 from ShaderType to ShaderStage, because it looked like that enum was serving the same purpose that ShaderType was trying to serve. Here's the whole function just for more context:I added a comment to make it clear what I changed.
Anyway everything seems to be working as expected now. I'm sorry of this is poorly formatted or missing important information. This is my first time creating a Github Issue.
The text was updated successfully, but these errors were encountered: