Skip to content

feat!: Fold the WebGpuCanvas Uno Feature into WebGpu - #25938

Merged
agneszitte merged 4 commits into
unoplatform:masterfrom
ramezgerges:dev/rara/drop-webgpucanvas-feature
Nov 9, 2026
Merged

agneszitte merged 4 commits into
unoplatform:masterfrom
ramezgerges:dev/rara/drop-webgpucanvas-feature

Conversation

@ramezgerges

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

@ramezgerges ramezgerges added the 7.0 PRs only. For issues, use the Release field. label Nov 2, 2026
@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 2, 2026
@unodevops

Copy link
Copy Markdown
Contributor

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

@ramezgerges
ramezgerges force-pushed the dev/rara/drop-webgpucanvas-feature branch from f649ced to f169ce9 Compare November 3, 2026 14:50
@unodevops

Copy link
Copy Markdown
Contributor

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

@mergify

mergify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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.

Comment thread doc/articles/controls/WebView.md Resolved

@Xiaoy312 Xiaoy312 left a comment

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.

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 DEBUG there is Uno.UI's own build config, so the corrected docs are right, but IntelliSense now contradicts them. Could be a follow-up.
  • The WebGpuCanvas migration-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.

@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

✅ Backports have been created

Details

@ramezgerges
ramezgerges force-pushed the dev/rara/drop-webgpucanvas-feature branch from f169ce9 to 0420656 Compare November 4, 2026 18:22
@ramezgerges

Copy link
Copy Markdown
Contributor Author

Thanks @Xiaoy312. On the two notes outside the diff:

  • EnableDevTools remarks: fixed in dfe0f62, they now say it defaults to false.
  • The WebGpuCanvas migration row: keeping it for 7.0 preview users, as you suggest.

@unodevops

Copy link
Copy Markdown
Contributor

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

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 243716 found UI Test snapshots differences: skia-linux-screenshots: 2458, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 2458 changed over 2494

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png
    • AppBarButtonWithIconTest.png-dark
    • AppBar_KeyBoard.png
    • Application_DispatcherShutdownMode.png
    • AppXamlDefinedResources.png
    • Attributed_text_Simple.png
    • AutoBorderStretchwithbottommargin.png
    • AutomationProperties_AutomationId.png-dark
    • AutoSizedPathCentered.png-dark
    • AutoSizedPathCentered.png
    • AutoSuggestBox_Keyboard.png-dark
    • AutoSuggestBox_Keyboard.png
    • BasicAutoSuggestBox.png-dark
    • BasicAutoSuggestBox.png
    • Battery.png-dark
    • Battery.png
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • BorderVersusPanelClipping.png-dark
    • BorderVersusPanelClipping.png
  • skia-windows-screenshots: 2458 changed over 2494

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AppBarButtonWithIconTest.png
    • AppBar_KeyBoard.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowFeatures.png-dark
    • AppWindowTitleBar Properties.png
    • Attributed_text_Simple.png-dark
    • Attributed_text_Simple.png
    • AutoBorderStretchwithrightmargin.png-dark
    • AutoBorderStretchwithrightmargin.png
    • AutomationProperties_Relations.png-dark
    • AutomationProperties_Relations.png
    • AutoSuggestBox_Keyboard.png-dark
    • AutoSuggestBox_Keyboard.png
    • BasicAutoSuggestBox.png-dark
    • BasicAutoSuggestBox.png
    • Basics.png-dark
    • Basics.png

@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 244096 found UI Test snapshots differences: skia-linux-screenshots: 2458, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 2458 changed over 2494

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • AnimatedVisualsTestbedPage.png-dark
    • AppBarToggleButtonTest.png
    • ApplicationViewSizing.png
    • AppWindowFeatures.png-dark
    • AppWindowPositionAndSize.png
    • ArcSegment.png-dark
    • Attributed_text_FontSize_Changing.png
    • AuthenticationBroker_Cancel.png
    • AuthenticationBroker_Demo.png-dark
    • AutomationPropertiesExtensions_Role.png
    • AutomationProperties_AutomationId.png-dark
    • AutoSuggestBox_Icons.png-dark
    • AutoSuggestBox_Icons.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • Battery.png-dark
    • Battery.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
  • skia-windows-screenshots: 2458 changed over 2494

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png-dark
    • AndroidWindowInsets.png
    • AnimatedIconPage.png-dark
    • AnimatedVisualsTestbedPage.png
    • AppBar_KeyBoard.png
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowFeatures.png-dark
    • AppWindowPresenters.png
    • Arrange_Performance01.png-dark
    • Arrange_Performance01.png
    • AutoBorderStretchwithleftmargin.png
    • AutoBorderStretchwithrightmargin.png-dark
    • AutomationProperties_Relations.png-dark
    • AutomationProperties_Relations.png
    • AutoSuggestBox_Description.png-dark
    • AutoSuggestBox_Description.png
    • BadgeNotificationTests.png-dark
    • BadgeNotificationTests.png
    • Basics.png-dark
    • Basics.png

@ramezgerges
ramezgerges force-pushed the dev/rara/drop-webgpucanvas-feature branch from 0318d70 to d0e71a2 Compare November 6, 2026 16:37
@unodevops

Copy link
Copy Markdown
Contributor

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

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 244378 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ClipboardTests.png-dark
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • DropDownButtonPage.png-dark
    • Examples.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • DynamicFont.png-dark
    • DynamicFont.png
    • ImageBrushAlignmentXY.png-dark
    • ImageBrushAlignmentXY.png
  • skia-windows-screenshots: 2458 changed over 2496

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • AnimatedIconPage.png
    • AppBarButtonTest.png
    • AppBar_KeyBoard.png
    • Application_DispatcherShutdownMode.png-dark
    • AppWindowPositionAndSize.png-dark
    • ArcSegment.png
    • AuthenticationBroker_Cancel.png-dark
    • AutoBorderStretchwithrightmargin.png-dark
    • AutoBorderStretchwithrightmargin.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BadgeNotificationTests.png-dark
    • BadgeNotificationTests.png
    • Basics.png-dark
    • Basics.png
    • BezierSegment.png-dark
    • BezierSegment.png
    • BitmapIcon_Sizing.png-dark
    • BitmapIcon_Sizing.png

@MartinZikmund
MartinZikmund force-pushed the dev/rara/drop-webgpucanvas-feature branch from d0e71a2 to 22f8208 Compare November 9, 2026 16:13
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 244824 found UI Test snapshots differences: skia-linux-screenshots: 232, skia-windows-screenshots: 266

Details
  • skia-linux-screenshots: 232 changed over 2494

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • AppWindowTitleBar Properties.png-dark
    • Basics.png-dark
    • Basics.png
    • AnimatedVisualsTestbedPage.png
    • AnimatedVisualsTestbedPage.png-dark
    • AppWindowTitleBar Properties.png
    • AutomationProperties_StructureAndProps.png
    • AutomationProperties_StructureAndProps.png-dark
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • ButtonClippingTestsControl.png-dark
    • Buttons.png-dark
  • skia-windows-screenshots: 266 changed over 2494

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AppWindowTitleBar Properties.png-dark
    • AppWindowTitleBar Properties.png
    • Basics.png-dark
    • Basics.png
    • AutomationProperties_AutomationId.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • AnimatedVisualsTestbedPage.png
    • AutomationProperties_AutomationId.png-dark
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • CompositionPath.png-dark

Jen-Uno and others added 4 commits November 9, 2026 13:55
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]>
@ramezgerges
ramezgerges force-pushed the dev/rara/drop-webgpucanvas-feature branch from 22f8208 to 9671f33 Compare November 9, 2026 18:59
@agneszitte
agneszitte merged commit e48f497 into unoplatform:master Nov 9, 2026
17 of 28 checks passed
@unoplatform unoplatform deleted a comment from mergify Bot Nov 9, 2026
agneszitte added a commit that referenced this pull request Nov 9, 2026
…7.0/pr-25938

feat!: Fold the WebGpuCanvas Uno Feature into WebGpu (backport #25938)
@ramezgerges
ramezgerges deleted the dev/rara/drop-webgpucanvas-feature branch November 9, 2026 19:12
@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

7.0 PRs only. For issues, use the Release field. 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.

Skia renderer doc contradicts 7.0: says Skia is the only renderer, and there is no WebGPU renderer page

8 participants