Skip to content

Restore SkiaSharp.Vulkan.Silk.NET package production - #4841

Merged
mattleibow merged 1 commit into
mainfrom
mattleibow-restore-silk-net-package
Aug 21, 2026
Merged

mattleibow merged 1 commit into
mainfrom
mattleibow-restore-silk-net-package

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Description

Restores SkiaSharp.Vulkan.Silk.NET to normal package production. The project already belongs to the full source solution and Vulkan test solutions, but the platform-specific solution filters used by managed CI builds and NuGet packing selected only the SharpVk Vulkan package. Adding Silk.NET to those filters and to SUPPORTED_NUGETS ensures stable and preview package builds produce and track it consistently.

Related issues

None.

Required skia PR

None.

Areas affected

  • Managed API (binding/)
  • Native / C API (externals/skia/src/c, include/c)
  • Generated P/Invoke bindings
  • Native dependency or Skia update (libpng, HarfBuzz, FreeType, zlib, milestone bump, …)
  • Views & integrations (MAUI, Uno, WPF, WinUI, Blazor, …)
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

Behavior

Platform package builds produce SkiaSharp.Vulkan.Silk.NET again. There are no managed or native API changes.

Testing

  • dotnet cake --target=externals-download completed successfully.
  • dotnet sln source/SkiaSharpSource.{Windows,Mac,Linux}.slnf list confirmed each platform filter selects SkiaSharp.Vulkan.Silk.NET.csproj.
  • dotnet pack source/SkiaSharp.Vulkan/SkiaSharp.Vulkan.Silk.NET/SkiaSharp.Vulkan.Silk.NET.csproj --configuration Release produced SkiaSharp.Vulkan.Silk.NET.4.152.0.nupkg.
  • The repository test solution ran 6,159 core tests plus singleton, Direct3D, and Vulkan hosts. Two unrelated stream ownership failures passed when rerun individually; the run remains red only for the existing macOS ganesh-gl/DiagonalLines golden mismatch (1,832 outlier pixels versus 1,310 allowed). This packaging-only change does not affect rendering; CI will provide the authoritative platform validation.
  • No focused regression test was added; package CI validates the selected solution filters and produced package inventory.

Checklist

  • Tests added or updated (not applicable for this inventory-only change; validation is documented above)
  • Changes above lists all public API and behavioral changes (or "None.")
  • New/changed public API? Filed a docs issue in mono/SkiaSharp-API-docs so reference docs can be written later (not applicable: no API changes)
  • Native change? Companion mono/skia PR linked above and bindings regenerated (not applicable: no native changes)

Include the Silk.NET Vulkan project in every platform package filter and register its 4.152.0 baseline in the supported NuGet inventory.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b3df0b20-ad56-421a-a413-22ee9bce9b52
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

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 -- 4841

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4841"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4841/packages --name skiasharp-pr-4841
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4841

@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

@github-actions

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #4841

⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS

Informational only — this never blocks the PR. 🟢 faster / less allocation · 🔴 slower / more allocation; moves under 5% are hidden as noise.

⏱️ Times are raw BenchmarkDotNet means, and the ⭐ PR and baseline legs run on separate CI runners, so microbenchmarks can swing run-to-run — treat small time deltas as noise. Allocations are deterministic and the reliable signal. The interactive perf-dashboard (linked below) applies smoothing for the trend view.

Highlights

⏱️ Time — 🔴 23 slower · 🟢 47 faster

  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · macOS · 1.58 µs → 2.15 µs (+36%)
  • 🟢 ColorMathBenchmark.PreMultiply(Colors: 4096) · Windows · 13.66 µs → 9.32 µs (-32%)
  • 🟢 MatrixMapPointsBenchmark.MapPoints(Points: 256) · Windows · 261.9 ns → 179.3 ns (-32%)
  • 🟢 ColorMathBenchmark.ToColorF(Colors: 4096) · Windows · 18.71 µs → 13.17 µs (-30%)
  • 🟢 ColorMathBenchmark.UnPreMultiply(Colors: 4096) · Windows · 11.41 µs → 8.08 µs (-29%)
  • …and 65 more (see details below)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.38)

Benchmark baseline this PR Δ
ColorMathBenchmark.ToColor(Colors: 4096) 15.38 µs 11.62 µs 🟢 -24%
MatrixOpsBenchmark.Invert(Count: 4096) 127.49 µs 148.90 µs 🔴 +17%
MatrixMapPointsBenchmark.MapRect(Points: 256) 11.02 µs 12.74 µs 🔴 +16%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 176.56 µs 203.24 µs 🔴 +15%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 72.01 µs 81.65 µs 🔴 +13%
ColorMathBenchmark.PreMultiply(Colors: 4096) 12.86 µs 14.49 µs 🔴 +13%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 13.62 µs 15.22 µs 🔴 +12%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 217.37 µs 241.98 µs 🔴 +11%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 4.62 µs 5.12 µs 🔴 +11%
MatrixOpsBenchmark.Concat(Count: 4096) 222.03 µs 246.02 µs 🔴 +11%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.45 µs 12.66 µs 🔴 +11%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 172.96 µs 186.90 µs 🔴 +8%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 236.3 ns 218.9 ns 🟢 -7%
MatrixMapPointsBenchmark.MapVector(Points: 256) 10.97 µs 11.75 µs 🔴 +7%
ColorMathBenchmark.ToColorF(Colors: 4096) 13.14 µs 14.06 µs 🔴 +7%
RuntimeEffectShaderBenchmark.DrawFrame 2.85 ms 3.03 ms 🔴 +6%
PathBoundsBenchmark.TightBounds(Points: 1024) 10.60 µs 11.23 µs 🔴 +6%
CanvasDrawBenchmark.Draw(Shapes: 64) 4.17 ms 4.40 ms 🔴 +5%

Windows

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.38)

Benchmark baseline this PR Δ
ColorMathBenchmark.PreMultiply(Colors: 4096) 13.66 µs 9.32 µs 🟢 -32%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 261.9 ns 179.3 ns 🟢 -32%
ColorMathBenchmark.ToColorF(Colors: 4096) 18.71 µs 13.17 µs 🟢 -30%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.41 µs 8.08 µs 🟢 -29%
RuntimeEffectShaderBenchmark.DrawFrame 998.08 µs 706.57 µs 🟢 -29%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 935.54 µs 709.22 µs 🟢 -24%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 10.60 ms 8.11 ms 🟢 -23%
ColorParseBenchmark.Parse(Iterations: 1000) 80.33 µs 61.81 µs 🟢 -23%
ColorMathBenchmark.ToColor(Colors: 4096) 11.63 µs 9.13 µs 🟢 -22%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.26 ms 991.09 µs 🟢 -21%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.86 µs 2.26 µs 🟢 -21%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.32 ms 2.66 ms 🟢 -20%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 327.36 µs 263.02 µs 🟢 -20%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 239.98 µs 192.99 µs 🟢 -20%
MatrixOpsBenchmark.Concat(Count: 4096) 237.88 µs 192.41 µs 🟢 -19%
CanvasDrawBenchmark.Draw(Shapes: 512) 20.69 ms 16.83 ms 🟢 -19%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 2.53 ms 2.08 ms 🟢 -18%
PathBoundsBenchmark.TightBounds(Points: 64) 1.65 µs 1.35 µs 🟢 -18%
PathBoundsBenchmark.TightBounds(Points: 1024) 16.87 µs 13.87 µs 🟢 -18%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 10.42 ms 8.68 ms 🟢 -17%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 808.14 µs 681.65 µs 🟢 -16%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.51 ms 2.12 ms 🟢 -15%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 2.19 ms 1.88 ms 🟢 -14%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 71.77 µs 62.22 µs 🟢 -13%
MatrixOpsBenchmark.Invert(Count: 4096) 123.37 µs 107.60 µs 🟢 -13%
…and 6 more

macOS

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.38)

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.58 µs 2.15 µs 🔴 +36%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.02 ms 2.24 ms 🟢 -26%
ColorParseBenchmark.Parse(Iterations: 1000) 89.70 µs 69.30 µs 🟢 -23%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.78 ms 1.38 ms 🟢 -22%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 7.03 ms 5.47 ms 🟢 -22%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 220.81 µs 266.91 µs 🔴 +21%
MatrixOpsBenchmark.Invert(Count: 4096) 75.22 µs 59.65 µs 🟢 -21%
ColorMathBenchmark.ToColor(Colors: 4096) 25.51 µs 20.37 µs 🟢 -20%
ColorMathBenchmark.ToColorF(Colors: 4096) 7.05 µs 5.64 µs 🟢 -20%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 704.59 µs 566.95 µs 🟢 -20%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 152.0 ns 181.2 ns 🔴 +19%
MatrixOpsBenchmark.Concat(Count: 4096) 143.95 µs 120.99 µs 🟢 -16%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.17 µs 1.30 µs 🔴 +11%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 6.48 ms 5.80 ms 🟢 -11%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 71.67 µs 78.69 µs 🔴 +10%
MatrixMapPointsBenchmark.MapVector(Points: 256) 2.51 µs 2.74 µs 🔴 +9%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 1.37 ms 1.25 ms 🟢 -9%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 21.81 µs 23.67 µs 🔴 +9%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 721.04 µs 665.93 µs 🟢 -8%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.71 ms 1.59 ms 🟢 -7%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 114.13 µs 108.41 µs 🟢 -5%

📈 Full interactive perf-dashboard & run details →

@github-actions

Copy link
Copy Markdown
Contributor

📦 Artifact size report

Packages from this PR (build 1562829) vs the latest nightly baseline 4.152.0-nightly.38 (observed 2026-08-21).

Total .nupkg size: 569.3 MB → 569.1 MB (−277.0 KB, -0.0%)

Packages

⚠️ marks growth over 500.0 KB or 2%. Changes under 50.0 KB are treated as noise.

Package baseline this PR Δ Δ%
SkiaSharp.NativeAssets.WinUI 109.0 MB 108.4 MB 🟢 −540.1 KB -0.5%
SkiaSharp.Vulkan.Silk.NET new 129.3 KB +129.3 KB ·
SkiaSharp.NativeAssets.WebAssembly 69.7 MB 69.7 MB 🔴 +65.6 KB +0.1%
HarfBuzzSharp.NativeAssets.Win32 20.7 MB 20.8 MB 🔴 +50.4 KB +0.2%

+37 package(s) unchanged (< 50.0 KB).

Per-file changes

HarfBuzzSharp.NativeAssets.Win32

File Size
runtimes/win-x86/native/libHarfBuzzSharp.pdb 22.0 MB → 22.2 MB (🔴 +264.0 KB)
runtimes/win-arm64/native/libHarfBuzzSharp.pdb 22.3 MB → 22.5 MB (🔴 +184.0 KB)

SkiaSharp.NativeAssets.WinUI

File Size
runtimes/win-arm64/native/libGLESv2.pdb 64.5 MB → 64.4 MB (🟢 −144.0 KB)
runtimes/win-x64/native/libGLESv2.pdb 66.6 MB → 66.5 MB (🟢 −96.0 KB)
runtimes/win-x86/native/libGLESv2.pdb 67.3 MB → 67.2 MB (🟢 −96.0 KB)
runtimes/win-x86/native/libEGL.pdb 6.5 MB → 6.5 MB (🟢 −16.0 KB)

Informational only — this never blocks the PR. Native binaries are labelled by os/arch.

@mattleibow
mattleibow merged commit bfbbaf6 into main Aug 21, 2026
109 of 112 checks passed
@mattleibow
mattleibow deleted the mattleibow-restore-silk-net-package branch August 21, 2026 21:46
@github-actions github-actions Bot added this to the 4.152.0-rc.1 milestone Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants