Add stub ExternalTexture and support for them in BindGroups#570
Merged
Kangz merged 2 commits intowebgpu-native:mainfrom Nov 27, 2025
Merged
Add stub ExternalTexture and support for them in BindGroups#570Kangz merged 2 commits intowebgpu-native:mainfrom
Kangz merged 2 commits intowebgpu-native:mainfrom
Conversation
3dd4fbf to
bbac315
Compare
Collaborator
kainino0x
reviewed
Nov 22, 2025
cwfitzgerald
approved these changes
Nov 26, 2025
copybara-service Bot
pushed a commit
to google/dawn
that referenced
this pull request
Dec 3, 2025
These became standard/stable in webgpu-native/webgpu-headers#570 Bug: 462477379, 465339954 Change-Id: I5f1405df128401f97e9a26fb781d56097e13787f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/276941 Commit-Queue: Brandon Jones <bajones@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Auto-Submit: Kai Ninomiya <kainino@chromium.org>
copybara-service Bot
pushed a commit
to google/dawn
that referenced
this pull request
Dec 3, 2025
This reverts commit b66000d. Reason for revert: broke build https://ci.chromium.org/ui/p/dawn/builders/ci/dawn-win-x64-builder-rel/976/overview Original change's description: > [dawn] Promote ExternalTexture to Core > > These became standard/stable in > webgpu-native/webgpu-headers#570 > > Bug: 462477379, 465339954 > Change-Id: I5f1405df128401f97e9a26fb781d56097e13787f > Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/276941 > Commit-Queue: Brandon Jones <bajones@chromium.org> > Reviewed-by: Brandon Jones <bajones@chromium.org> > Commit-Queue: Kai Ninomiya <kainino@chromium.org> > Auto-Submit: Kai Ninomiya <kainino@chromium.org> TBR=kainino@chromium.org,bajones@chromium.org,dawn-scoped@luci-project-accounts.iam.gserviceaccount.com No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 462477379, 465339954 Change-Id: I30a7d0af67256fdc9ed69ea805216bfbb7c581bd Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/277918 Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: Kai Ninomiya <kainino@chromium.org> Commit-Queue: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PTAL! It doesn't add creation of the external texture as that's still super implementation specific, but this will unblock folks that want to use ExternalTexture in WASM (they can import a C object from a precreated JS GPUExternalTexture).
The webgpu.h diff is slightly messy because the new chained struct force a small reordering. The additions themselves should be pretty trivial and they add a chained struct for the equivalent Rust enum option in wgpu.
I chose
ExternalTextureBindingLayoutto match theBuffer/Sampler/...BindingLayoutconvention that's already used forBindGroupLayoutEntrymembers.ExternalTextureBindingEntryis just following that. But I'm not to attached to the exact names.