VelloSharp.Skia.Core
VelloSharp.Skia.Core
provides the shared surface and resource glue needed to host Vello content inside Skia contexts.
Getting Started
- Install with
dotnet add package VelloSharp.Skia.Core
. - Add
using VelloSharp.Skia.Core;
where you configure Skia surfaces. - Create bridge objects (surface providers, framebuffer adapters, etc.) through the factory methods in this package before submitting work to Skia.
- Coordinate lifetimes with
VelloSharp.Gpu
so buffers and textures remain synchronized across Skia and Vello.
Usage Example
using SkiaSharp;
var surface = SKSurface.Create(new SKImageInfo(256, 256));
surface.Canvas.Clear(SKColors.White);
using var paint = new SKPaint { Color = SKColors.DarkOrange, IsAntialias = true };
surface.Canvas.DrawCircle(128, 128, 96, paint);
surface.Flush();
Next Steps
- See the API reference for the available surface adapters and device helpers.
- Pair with
VelloSharp.Skia.Gpu
orVelloSharp.Skia.Cpu
depending on your target environment.