I have added the spirv-builder crate to my project, like described in the book. Then I created a workspace subcrate and added the spriv-std as a dependency. Due to limitations I need to work with the 2024 edition of rust, so I chose to use the 0.10.0-alpha.1 version of both. When compiling the minimal shader example from the examples folder I got following errors from the Spirv builder (from multiple source locations):
warning: vulkanotest2@0.1.0: error[E0432]: unresolved import `glam::UVec2`
warning: vulkanotest2@0.1.0: --> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spirv-std-0.10.0-alpha.1/src/arch.rs:11:5
warning: vulkanotest2@0.1.0: |
warning: vulkanotest2@0.1.0: 11 | use glam::UVec2;
warning: vulkanotest2@0.1.0: | ^^^^^^^^^^^ no `UVec2` in the root
warning: vulkanotest2@0.1.0: |
warning: vulkanotest2@0.1.0: help: a similar name exists in the module
warning: vulkanotest2@0.1.0: |
warning: vulkanotest2@0.1.0: 11 - use glam::UVec2;
warning: vulkanotest2@0.1.0: 11 + use glam::Vec2;
warning: vulkanotest2@0.1.0: |
warning: vulkanotest2@0.1.0:
my shader Cargo.toml has following dependencies:
[dependencies]
bytemuck = { version = "1.25.0", features = ["derive"] }
spirv-std = { version = "0.10.0-alpha.1", features = ["bytemuck"] }
Is this a known error from the alpha version or just me missing something?
I have added the
spirv-buildercrate to my project, like described in the book. Then I created a workspace subcrate and added thespriv-stdas a dependency. Due to limitations I need to work with the 2024 edition of rust, so I chose to use the0.10.0-alpha.1version of both. When compiling the minimal shader example from the examples folder I got following errors from the Spirv builder (from multiple source locations):my shader
Cargo.tomlhas following dependencies:Is this a known error from the alpha version or just me missing something?