-
Notifications
You must be signed in to change notification settings - Fork 13
Update rust-gpu
to the latest main
#91
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
base: main
Are you sure you want to change the base?
Conversation
I see you're interested in that specific feature in Rust-GPU/rust-gpu#302. So I just wanted to note that that change is in The way So if your intention is to just compile your shader with a newer version of I think if that's not clear from our README and docs we should update them. But of course you may also want to update |
Hm... what you said doesn't quite make sense to me.
|
Right, we could be talking about different things. Apologies. And also re-reading the README, we could definitely make things clearer.
Yes, which is confusing, because it's defined as optional and I don't actually know where it's used, if it all. We certainly use I think of But there the analogies end, because
But again I could still very well be misunderstanding you. So please correct me. |
I'm even more confused. My understanding is that
|
As I mentioned,
Exactly right.
Also right. I'm probably still misunderstanding you. Do you believe that each shader crate needs to install its own dedicated version of |
I looked at Now I see what you're saying, looks like upgrading |
I think that's very fair, especially because most of us are used to seeing
Thank you for your patience too! I'm 100% certain you're not the only one to go through this thought process and the conversation in this issue will be useful to future users. It also shows that we could tweak our docs too. |
Let me give this another try: There's two ways to use rust-gpu currently:
The direct way very much works like you expect: The version of spirv-builder you are using defines the version of the codegen backend you'll get. They are tightly linked with a direct dependency on each other. But that dependency also requires that your entire project to be compiled with the toolchain version the codegen backend needs. (I prefer not to call it old since it is very much in use within the rust-gpu repo.) Cargo-gpu breaks up the direct dependency of Effectively, For more detail, have a look here:
(we should copy this into the docs) |
Simply updates to the latest
main
, otherwise patching is quite cumbersome withgit
dependencies.I'm specifically interested in pulling Rust-GPU/rust-gpu#302.