Repository navigation
feat!: Fold the WebGpuCanvas Uno Feature into WebGpu (backport #25938) - #26259
Merged
agneszitte merged 4 commits intoNov 9, 2026
Merged
Conversation
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)
2 of 5 tasks
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue: closes #25331
PR Type:
✨ Feature (breaking: an Uno Feature is removed)
What changed? 🚀
1. The
WebGpuCanvasUno Feature is removed;WebGpubringsWebGpuCanvasElement.WebGpuCanvasElementdraws 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 onlyWebGpuCanvasgot both backends, while one listing onlyWebGpugot a SkiaSharp-free app. A Skia fallback is now opt-in in both cases, by listingSkia;WebGpu.Uno.Implicit.Packages.ProjectSystem.Uno.targets: thewebgpufeature referencesUno.WinUI.Graphics3DWebGpunext toUno.WinUI.Composition.WebGpu.UnoFeature,Uno.Features.targets(thewebgpucanvas→webgpuimplication) and the build schema. The schema'sWebGpudescription now mentions the canvas and that listing it without Skia replaces Skia.WebGpuCanvas: the Uno.Sdk's existing "Unable to parse 'WebGpuCanvas' to a known Uno Feature" warning, and no canvas package until they switch toWebGpu. 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:
WebView2.EnableDevToolsdefaults.The second commit then updates the pages that described
WebGpuCanvas:WebGpuCanvasElement.md;using-the-uno-sdk.md, where theWebGpuCanvasrow is removed and theWebGpurow mentions the canvas. It also adds the trailing pipe missing on theWebViewrow, which failed markdownlint on master.This supersedes #25931.
Validation
Uno.UI.Tasks.TestsGiven_UnoSdkRendererFeature: 24/24 pass.WebGpuon a head and on a library now both referenceUno.WinUI.Graphics3DWebGpu(a new library case). Both assertions fail against the previous targets.WebGpuCanvascases and the WindowsWebGpuCanvasdata row are removed.markdownlintwithbuild/.markdownlint.jsonandcspellwithbuild/cSpell.jsonare clean on all changed pages. DocFX was not built.PR Checklist ✅
Screenshots Compare Test Runresults.The
WebGpuCanvasUno Feature is removed. Apps replace it withWebGpu(orSkia;WebGputo 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).