Skip to content

Conversation

@Kangz
Copy link
Collaborator

@Kangz Kangz commented Nov 21, 2025

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 ExternalTextureBindingLayout to match the Buffer/Sampler/...BindingLayout convention that's already used for BindGroupLayoutEntry members. ExternalTextureBindingEntry is just following that. But I'm not to attached to the exact names.

@kainino0x
Copy link
Collaborator

issue #188 (and #232)

@cwfitzgerald cwfitzgerald self-assigned this Nov 26, 2025
@Kangz Kangz merged commit 12c1d34 into webgpu-native:main Nov 27, 2025
5 checks passed
@Kangz Kangz deleted the external_texture branch November 27, 2025 09:04
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>
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.

3 participants