Closed
Description
#[unroll::unroll_for_loops]
fn unroll_loop(a: Vec3) -> Vec3 {
let mut b = Vec3::default();
for i in 0..3 {
b[i] + 1.0;
}
b
}
cargo +nightly build (base)
Compiling wgpu-example-runner v0.1.0 (/home/dvc/implicit/marching_rays/runner)
error: failed to run custom build command for `wgpu-example-runner v0.1.0 (/home/dvc/implicit/marching_rays/runner)`
Caused by:
process didn't exit successfully: `/home/dvc/implicit/marching_rays/target/debug/build/wgpu-example-runner-fbbe94bc606d1aa7/build-script-build` (exit code: 1)
--- stderr
Compiling wgpu-example-shader v0.1.0 (/home/dvc/implicit/marching_rays/shader)
error[E0463]: can't find crate for `unroll`
--> shader/src/lib.rs:45:3
|
45 | #[unroll::unroll_for_loops]
| ^^^^^^ can't find crate
|
= note: extern location for unroll is of an unknown type: /home/dvc/implicit/marching_rays/target/release/deps/libunroll-75b6e6a2c714c829.so
= help: file name should be lib*.rlib or *..spv
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: could not compile `wgpu-example-shader`
To learn more, run the command again with --verbose.
Error: BuildFailed