Skip to content

Implement WGPU::{as, from}_core - #10211

Open
sagudev wants to merge 19 commits into
gfx-rs:trunkfrom
sagudev:real_from_core
Open

sagudev wants to merge 19 commits into
gfx-rs:trunkfrom
sagudev:real_from_core

Conversation

@sagudev

@sagudev sagudev commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Connections
#10073

Description
Most of them are mechanical as they only have inner: DispatchType, the only two worth mentioning are TextureView which has Texture for subfield and Buffer which has mapping state, tho it is duplication of state wgc, but used for unsafe slicing so one needs to be careful with them.

Encoders are skipped because they are hard and I do not need them (hopefully).

I plan to use this to run wgpu libraries in trusted process on top of remoted wgc in servo. This was my main motivation for working on #5121 and #10073

Testing
None

Squash or Rebase?
Rebase

Checklist

  • I self-reviewed and fully understand this PR.
  • 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.
  • (If applicable) WebGPU implementations built with wgpu may be affected behaviorally.
  • (If applicable) Validation and feature gates are in place to confine behavioral changes.
  • (If applicable) Tests demonstrate the validation and altered logic works.

@github-project-automation github-project-automation Bot moved this to To triage in Triage Aug 31, 2026
sagudev added a commit to sagudev/wgpu that referenced this pull request Aug 31, 2026
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
sagudev added a commit to sagudev/wgpu that referenced this pull request Sep 1, 2026
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@cwfitzgerald cwfitzgerald self-assigned this Sep 2, 2026
@cwfitzgerald cwfitzgerald moved this from To triage to Small in Triage Sep 2, 2026
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>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
sagudev added a commit to sagudev/wgpu that referenced this pull request Sep 16, 2026
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>
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>
@sagudev

sagudev commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator Author

I would actually need this to write tests in #10307 so gentle nudge @cwfitzgerald

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

Labels

None yet

Projects

Status: Small

Development

Successfully merging this pull request may close these issues.

2 participants