Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatched Types (2 different versions of ash?) #2

Closed
Ihaa21 opened this issue Apr 16, 2021 · 3 comments
Closed

Mismatched Types (2 different versions of ash?) #2

Ihaa21 opened this issue Apr 16, 2021 · 3 comments

Comments

@Ihaa21
Copy link

Ihaa21 commented Apr 16, 2021

Hey, I tried building this project on a new install of rust and everything but I'm running into a few errors (there are 12 but here are 2 examples):

"error[E0308]: mismatched types
--> src\vulkan_base.rs:351:34
|
351 | physical_device: pdevice,
| ^^^^^^^ expected struct ash::vk::definitions::PhysicalDevice, found struct PhysicalDevice
|
= note: perhaps two different versions of crate ash are being used?

error[E0308]: mismatched types
--> src\vulkan_base.rs:352:25
|
352 | device: device.clone(),
| ^^^^^^^^^^^^^^ expected struct ash::device::Device, found struct vulkan_base::ash::Device
|
= note: perhaps two different versions of crate ash are being used?"

I tried building on various different versions of rust compiler but either they fail to run or they throw the above errors (1.45.0 - 1.50.0). Do you know what might be wrong/if there is a specific rust version I need to use? This is on a Windows machine.

@acowley
Copy link

acowley commented May 20, 2021

I was able to address this in two ways; you can try either:

  • bumping the ash and ash-window dependencies of this project to 0.32 and 0.6
  • editing Cargo.lock to get vk-mem to use version 0.31.0 of ash

(The tool cargo tree is very useful for diagnosing these things.) That said, while the program builds for me now, all it produces is a black window, so there seems to be some incompatibility remaining!

@sebbbi
Copy link
Owner

sebbbi commented May 28, 2021

Need to test on newest Rust when I have an extended weekend for the next time.

@sebbbi
Copy link
Owner

sebbbi commented Feb 13, 2022

fixed

@sebbbi sebbbi closed this as completed Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants