vulkano: Window example two errors. https://vulkano.rs/guide/window
- Version of vulkano: vulkano-win = “0.19”
- OS: Windows
- GPU (the selected PhysicalDevice): 1660 Ti
- GPU Driver: Nividia
- Upload of a reasonably minimal complete
main.rsfile that demonstrates the issue:
error[E0609]: no field shaderf3264 on type PhysicalDeviceFeatures
–> C:\Users\Home.cargo\registry\src\github.com-1ecc6299db9ec823\vulkano-0.19.0\src\features.rs:459:28
|
459 | core { shader_f3264 => shaderf3264 },
| ^^^^^^^^^^^ help: a field with a similar name exists: shaderInt64
error[E0308]: mismatched types
–> C:\Users\Home.cargo\registry\src\github.com-1ecc6299db9ec823\vulkano-0.19.0\src\command_buffer\sys.rs:1455:38
|
1455 | vk.CmdSetBlendConstants(cmd, constants); // TODO: correct to pass array?
| ^^^^^^^^^
| |
| expected &[f32; 4], found array [f32; 4]
|
Me and another person tried the open window example and we both get the errors above.
Code:
use winit::EventLoop;
use winit::WindowBuilder;
fn main(){
let events_loop = EventLoop::new();
let surface = WindowBuilder::new().build_vk_surface(&events_loop, instance.clone()).unwrap();
let instance = {
let extensions = vulkano_win::required_extensions();
Instance::new(None, &extensions, None).expect("failed to create Vulkan instance")
};
events_loop.run(|event, _, control_flow| {
match event {
winit::Event::WindowEvent { event: winit::WindowEvent::CloseRequested, .. } => {
*control_flow = ControlFlow::Exit;
},
_ => ()
}
});
}```
https://vulkano.rs/guide/window
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (6 by maintainers)
I got one of my projects to work by setting
Does
0.5.3contain a breaking change?