Repository navigation
[4.155] Pass -sUSE_WEBGPU to Uno WASM heads only on net8.0 - #5835
Merged
mattleibow merged 1 commit intoNov 19, 2026
Merged
mattleibow merged 1 commit into
mattleibow merged 1 commit into
Conversation
On .NET 9+ the WebAssembly block links Dawn's emdawnwebgpu port, whose library_webgpu.js refuses to link with emsdk's -sUSE_WEBGPU. The Uno block added that flag unconditionally, so an Uno 6.x WASM app with the Skia renderer failed to link with "To use Dawn's library_webgpu.js, disable -sUSE_WEBGPU". Only net8.0 (emsdk 3.1.34) still uses the built-in WebGPU port, so add the flag only there. Main no longer has the flag at all (the Uno block went with the Uno 7 move in mono#5377, and .NET 8 WASM support was dropped). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 5835PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5835"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-5835/packages --name skiasharp-pr-5835More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-5835 |
Contributor
|
Hey there @ramezgerges! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
mattleibow
approved these changes
Nov 19, 2026
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.
Description
An Uno Platform 6.x WebAssembly app on the native renderer that uses SkiaSharp fails to link on 4.155 with:
On .NET 9+ the WebAssembly block of
SkiaSharp.targetslinks Dawn's emdawnwebgpu port. Uno 6.x builds on the .NET WebAssembly SDK, so that block applies to Uno heads too, but the Uno block also added-s USE_WEBGPU=1unconditionally (since #3968). emsdk's built-in WebGPU port and Dawn'slibrary_webgpu.jscan't be linked together.Only
net8.0(emsdk 3.1.34) still uses the built-in port, so the Uno block now adds the flag only there. This mirrors the .NET block, which already passes-s USE_WEBGPU=1only when emdawnwebgpu isn't used.This is 4.155-only. On
mainthe Uno block was removed with the Uno 7 move (#5377) and .NET 8 WebAssembly is no longer built, soUSE_WEBGPUno longer appears there. #5377 itself isn't backportable because 4.155 still supports Uno 6.x.Related issues
Related to #5797 (reported while testing the 4.155 backports with Uno Platform 6.7; the block is unchanged since 4.155.0, so that PR didn't introduce it).
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
Behavior
Uno WASM heads targeting
net9.0/net10.0no longer get-s USE_WEBGPU=1and link again.net8.0heads are unchanged.Testing
Evaluated the targets with
dotnet msbuild -getItem:WasmShellExtraEmccFlagsfor an Uno WASM head (IsUnoHead=True,UnoRuntimeIdentifier=WebAssembly):-s USE_WEBGPU=1-s USE_WEBGL2=1and the other Uno flags are unchanged in every case. I didn't run a full Uno link locally; the reporter confirmed that removing only this flag makes the Uno 6.7 app link and run. 4.155 has no MSBuild targets test project to add a regression test to (main'sWasmNativeReferenceTestsalready asserts the flag is absent).Checklist
Changesabove lists all public API and behavioral changes (or "None.")///documentation and regenerated bindings when applicablemono/skiaPR linked above and bindings regenerated🤖 Generated with Claude Code