Skip to content

feat!: Fold the WebGpuCanvas Uno Feature into WebGpu (backport #25938) - #26259

Merged
agneszitte merged 4 commits into
release/stable/7.0from
mergify/bp/release/stable/7.0/pr-25938
Nov 9, 2026
Merged

agneszitte merged 4 commits into
release/stable/7.0from
mergify/bp/release/stable/7.0/pr-25938

Conversation

@mergify

@mergify mergify Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #25331

PR Type:

✨ Feature (breaking: an Uno Feature is removed)

What changed? 🚀

1. The WebGpuCanvas Uno Feature is removed; WebGpu brings WebGpuCanvasElement.

WebGpuCanvasElement draws only with the WebGPU backend, and the backend package already references Silk.NET.WebGPU, so a separate feature only added a small control assembly. It also implied Skia next to WebGPU: an app listing only WebGpuCanvas got both backends, while one listing only WebGpu got a SkiaSharp-free app. A Skia fallback is now opt-in in both cases, by listing Skia;WebGpu.

  • Uno.Implicit.Packages.ProjectSystem.Uno.targets: the webgpu feature references Uno.WinUI.Graphics3DWebGpu next to Uno.WinUI.Composition.WebGpu.
  • Removed the feature from UnoFeature, Uno.Features.targets (the webgpucanvas → webgpu implication) and the build schema. The schema's WebGpu description now mentions the canvas and that listing it without Skia replaces Skia.
  • Effect on apps still listing WebGpuCanvas: the Uno.Sdk's existing "Unable to parse 'WebGpuCanvas' to a known Uno Feature" warning, and no canvas package until they switch to WebGpu. The migration guide has a row for this in the Packages table.

2. Docs from #25931 (by @Jen-Uno), plus fixes for this change.

The first commit is #25931's change as-is, keeping its author. It adds the WebGPU Rendering Backend page and corrects:

  • the Skia renderer page;
  • the forced-Vulkan sample;
  • the ToolTips and WebView2.EnableDevTools defaults.

The second commit then updates the pages that described WebGpuCanvas:

  • the new WebGPU page;
  • WebGpuCanvasElement.md;
  • the feature table in using-the-uno-sdk.md, where the WebGpuCanvas row is removed and the WebGpu row mentions the canvas. It also adds the trailing pipe missing on the WebView row, which failed markdownlint on master.

This supersedes #25931.

Validation

  • Uno.UI.Tasks.Tests Given_UnoSdkRendererFeature: 24/24 pass.
    • WebGpu on a head and on a library now both reference Uno.WinUI.Graphics3DWebGpu (a new library case). Both assertions fail against the previous targets.
    • The two WebGpuCanvas cases and the Windows WebGpuCanvas data row are removed.
  • Docs: markdownlint with build/.markdownlint.json and cspell with build/cSpell.json are clean on all changed pages. DocFX was not built.
  • Not checked: an app restore from packed packages. The Sdk tests evaluate the targets directly.

PR Checklist ✅

The WebGpuCanvas Uno Feature is removed. Apps replace it with WebGpu (or Skia;WebGpu to keep the Skia fallback it implied); the migration guide covers it.

🤖 Generated with Claude Code


This is an automatic backport of pull request #25938 done by [Mergify](https://mergify.com).

Jen-Uno and others added 4 commits November 9, 2026 19:07
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 #25931)

(cherry picked from commit 87e8eea)
WebGpuCanvasElement draws only with the WebGPU backend, so the WebGpu feature now references it. WebGpuCanvas also implied Skia next to WebGPU, which an app built on the canvas does not need; list Skia;WebGpu to keep it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 3e7bf03)
The WebGPU page's xref uid, uno.features.renderer.webgpu, follows the renderer uid scheme.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 3eb3dbd)
A WebGpu-only app renders with WebGPU without a host builder call, so
the WebGpuCanvasElement and Skia pages no longer say every app must
register it. EnableDevTools defaults to false for apps; its remarks now
say so. The renderer tests pin that a Windows head listing WebGpu gets
no WebGPU package, and that SkiaRenderer;WebGpu brings the canvas.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 9671f33)
@github-actions github-actions Bot added area/code-generation Categorizes an issue or PR as relevant to code generation area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk labels Nov 9, 2026
@agneszitte
agneszitte merged commit e078c40 into release/stable/7.0 Nov 9, 2026
15 of 26 checks passed
@agneszitte
agneszitte deleted the mergify/bp/release/stable/7.0/pr-25938 branch November 9, 2026 19:11
@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

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

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure area/code-generation Categorizes an issue or PR as relevant to code generation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants