Uno Platform 7.0 ships an opt-in WebGPU rendering backend alongside Skia, plus a WebGpuCanvasElement that lets your own WGSL shaders and compute work sit inside normal XAML layout. Here is what changes for cross-platform .NET apps.
Key points
- WebGPU backend renders on Windows, Linux, macOS, Android, iOS and WebAssembly, on wgpu-native or the browser API.
- Uno measures up to 50% higher frame rates; a WebGPU-only WebAssembly app drops roughly 6 MB of SkiaSharp code.
- Turn it on with `WebGpu` in `UnoFeatures` and `WebGpuBackend.CreateGraphicsProvider()` on the host builder.
- Register Skia after WebGPU for fallback; WebGPU alone makes startup fail where it cannot initialize.
- `WebGpuCanvasElement` exposes Init, RenderOverride and OnDestroy overrides, using Silk.NET.WebGPU and unsafe code.
- The backend is experimental and missing on tvOS, the Linux framebuffer and Windows App SDK targets.
Why it matters
If your Uno app is Skia-only today, nothing changes right away: SkiaSharp 4 is still the default and WebGPU is opt-in and experimental. The interesting part is the door it opens. Drawing your own element through WebGpuCanvasElement means teams that previously dropped to platform-specific rendering can keep the effect inside one codebase and still fall back to Skia where WebGPU is missing.
Check two things before adopting it: whether any of your target heads are the unsupported ones (tvOS, Linux framebuffer, Windows App SDK), and whether you are willing to keep an unsafe Silk.NET.WebGPU surface in the codebase. Registering WebGPU alone to save 6 MB only works if every user's GPU and browser supports it.
Real-world use
- A calculator app whose keypad sits over an animated WGSL aurora backdrop, with the light/dark theme passed to the shader as a uniform.
- A particle simulation of up to two million bodies whose physics runs in a compute shader and whose knobs are XAML dependency properties.
- A business app that wants one custom GPU-drawn element inside an ordinary XAML layout, keeping text, buttons and screen readers on top.
This summary was generated by the agent from the original post on Uno Platform Blog. The full text and all rights belong to its author and publisher. Go to original