Skip to content

docs: Document the WebGPU backend and fix rendering docs - #25931

Open
Jen-Uno wants to merge 1 commit into
masterfrom
dev/jen/docs-70-rendering
Open

Jen-Uno wants to merge 1 commit into
masterfrom
dev/jen/docs-70-rendering

Conversation

@Jen-Uno

@Jen-Uno Jen-Uno commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: n/a (documentation only)

PR Type:

📚 Documentation content changes

What changed? 🚀

  • New WebGPU Rendering Backend page (added to the TOC after the Vulkan page): turning it on (the WebGpu UnoFeature plus .GraphicsBackend(WebGpuBackend.CreateGraphicsProvider())), Skia remaining the default, fallback order (registering WebGPU alone replaces the implicit Skia default, so register .GraphicsBackend(webGpu).GraphicsBackend(skia)), which hosts are wired, SkiaSharp-free apps (WebGpu without Skia), and the negotiation log line. The backend is marked experimental.
  • WebGpuCanvasElement: the host-builder sample now registers Skia after WebGPU as a fallback.
  • Skia renderer: no longer says Skia is always used and can't be turned off.
  • Vulkan: removed the "Enabling Vulkan" sample that forced Vulkan, which removed every fallback although Vulkan is already the default, and explained what forcing does.
  • Feature flags / WebView: ToolTips are on by default on every Uno Platform target in 7.0, and WebView2.EnableDevTools defaults to false in both Debug and Release app builds, because the #if DEBUG default is compiled into the Release-built Uno.UI.

PR Checklist ✅

🤖 Generated with Claude Code

Add a WebGPU rendering backend page and show the Skia fallback in the
WebGpuCanvasElement sample. Stop saying Skia can't be turned off, drop the
forced-Vulkan enable sample, and correct the ToolTips and WebView2
EnableDevTools defaults.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation labels Nov 2, 2026
@Jen-Uno
Jen-Uno marked this pull request as ready for review November 2, 2026 18:03
Comment on lines +20 to +22
`WebGpu` counts as a renderer feature, so listing it stops `Skia` from being implied. List both, as above, to keep SkiaSharp in the app, which the fallback described below needs. Listing `WebGpu` without `Skia` produces an app with no SkiaSharp (see [Apps without SkiaSharp](#apps-without-skiasharp)).

The `WebGpuCanvas` feature, which adds [`WebGpuCanvasElement`](xref:Uno.Controls.WebGpuCanvasElement), also adds the WebGPU backend. It doesn't count as a renderer feature, so `Skia` is still implied next to it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure this is a good idea. Maybe we should drop the whole "renderer feature" idea. WebGpuCanvas should not be a separate feature and WebGpuCanvasElement should be available through the WebGpu feature (but will only work if Skia is the active renderer)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've opened #25938 instead.

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 242929 has failed on Uno.UI - docs.

@MartinZikmund MartinZikmund left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Checked the new page against the code - WebGpuBackend.CreateGraphicsProvider(), SkiaBackend.CreateGraphicsProvider() and the GraphicsBackend(...) ordering/fallback all match. Two things though:

  • Docs CI is red: cspell flags webgpu in toc.yml (line 231).
  • #25938 carries this commit as-is (authorship kept), adds the cSpell entry, and updates the WebGpuCanvas paragraph here, which becomes wrong once that feature is folded into WebGpu. So I'd close this one in favor of #25938 rather than fix it twice.

ramezgerges pushed a commit to ramezgerges/uno that referenced this pull request Nov 3, 2026
Add a WebGPU rendering backend page and show the Skia fallback in the
WebGpuCanvasElement sample. Stop saying Skia can't be turned off, drop the
forced-Vulkan enable sample, and correct the ToolTips and WebView2
EnableDevTools defaults.

(from unoplatform#25931)
@MartinZikmund MartinZikmund added the 7.0 PRs only. For issues, use the Release field. label Nov 4, 2026
@MartinZikmund

Copy link
Copy Markdown
Member

@Mergifyio backport release/stable/7.0

@mergify

mergify Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

backport release/stable/7.0

🟠 Waiting for conditions to match

Details
  • merged [📌 backport requirement]

ramezgerges pushed a commit to ramezgerges/uno that referenced this pull request Nov 4, 2026
Add a WebGPU rendering backend page and show the Skia fallback in the
WebGpuCanvasElement sample. Stop saying Skia can't be turned off, drop the
forced-Vulkan enable sample, and correct the ToolTips and WebView2
EnableDevTools defaults.

(from unoplatform#25931)
ramezgerges pushed a commit to ramezgerges/uno that referenced this pull request Nov 5, 2026
Add a WebGPU rendering backend page and show the Skia fallback in the
WebGpuCanvasElement sample. Stop saying Skia can't be turned off, drop the
forced-Vulkan enable sample, and correct the ToolTips and WebView2
EnableDevTools defaults.

(from unoplatform#25931)
ramezgerges pushed a commit to ramezgerges/uno that referenced this pull request Nov 6, 2026
Add a WebGPU rendering backend page and show the Skia fallback in the
WebGpuCanvasElement sample. Stop saying Skia can't be turned off, drop the
forced-Vulkan enable sample, and correct the ToolTips and WebView2
EnableDevTools defaults.

(from unoplatform#25931)
MartinZikmund pushed a commit to ramezgerges/uno that referenced this pull request Nov 9, 2026
Add a WebGPU rendering backend page and show the Skia fallback in the
WebGpuCanvasElement sample. Stop saying Skia can't be turned off, drop the
forced-Vulkan enable sample, and correct the ToolTips and WebView2
EnableDevTools defaults.

(from unoplatform#25931)
ramezgerges pushed a commit to ramezgerges/uno that referenced this pull request Nov 9, 2026
Add a WebGPU rendering backend page and show the Skia fallback in the
WebGpuCanvasElement sample. Stop saying Skia can't be turned off, drop the
forced-Vulkan enable sample, and correct the ToolTips and WebView2
EnableDevTools defaults.

(from unoplatform#25931)
@mergify

mergify Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.0 PRs only. For issues, use the Release field. area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants