Expand description
§Vello Hybrid
A hybrid CPU/GPU renderer for 2D vector graphics.
This crate provides a rendering API that combines CPU and GPU operations for efficient vector graphics processing. The hybrid approach balances flexibility and performance by:
- Using the CPU for path processing and initial geometry setup
- Leveraging the GPU for fast rendering and compositing
- Minimizing data transfer between CPU and GPU
§Key Features
- Efficient path rendering with CPU-side processing
- GPU-accelerated compositing and blending
- Support for both windowed and headless rendering
§Architecture
The renderer is split into several key components:
Scene: Manages the render context and path processing on the CPURenderer: Handles GPU resource management and rendering operationsRenderData: Contains the processed geometry ready for GPU consumption
See the individual module documentation for more details on usage and implementation.
Re-exports§
pub use util::DimensionConstraints;
Modules§
- util
- Simple helpers for managing wgpu state and surfaces.
Structs§
- Config
- Configuration for the GPU renderer
- GpuStrip
- Represents a GPU strip for rendering
- Pixmap
- A pixmap of premultiplied RGBA8 values backed by
u8. - Render
Size - Dimensions of the rendering target
- Render
Target Config - Options for the renderer
- Renderer
- Vello Hybrid’s Renderer.
- Scene
- A render context for hybrid CPU/GPU rendering.
Enums§
- Render
Error - Errors that can occur during rendering.