Skip to content

[wgpu] Use Arced resources instead of Global - #9950

Draft
sagudev wants to merge 8 commits into
gfx-rs:trunkfrom
sagudev:wgpuuuuuuuuuuu
Draft

[wgpu] Use Arced resources instead of Global#9950
sagudev wants to merge 8 commits into
gfx-rs:trunkfrom
sagudev:wgpuuuuuuuuuuu

Conversation

@sagudev

@sagudev sagudev commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Connections
Includes commits from #9956
Last step towards #5121

This PR completely removes generate_report and tests using to it. For alt approach there is #9952

Description
Minimal changes to make it compile. Cleanups are left for follow ups:

  • we still pass CoreContext to some types because of handle_error (which does not use self really)
  • we should implement interface directly on wgpu-core resources (this will wait for other follow up work noted in Remove IDs and Registries #5121)
  • use iterators instead of collections where methods allow

Testing
Just refactor.

Squash or Rebase?
Rebase

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.

sagudev added 8 commits July 30, 2026 12:31
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
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