Skip to content

[Metal/hal] Expose raw_device() from Metal Adapter#9518

Open
AdrianEddy wants to merge 2 commits intogfx-rs:trunkfrom
AdrianEddy:metal-adapter-raw-device
Open

[Metal/hal] Expose raw_device() from Metal Adapter#9518
AdrianEddy wants to merge 2 commits intogfx-rs:trunkfrom
AdrianEddy:metal-adapter-raw-device

Conversation

@AdrianEddy
Copy link
Copy Markdown
Contributor

Description
This PR adds a raw_device() method on Metal's Adapter. It returns the underlying MTLDevice that adapter wraps.

Mirrors Device::raw_device() for the device side. Useful for callers that need to query Metal-only adapter metadata (e.g. registryID, location, isHeadless) without first requesting a logical device.

Testing
Explain how this change is tested.

Squash or Rebase?

Squash

Checklist

  • I self-reviewed and fully understand this PR.
  • WebGPU implementations built with wgpu may be affected behaviorally.
  • Validation and feature gates are in place to confine behavioral changes.
  • Tests demonstrate the validation and altered logic works.
  • CHANGELOG.md entries for the user-facing effects of this change are present.
  • The PR is minimal, and doesn't make sense to land as multiple PRs.
  • Commits are logically scoped and individually reviewable.
  • The PR description has enough context to understand the motivation and solution implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant