SimdSkia.Core
0.1.2-preview.3
See the version list below for details.
dotnet add package SimdSkia.Core --version 0.1.2-preview.3
NuGet\Install-Package SimdSkia.Core -Version 0.1.2-preview.3
<PackageReference Include="SimdSkia.Core" Version="0.1.2-preview.3" />
<PackageVersion Include="SimdSkia.Core" Version="0.1.2-preview.3" />
<PackageReference Include="SimdSkia.Core" />
paket add SimdSkia.Core --version 0.1.2-preview.3
#r "nuget: SimdSkia.Core, 0.1.2-preview.3"
#:package SimdSkia.Core@0.1.2-preview.3
#addin nuget:?package=SimdSkia.Core&version=0.1.2-preview.3&prerelease
#tool nuget:?package=SimdSkia.Core&version=0.1.2-preview.3&prerelease
0.1.2-preview.3 更新
本版修复连续MoveTo点序列和特殊混合模式的SaveLayer范围;原版几何300组/4636值、464组图层/2,375,680字节精确对照通过。PDF依赖说明与项目保持一致,固定使用 PdfPig 0.1.16。
3230/3235项固定基线,保留5项原生合同缺口;实际SVG/XPS/SKP、Alpha8、浮点颜色与GPU资源互操作。Vulkan合批/设备复制/完成读回优化;Metal无Mac GPU,尚未实机验证。Avalonia接受>=12.1.0且<13.0.0,已验证宿主12.1.0–12.1.5。JPEG、文字/曲线/整页画质及性能/内存仍有差距。Sdcb.SimdCodecs保持1.4.0;.NET系统压缩与macOS官方窗口宿主是已允许的原生例外。完整测试、CPU/GPU/内存性能及兼容限制见包内CHANGELOG.md和本版报告。
Packages target .NET 10 or later:
| Package | Purpose |
|---|---|
| SimdSkia | Convenience package for the source compatibility facade |
| SimdSkia.Core | Geometry, commands and pixel storage |
| SimdSkia.Cpu | Scalar/SIMD CPU rasterization and composition |
| SimdSkia.Text | Managed static glyf TrueType parsing and basic Latin/CJK layout |
| SimdSkia.Imaging | Managed Sdcb codecs with validated input, supported colour conversion and permitted BCL compression |
| SimdSkia.Gpu | Vulkan and GL/GLES; experimental Metal core without hardware validation; requires system APIs/drivers |
| SimdSkia.Compatibility | Implemented SkiaSharp namespace / SK* facade |
| SimdSkia.Avalonia | Rendering/font adapter for Avalonia >=12.1.0 and <13.0.0 |
| SimdSkia.Avalonia.Desktop | Windows/Linux X11/macOS OS hosts plus the managed renderer |
| SimdSkia.Avalonia.Gpu | Optional Direct2D native presentation / Vulkan framebuffer drawing |
| SimdSkia.Gpu.Direct2D | Windows hardware Direct2D/D3D11 canvas, C# system API bindings |
| SimdSkia.Pdf | Optional managed PDF parsing/rendering; subset only, pinned PdfPig 0.1.16 |
dotnet add package SimdSkia.Avalonia.Desktop --version 0.1.2-preview.3
An existing Avalonia 12.1.5 application selects the adapter explicitly:
using SimdSkia.Avalonia;
AppBuilder.Configure<App>()
.UseSimdSkiaDesktop()
.StartWithClassicDesktopLifetime(args);
Windows uses its current message font; Linux/macOS discover supported installed static TrueType families. Explicit options.FontFiles.Add(path) overrides automatic selection. Parsing, shaping, glyph coverage and codecs remain C#. Chinese text needs a supported installed Chinese font. Complex shaping, CFF/variable/color fonts and hinting have gaps.
Startup preparation is enabled by default. To disable it for diagnosis, use .UseSimdSkiaDesktop(options => options.EnableStartupPreparation = false). It does not hide the window or add a placeholder frame. Keep all directly referenced SimdSkia packages on version 0.1.2-preview.3 and all Avalonia packages on 12.1.5.
The base adapter provides rendering/font services. The Desktop package supplies OS host selection without Skia/HarfBuzz/ANGLE packages. macOS uses the official MIT libAvaloniaNative window bridge, an explicit window-host exception; application drawing/fonts are managed. The optional GPU adapter defaults Direct2D to a native Windows swapchain; Vulkan currently waits for completion and reads back to the OS framebuffer. The Metal core is unverified and is not wired into Avalonia presentation. GPU glyphs normally use a managed atlas, and CPU layers/fallbacks are reported. See the complete quick start.
SimdSkia and SimdSkia.Compatibility expose only the implemented SK* subset. Do not reference them together with the original SkiaSharp types in the same compilation. Avalonia users normally need only the adapter, not the SK* facade.
MIT licensed. Third-party components retain their own licenses and notices, included in the relevant packages. See the repository's validation and remaining gaps.
Standalone SkiaSharp namespace usage
dotnet add package SimdSkia --version 0.1.2-preview.3
using SkiaSharp;
using var bitmap = new SKBitmap(160, 100);
using var canvas = new SKCanvas(bitmap);
canvas.Clear(SKColors.White);
using var paint = new SKPaint { Color = SKColors.Blue };
canvas.DrawRect(10, 10, 80, 50, paint);
if (bitmap.GetPixel(20, 20) != SKColors.Blue)
throw new Exception("Pixel validation failed.");
using var png = bitmap.Encode(SKEncodedImageFormat.Png, 100);
using var file = File.Create("rectangle.png");
png.SaveTo(file);
The facade targets the documented SkiaSharp 3.119.4 subset. The five native contracts remain missing, and rendering/behavior parity is incomplete. Dispose GPU resources explicitly on their creating thread; GC finalization equivalence is not established.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Clipper2 (= 2.0.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on SimdSkia.Core:
| Package | Downloads |
|---|---|
|
SimdSkia.Cpu
Managed C# 2D rendering components. Version 0.1 supports the documented subset; SkiaSharp source and rendering equivalence remain incomplete. No Google Skia rendering dependency. |
|
|
SimdSkia.Text
Managed C# 2D rendering components. Version 0.1 supports the documented subset; SkiaSharp source and rendering equivalence remain incomplete. No Google Skia rendering dependency. |
|
|
SimdSkia.Imaging
Managed C# 2D rendering components. Version 0.1 supports the documented subset; SkiaSharp source and rendering equivalence remain incomplete. No Google Skia rendering dependency. |
|
|
SimdSkia.Gpu
Managed C# 2D rendering components. Version 0.1 supports the documented subset; SkiaSharp source and rendering equivalence remain incomplete. No Google Skia rendering dependency. |
|
|
SimdSkia.Compatibility
Managed C# 2D rendering components. Version 0.1 supports the documented subset; SkiaSharp source and rendering equivalence remain incomplete. No Google Skia rendering dependency. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.4 | 0 | 11/9/2026 |
| 0.1.3 | 76 | 11/7/2026 |
| 0.1.2 | 73 | 11/7/2026 |
| 0.1.2-preview.3 | 72 | 11/6/2026 |
| 0.1.1 | 167 | 11/4/2026 |
| 0.1.0 | 160 | 11/4/2026 |
| 0.1.0-preview.10 | 108 | 11/1/2026 |
| 0.1.0-preview.9 | 117 | 10/27/2026 |
| 0.1.0-preview.8 | 113 | 10/27/2026 |
| 0.1.0-preview.7 | 106 | 10/26/2026 |
| 0.1.0-preview.6 | 109 | 10/22/2026 |
| 0.1.0-preview.5 | 112 | 10/22/2026 |
| 0.1.0-preview.4 | 110 | 10/21/2026 |
| 0.1.0-preview.3 | 104 | 10/21/2026 |
| 0.1.0-preview.2 | 102 | 10/21/2026 |
| 0.1.0-preview.1 | 97 | 10/21/2026 |
0.1.2-preview.3:固定SkiaSharp 3.119.4基线匹配3230/3235项;5项原生句柄/版本合同按约定保留。补充RuntimeEffect子集、Picture/Lattice/网格/滤镜、真实Alpha8、浮点颜色/Blender/抖动、LCD/中文嵌入点阵、SVG/XPS与原生v103 SKP子集。新增系统GL/GLES、D3D12及外部GPU纹理互操作;Vulkan矩形合批、设备复制、直接完成读回和去分配优化;Metal实现尚无Mac GPU验证。Avalonia接受>=12.1.0且<13.0.0,已验证宿主为12.1.0–12.1.5。Sdcb.SimdCodecs 1.4.0保持。仍有JPEG、曲线/文字/整页画质及GPU性能差距,不代表全面行为或二进制兼容。修复连续MoveTo与特殊混合SaveLayer范围回归;修正文档依赖版本更新脚本,PdfPig保持0.1.16。完整测试、性能、CPU/内存及限制见CHANGELOG.md和README.md。