Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkiaSharp Support #1116

Closed
3 of 7 tasks
jeromelaban opened this issue Jun 21, 2019 · 10 comments
Closed
3 of 7 tasks

SkiaSharp Support #1116

jeromelaban opened this issue Jun 21, 2019 · 10 comments
Labels
epic kind/enhancement New feature or request project/third-party 3️⃣ Categorizes an issue or PR as relevant to 3rd party libraries triage/most-wanted

Comments

@jeromelaban
Copy link
Member

jeromelaban commented Jun 21, 2019

This issue is a meta issue for the tracking of the SkiaSharp support for Uno in general, and WebAssembly specifically.

Fixes #1070

@ghuntley
Copy link
Member

ghuntley commented Jul 4, 2019

See also https://platform.uno/skiasharp-support-for-webassembly-via-uno-platform/ for a status update.

Uno Platform
Today we are proud to announce that the Uno Platform now has initial support for Skia via the Uno.SkiaSharp.Views package which was published to NuGet moments ago.

@EisenbergEffect
Copy link

Just thought I'd check in here and see how things are going. I'm very interested in pure C#+Skia. It looks like the WebGL issue hasn't progressed since June. Can anyone provide a bit of a status report? Thanks!

@jeromelaban
Copy link
Member Author

Hi @EisenbergEffect, thanks for asking! The WebGL update is still on the roadmap, we've announed it at UnoConf for future work.

At this time, the bulk of the work is stabilizing the SkiaSharp support for Wasm using software rendering, and there was an update today that includes a lot of changes made for the past few months in the official SkiaSharp repo.

@EisenbergEffect
Copy link

@jeromelaban Thanks for the update. Please ping this issue when WebGL rendering drops. I'd love to give it a try. I've been using CanvasKit WebGL with TypeScript quite a bit this year and I'd like to compare the experience and performance to an equivalent C# implementation of my work.

@mattleibow
Copy link

It is coming folks!!! Very soon!!!

Progress is here: mono/SkiaSharp#1333

Just got the WebGL views to work!

@mattleibow
Copy link

mattleibow commented Jul 20, 2020

Just more info, the Uno views for Android, iOS and macOS are already out: https://www.nuget.org/packages/SkiaSharp.Views.Uno

This is just the raster/CPU views at this time. GPU/OpenGL views are coming soon. Working on getting the WASM raster out first.

SkiaSharp for Uno Platform is a set of views that can be used to draw on the screen.

@jeromelaban
Copy link
Member Author

This issue can now be closed as the support is now being added in the official SkiaSharp repo.

@mattleibow I'll make a PR to add support for Uno 3.0 soon.

@EisenbergEffect
Copy link

@jeromelaban Would you mind clarifying status and capabilities a bit more please? For example, is it now possible to write C# Skia code and compile to WASM? Can it be done with "vanilla" C# and WASM builds or is Uno required? Is it raster only or GPU?

@jeromelaban
Copy link
Member Author

On Wasm, it is possible to use SkiaSharp with Uno.Wasm.Bootstrap projects (vanilla, in some sense), as well as full Uno projects using SKXamlCanvas. The implementation provided in the official repo supports both raster and GPU.

Note that at this point, Uno does not yet support using Skia as a rendering backend.

@agneszitte agneszitte added the project/third-party 3️⃣ Categorizes an issue or PR as relevant to 3rd party libraries label Sep 21, 2020
@aronmek
Copy link

aronmek commented Mar 23, 2023

How would I go about creating a WASM head that would render my application using skia instead of HTML?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic kind/enhancement New feature or request project/third-party 3️⃣ Categorizes an issue or PR as relevant to 3rd party libraries triage/most-wanted
Projects
None yet
Development

No branches or pull requests

6 participants