CpuSkiaVulkanBackend
- Namespace: Turian.Engine.UI
- Source File: CpuSkiaVulkanBackend.cs
UI render backend that rasterizes the frame with CPU SkiaSharp and uploads the snapshot into an engine Texture once per frame. Also usable anywhere Guinevere expects an ICanvasRenderer.
Remarks
Per-frame cost is one CPU rasterization plus a staged host→device copy that blocks the graphics queue (see Update). Adequate for HUDs and modest panels; the GPU-shared-device path (GpuSkiaVulkanBackend) is the answer for large, continuously-animating surfaces.
Properties
Size
((int Width, int Height))
Texture
(Texture?)
Public Methods
Resize
public void Resize(int width, int height)
Resizes the raster target and discards the previous texture.
Parameters:
width(int)height(int)
Render
public void Render(Action<SKCanvas> draw)
Rasterizes one frame and uploads it to the Vulkan texture.
Parameters:
draw(Action)
Dispose
public void Dispose()