Conversation
5fcf85a to
846794b
Compare
| use-installed-tools = ["spirv-tools/use-installed-tools", "naga"] | ||
| # If enabled will compile and link the C++ code for the spirv tools, the compiled | ||
| # version is preferred if both this and `use-installed-tools` are enabled | ||
| use-compiled-tools = ["spirv-tools/use-compiled-tools"] | ||
| use-compiled-tools = ["spirv-tools/use-compiled-tools", "naga"] |
There was a problem hiding this comment.
Hm, this effectively makes naga non-optional if I'm reading it correctly. Is it intentional?
There was a problem hiding this comment.
That's from the old PR, added with comment
wgsl: enable naga feature by default, cargo-gpu can't handle it
So this was more a hack than anything else. I'll have a look what the compile time impact is, and if it's actually significant (which next to spirv-tools-sys may not be), look into making it optional and supported by cargo-gpu.
There was a problem hiding this comment.
I'm wondering if naga should really be a dependency of either of those two features. Why not let user specify it explicitly instead?
There was a problem hiding this comment.
cargo-gpu can't handle it
we'd need to build the infra in cargo-gpu first
32d2899 to
6e2f673
Compare
d637f7c to
65e4222
Compare
6e2f673 to
231bcb7
Compare
65e4222 to
5b9ad34
Compare
…s or instructions
231bcb7 to
0209a20
Compare
Requires #491, #495
Supersedes #280
Adds
spirv-unknown-naga-wgsltarget for built-in naga transpilation to wgsl. Further naga targets could be added easily.Quite a lot compiletest still fail with the naga target.