Repository navigation
feat!: Fold the WebGpuCanvas Uno Feature into WebGpu - #25938
agneszitte merged 4 commits into
Conversation
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
f649ced to
f169ce9
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Xiaoy312
left a comment
There was a problem hiding this comment.
LGTM, the SDK side is clean. A few doc nits inline, plus two that aren't anchorable in the diff:
FeatureConfiguration.WebView2.EnableDevTools's<remarks>(src/Uno.UI/FeatureConfiguration.cs) still says "Defaults to true in DEBUG builds". The#if DEBUGthere is Uno.UI's own build config, so the corrected docs are right, but IntelliSense now contradicts them. Could be a follow-up.- The
WebGpuCanvasmigration-guide row: the feature landed on master in mid-October and isn't in any 6.x branch, so only 7.0 preview users can hit it. Fine to keep, just noting it.
|
@Mergifyio backport release/stable/7.0 |
✅ Backports have been createdDetails
|
f169ce9 to
0420656
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 243716 found UI Test snapshots differences: Details
|
dfe0f62 to
0318d70
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25938/docs/index.html |
|
The build 244096 found UI Test snapshots differences: Details
|
0318d70 to
d0e71a2
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 244378 found UI Test snapshots differences: Details
|
d0e71a2 to
22f8208
Compare
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25938/docs/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 244824 found UI Test snapshots differences: Details
|
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)
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]>
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]>
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]>
22f8208 to
9671f33
Compare
…7.0/pr-25938 feat!: Fold the WebGpuCanvas Uno Feature into WebGpu (backport #25938)
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
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