Skip to content

Conversation

@Jiawei-Shao
Copy link
Contributor

This patch adds the optional feature texture-formats-tier2 with below new features
based on the previous investigation:

  • Allows the read-write storage texture access on below texture formats:
    • r8unorm
    • r8uint
    • r8sint
    • rgba8unorm
    • rgba8uint
    • rgba8sint
    • r16uint
    • r16sint
    • r16float
    • rgba16uint
    • rgba16sint
    • rgba16float
    • rgba32uint
    • rgba32sint
    • rgba32float
  • Enabling texture-formats-tier2 will also enable texture-formats-tier1.

Fixed: #3838

@github-actions
Copy link
Contributor

Previews, as seen when this build job started (784d5b4):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

Copy link
Contributor

@kainino0x kainino0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! (Still needs reviews from mozilla+apple)

@kainino0x kainino0x added the api WebGPU API label Jun 19, 2025
@kainino0x kainino0x added this to the Milestone 1 milestone Jun 19, 2025
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🎉

@kainino0x kainino0x merged commit 28d8894 into gpuweb:main Jun 20, 2025
4 checks passed
@kainino0x kainino0x added api resolved Resolved - waiting for a change to the API specification needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet labels Jun 20, 2025
kainino0x added a commit to webgpu-native/webgpu-headers that referenced this pull request Jun 26, 2025
These were added in the upstream WebGPU API and should be reflected
here.
- gpuweb/gpuweb#5147
Ordered at the top for consistency even though it changes the numbering
of everything else.
Also fixed the ordering of TimestampQuery to match since the numbering
is changing anyway. (Even though the ordering doesn't really matter
because it's nonobservable upstream and there isn't really an ordering.)
- gpuweb/gpuweb#5160
- gpuweb/gpuweb#5226

The renumbering is technically a breaking change because it changes the
ABI (which shouldn't matter right now) and could affect code that
depends on comparing enum values or hard-coded integer versions of them.
ErichDonGubler added a commit to erichdongubler-mozilla/wgpu that referenced this pull request Aug 11, 2025
Tier 1 PRs for WebGPU spec.:
[`gpuweb`gfx-rs#5213](gpuweb/gpuweb#5213) and
[`gpuweb`gfx-rs#5160](gpuweb/gpuweb#5160).

Tier 2 PR for WebGPU spec.:
[`gpuweb`gfx-rs#5226](gpuweb/gpuweb#5226)
ErichDonGubler added a commit to erichdongubler-mozilla/wgpu that referenced this pull request Aug 12, 2025
Tier 1 PRs for WebGPU spec.:
[`gpuweb`gfx-rs#5213](gpuweb/gpuweb#5213) and
[`gpuweb`gfx-rs#5160](gpuweb/gpuweb#5160).

Tier 2 PR for WebGPU spec.:
[`gpuweb`gfx-rs#5226](gpuweb/gpuweb#5226)
juj added a commit to juj/wasm_webgpu that referenced this pull request Sep 12, 2025
ErichDonGubler added a commit to erichdongubler-mozilla/wgpu that referenced this pull request Oct 9, 2025
Tier 1 PRs for WebGPU spec.:
[`gpuweb`gfx-rs#5213](gpuweb/gpuweb#5213) and
[`gpuweb`gfx-rs#5160](gpuweb/gpuweb#5160).

Tier 2 PR for WebGPU spec.:
[`gpuweb`gfx-rs#5226](gpuweb/gpuweb#5226)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api resolved Resolved - waiting for a change to the API specification api WebGPU API needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet texture-capabilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: read-write storage textures

4 participants