MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Feature]: Support for WebGPU on Xbox

Open
#4,150 7 comments 43 reactions 2 assignees View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Describe the feature/enhancement you need

Ref discussion: https://github.com/MicrosoftEdge/WebView2Feedback/discussions/4138

WebView2 on Xbox One does not appear to support WebGPU, even though WebView2 on Windows does. Support for WebGPU is potentially important for web games as it allows for better performance and rendering features.

For a minimal repro, just point a WebView2 at this URL: https://webgpu.github.io/webgpu-samples/samples/helloTriangle

It works in WebView2 on Windows, but on Xbox One it reports TypeError: Cannot read properties of null (reading 'requestDevice'). Note it does not say that navigator.gpu is undefined, so this appears to indicate the WebGPU API is implemented, but no adapters/devices are available.

AFAIK Xbox One supports DirectX 12, so in theory WebGPU support is possible as it's designed to work on top of DX12, but perhaps there are some Xbox-specific details that need to be implemented.

The scenario/use case where you would use this feature

High-performance web games in WebView2.

How important is this request to you?

Nice to have. There are other ways to tackle this, but having official API support would be beneficial.

Suggested implementation

Hopefully this is only a matter of providing access to the GPU device on Xbox. AFAIK Xbox supports DirectX 12 which is one of the backends WebGPU was specifically designed for, and it works on Windows already, so in theory all the technology is there.

What does your app do? Is there a pending deadline for this request?

We're looking to add support for publishing high-performance web games on Xbox from our game development tool Construct.

AB#47690642

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.