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
I like this project! I agree, I think this is the better way to compile shaders. Personally I think it makes it more intuitive when you're actually using a separate tool to do the SPIRV compiling.
I tried installing it with cargo install --git https://github.com/expenses/rust-gpu-cli-builder, but when running the global binary I get:
Could not find librustc_codegen_spirv.so in library path
I'm still relatively new to Rust, so maybe this is an easy fix, I'm not sure. Anyway, it works totally fine when just doing the normal git clone .. then cargo run ...
The text was updated successfully, but these errors were encountered:
Hey! Glad you like it. So to my understanding, spirv-builder puts the librustc_codegen_spirv.so library in the rust-gpu-cli-buildertarget directory and dynamically links with it. This means that you can't currently use rust-gpu-cli-builder with cargo install because this librustc_codegen_spirv.so isn't there.
The way I've been using this crate is to cd into the rust-gpu-cli-builder directory to compile shaders. It's not very elegant but it does work. I would love to get cargo install working though. Perhaps this would be possible by copying librustc_codegen_spirv.so about?
I'm pretty busy at the moment, but I think I'll try and add a note to the readme about cargo install not currently working and when I have more time I'll look into this more. Thanks for filing the issue :)
I like this project! I agree, I think this is the better way to compile shaders. Personally I think it makes it more intuitive when you're actually using a separate tool to do the SPIRV compiling.
I tried installing it with
cargo install --git https://github.com/expenses/rust-gpu-cli-builder
, but when running the global binary I get:Could not find librustc_codegen_spirv.so in library path
I'm still relatively new to Rust, so maybe this is an easy fix, I'm not sure. Anyway, it works totally fine when just doing the normal
git clone ..
thencargo run ...
The text was updated successfully, but these errors were encountered: