wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

Provide a Vulkan path for create_surface_metal

Open IsaacMarovitz opened this issue 1 month ago • 5 comments

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 test to run tests.
  • [ ] If this contains user-facing changes, add a CHANGELOG.md entry.

IsaacMarovitz avatar Nov 21 '25 20:11 IsaacMarovitz

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.

IsaacMarovitz avatar Nov 24 '25 04:11 IsaacMarovitz

@Wumpf It seems I'm running into Error: Unsupported Surface not matter what I do

IsaacMarovitz avatar Nov 24 '25 05:11 IsaacMarovitz

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 avatar Nov 24 '25 15:11 IsaacMarovitz

@IsaacMarovitz so you're saying we have no clue whether this actually works then?

Wumpf avatar Dec 07 '25 16:12 Wumpf

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.

IsaacMarovitz avatar Dec 08 '25 16:12 IsaacMarovitz