Skip to content

Deno 2.8 supports OffscreenCanvas webgpu context#29978

Open
caugner wants to merge 1 commit into
mainfrom
29923-deno-offscreencanvas-webgpu-context
Open

Deno 2.8 supports OffscreenCanvas webgpu context#29978
caugner wants to merge 1 commit into
mainfrom
29923-deno-offscreencanvas-webgpu-context

Conversation

@caugner

@caugner caugner commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Update api.OffscreenCanvas.webgpu_context to record Deno support starting in 2.8 (previously false).

Test results and supporting details

Bisected locally with dvm, confirming the boundary matches Deno's introduction of OffscreenCanvas:

Version new OffscreenCanvas(32,32).getContext('webgpu')
2.7.14 ReferenceError: OffscreenCanvas is not defined
2.8.0 returns a GPUCanvasContext
2.9.1 returns a GPUCanvasContext

Related issues

Fixes #29923

@github-actions github-actions Bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jul 3, 2026
@caugner caugner changed the title fix(api): Deno 2.8 supports OffscreenCanvas webgpu context Deno 2.8 supports OffscreenCanvas webgpu context Jul 3, 2026
@github-actions github-actions Bot added the size:xs [PR only] 0-6 LoC changed label Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Deno 2.8, the first version to include `OffscreenCanvas`, also supports
retrieving a `webgpu` context, verified by bisecting with dvm.
@caugner caugner force-pushed the 29923-deno-offscreencanvas-webgpu-context branch from ec2818f to 71a58f6 Compare July 3, 2026 15:59
@caugner caugner marked this pull request as ready for review July 3, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:xs [PR only] 0-6 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

api.OffscreenCanvas - Deno supports getting a webgpu context

1 participant