Skip to content

Conversation

@greggman
Copy link
Contributor

@greggman greggman commented Jan 7, 2026

Check that textures returned from canvas context getCurrentTexture have textureBindingViewDimension and that it's undefined in core and is '2d' in compatibility mode.

I don't know what other implementations would have an issue here but the current spec requires these to work just like any other texture and chromium has some special cases here. This test failed in chromium until it was fixed.

Check thte textures returned from canvas context getCurrentTexture
have `textureBindingViewDimension` and that it's undefined in core
and is `'2d'` in compatibility mode.
@greggman greggman requested a review from kainino0x January 7, 2026 23:38
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Results for build job (at a1fcefb):

+webgpu:web_platform,canvas,getCurrentTexture:compatibility:* - 2 cases, 2 subcases (~1/case)
-TOTAL: 284493 cases, 2341915 subcases
+TOTAL: 284495 cases, 2341917 subcases

@greggman greggman merged commit acb7d79 into gpuweb:main Jan 9, 2026
1 check passed
@greggman greggman deleted the compat-getcurrenttexture branch January 9, 2026 01:41
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.

2 participants