我有一个 blazor webassembly 项目,它使用 skia sharp 使用 SkiaSharp.Views.Blazor 在画布上渲染图像。我正在通过使用
<WasmEnableThreads>true</WasmEnableThreads>
--shared-memory is disallowed by libskia.SkOpts.o because it was not compiled with atomics or bulk-memory features
顺便说一句,我所有的绘图都将在 UI 线程上进行。我只想在其他长时间运行的任务中使用线程。我还尝试通过在项目文件中设置 <EmccExtraLDFlags>--no-check-features</EmccExtraLDFlags>
来编译代码,但没有成功。任何帮助将不胜感激。这听起来与 SkiaSharp 中已修复的这个问题类似,只是尚未包含在已发布的版本中:https://github.com/mono/SkiaSharp/issues/2285