Jinlei Li
Jinlei Li
As soon as `metal-rs` merges the PR you replaced with objc2, I'm interested in completing the `wgpu`-hal part
All field values within SurfaceConfiguration should have a valid default value (exclude width and height), it's just that this value may be reinterpreted in different backends, as in the case...
@cwfitzgerald Is it acceptable to use `AutoNoVsync` instead of `Fifo` here?
Yes, but metal-rs currently does not directly depend on `core-graphics` crate, just `core-graphics-types`
Run on the master branch of wgpu using M1 Mac,crashed on vk backend too. it works on metal backend, but the output are wrong: ```sh ... 59953, 59954, 59955, 59956,...
> 2. no, I don't need to explicitly create a CAMetalLayer myself, because WGPU has a logic to create one when there is none. Yes, don't need to create CAMetalLayer...
> @jinleili , do you intend to continue work on this PR? Yes, I still want to get it done.
> Code generally looks good - one comment. We should also add a function to query what modes are actually available and enforce that the user only uses an available...
@cwfitzgerald Added `surface_get_supported_alpha_modes` fn, extract the same code from `surface_get_supported_xxx` into `fetch_adapter_and_surface` fn, also renamed `get_supported_modes` to `get_supported_present_modes`.
Since `alpha_mode` is now strictly validated, `Opaque` is no longer guaranteed to be supported, because the vk backend on Android devices tends to only support `Inherit`. So, use `get_supported_alpha_modes` to...