Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

vulkano 0.19 build failure in empty project #90

Closed
cdwfs opened this issue Dec 30, 2020 · 3 comments
Closed

vulkano 0.19 build failure in empty project #90

cdwfs opened this issue Dec 30, 2020 · 3 comments

Comments

@cdwfs
Copy link

cdwfs commented Dec 30, 2020

I'm on the first page of the guide (which recommends installing vulkano 0.19), and just trying to build an empty main.rs with the crate installed gives me a build failure:

> Executing task: cargo build <

   Compiling vulkano v0.19.0
error[E0609]: no field `shaderf3264` on type `PhysicalDeviceFeatures`
   --> C:\Users\cdwfs\.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\cdwfs\.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]`
     |                                      help: consider borrowing here: `&constants`

error: aborting due to 2 previous errors

I'm on Windows, with version 1.2.162.0 of the Vulkan SDK installed if that makes a difference. I see vulkano 0.20.0 is available, and changing to "vulkano = 0.20" in Crates.toml made the error go away, so it may be worth updating the guide to suggest version 0.20 instead.

@clay53
Copy link

clay53 commented Apr 2, 2021

Not just a Windows only issue btw. It also fails on Arch Linux. The latest 0.22 version works as well.

@msparkles
Copy link

Using Arch Linux, it seems that only version 0.21 compiles.

@hakolao
Copy link
Collaborator

hakolao commented Apr 29, 2022

Closing this, as this is likely outdated now.

@hakolao hakolao closed this as completed Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants