-
Notifications
You must be signed in to change notification settings - Fork 196
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
ash-window: Upgrade to raw-window-handle 0.4.2 #505
Conversation
Thanks @msiglreith, seems we can update to rust-windowing/raw-window-metal#4 (v0.2) without any other changes (though the CI doesn't build-test a mac/ios build afaik). |
What is this waiting on? |
@dvc94ch As long as we stick on 0.3.4, this crate can be used with both the 0.3.4 and 0.4.1 |
Not quite sure what you mean, this is the error I get with the winit provided handle:
|
e10bed8
to
7aa6bbc
Compare
339f864
to
3327818
Compare
The match arms are not guarded by `cfg` anymore, allowing us to compile-test these simple arms on every system whenever our Ash extension helpers and types are not guarded by `cfg` attributes either. This applies to every platform except Mac/IOS where the symbols and external raw-window-metal crate are themselves guarded by cfg's.
The match arms are not guarded by `cfg` anymore, allowing us to compile-test these simple arms on every system whenever our Ash extension helpers and types are not guarded by `cfg` attributes either. This applies to every platform except Mac/IOS where the symbols and external raw-window-metal crate are themselves guarded by cfg's.
Note that this depends on one of the many winit 0.25 example upgrades (though we'll require 0.26 to make
raw-window-handle
0.4 work) in order to succeed compilation on the examples.Not sure about the timing on this one: raw-window-handle just came out, and winit 0.26 too. There's a compatibility in 0.3.4 that allows consumers like this ash-window crate to consume the 0.4 handle (because the trait is implemented for it) produced by ie. winit, so there's a good reason to stay on 0.3.4 for longer to have wider adoption before migrating the ash-window crate - which is unfortunately tied in to the ash version! This just provides a git branch/rev for crate authors to use if they desire to deduplicate their raw-window-handle dependency in the crate graph.
I wonder if we can use a lower and upper version bound on ash and just perform minor releases of ash-window to increase that upper bound whenever a new, compatible version of ash is released. A bit like the proposed fixes for vma. We can keep two ash-window major releases in parallel, but that's going to get hairy as soon as there's a breaking change in ash (in fact the unreleased "Support linking vulkan directly" PR changes our API surface already).
The match arms are not guarded by
cfg
anymore, allowing us to compile-test these simple arms on every system whenever our Ash extension helpers and types are not guarded bycfg
attributes either. This applies to every platform except Mac/IOS where the symbols and external raw-window-metal crate are themselves guarded by cfg's.CC @msiglreith, seems like we need an update to https://github.com/norse-rs/raw-window-metal before this could even work :)