Provide a Vulkan path for create_surface_metal
Connections Attempts to fix #8555.
Description
Currently, it is impossible to create a MoltenVK-backed surface when using wgpu-native bindings as the RawWindowHandle API is not available. This PR attempts to extend create_surface_metal to allow the creation of Vulkan backends when requested.
Testing I don't have an easy way to test this PR, so help in this area would be appreciated.
Squash or Rebase? Rebase
Checklist
- [x] Run
cargo fmt. - [x] Run
taplo format. - [x] Run
cargo clippy --tests. If applicable, add:- [ ]
--target wasm32-unknown-unknown
- [ ]
- [x] Run
cargo xtask testto run tests. - [ ] If this contains user-facing changes, add a
CHANGELOG.mdentry.
I trust you ran it yourself locally?
I built it locally, but I don't have a proper test case for this right now. I'll try and make one.
@Wumpf It seems I'm running into Error: Unsupported Surface not matter what I do
As of right now my only test case for this is building wgpu-native based on this branch and plugging the final dylib into the application I need this Vulkan path which I realise has quite a few added variables of potential problems.
@IsaacMarovitz so you're saying we have no clue whether this actually works then?
More or less, yeah. I'm gonna make this draft and come back to it in a few days when I have the time. If anyone wants to snipe it before then feel free.