2016-07-27 2 views
0

vulkanoを使用しました。すべての例はa new crateです。私は、フォルダexamplesアウトをコピーして、私は私が手に構築しようとした際安全でない形質の実装を見つけることができません

[package] 
name = "examples" 
version = "0.1.0" 
build = "build.rs" 

[dependencies] 
vulkano = "0.1.0" 
vulkano-win = "0.1.0" 
cgmath = "0.7.0" 
image = "0.6.1" 
winit = "0.5.1" 

[build-dependencies] 
vk-sys = "0.1.1" 
vulkano-shaders = "0.1.0" 

にCargo.tomlを変更:

error: the trait bound `(f32, f32, f32): vulkano::pipeline::vertex::VertexMember` is not satisfied [E0277] 
) { T :: format () } let dummy = 0usize as * const $ out ; f (
                  ^
note: in this expansion of impl_vertex! (defined in <vulkano macros>) 
help: run `rustc --explain E0277` to see a detailed explanation 
note: required by `<Vertex as vulkano::pipeline::vertex::Vertex>::member::f` 

エラーがhere位置し、形質がimplemented hereです。

なぜこのエラーが発生しますか? Rustはなぜ形質がVertexMemberで満たされていないと教えてくれるのですか?

答えて

0

問題は、crates.ioから貨物が使用するバージョンが一致していないようだったということでした。すべての依存関係を指すと.gitが動作します。

[package] 
name = "examples" 
version = "0.1.0" 
build = "build.rs" 

[dependencies] 
vulkano = { git = "https://github.com/tomaka/vulkano" } 
vulkano-win = { git = "https://github.com/tomaka/vulkano" } 
cgmath = "0.7.0" 
image = "0.6.1" 
winit = "0.5.1" 

[build-dependencies] 
vk-sys = { git = "https://github.com/tomaka/vulkano" } 
vulkano-shaders = { git = "https://github.com/tomaka/vulkano" } 
関連する問題