Spinel is a high-performance GPU-accelerated vector graphics, compositing and image processing pipeline for Vulkan 1.2 GPUs.
Spinel differs from other vector graphics implementations by providing explicit APIs for defining:
These new explicit sub-APIs allow new programming idioms that untangle the canonical immediate-mode 2D API.
The Spinel API and its new idioms achieve a number of advantages over existing 2D APIs. These include:
All processing is offloaded to the GPU and every stage in the rendering pipeline is parallelized. This drives both performance and efficiency.
Most of the Spinel pipeline is focused on rasterizing paths, building a proto-scene graph of where these paths appear on layers, and encoding how each layer is rendered. These inputs are passed to an extremely performant tile-based renderer that is effectively a small “virtual machine” for rendering vector graphics, blending layers, applying masks, and more.
Layers are explicit and their rules and stylings can be defined in any order.
Furthermore, rasters can be “placed” onto layers in any order.
These two capabilities can enable significant work reuse.
The following Vulkan 1.2 devices are supported:
|ARM||Valhall (16-wide)||🚧||Under construction|
|NVIDIA||Mobile: sm_30,sm_32,sm_53,sm_62||🚧||Under construction|
|Intel||APL/GLK using a 2x9 or 1x12 thread pool||🚧||Under construction|