wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

Allow enabling additional vulkan extensions in `Adapter::open` and `Instance::init`

Open Vecvec opened this issue 6 months ago • 1 comments

Connections Updated version of #7334 Fixes #7324 (including additional bit requested by @JMS55)

Description Adds Adapter::open_with_callback & Instance::init_with_callback which have a callback that can add extensions to the device/instance respectively. Moves Adapter::open & Instance::init to be defined in terms of these functions so that they do not fall out of sync.

Testing Like other hal functions it is untested.

Squash or Rebase? Squash

Checklist

  • [x] Run cargo fmt.
  • [x] Run cargo clippy --tests.
  • [x] Run cargo xtask test to run tests.
  • [x] If this contains user-facing changes, add a CHANGELOG.md entry.

Vecvec avatar Jun 19 '25 01:06 Vecvec

I don't have time today, but before this is merged I would like to validate that it will work with https://github.com/JMS55/dlss_wgpu.

JMS55 avatar Jun 19 '25 01:06 JMS55