vulkan-portability on MacOS panics
rybertm opened this issue · 5 comments
Line 23 in 55cafa3
gfx-backend-vulkan
feature inside wgpu/wgpu-core
but in this crate only vulkan-portability
gets set, so when gfx_select!
is expanded it checks for gfx-backend-vulkan
, which is not present in wgpu-rs
: Lines 593 to 595 in 55cafa3
As for fixing, I could add a gfx-backend-vulkan
dependency to the vulkan-portability
feature as well as add it to macos targets, but I don't know if it could break in other unix systems @kvark.
Originally posted by @rybertm in #575 (comment)
Looks like
Line 23 in 78234dd
broke the "vulkan-portability" feature on MacOS for the same reason stated above, quoted from the original issue.
The same fix could be applied unless there's other plans.
I'm thinking that, since gfx_select!
isn't ever used internally by wgpu-core
, the feature it should be checking should be "vulkan-portability" (instead of "gfx-backend-vulkan"), even though wgpu-core
doesn't have this feature.
Not sure if i should submit a PR with that change or if you want some discussion around it or ideas
I decided to remove support for Vulkan Portability, at least for the 0.8 release.
The reason for it being - our validation is very good now, and Naga's Metal output is great. So we have very little value to extract from running with Vulkan Validation Layers at this point.