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 CPURendererorWebGlRenderer: Handles GPU resource management and executes draw operationsScheduler: Manages and schedules draw operations on the renderer.
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§
- Atlas
Config - Configuration for multiple atlas support.
- Config
- Configuration for the GPU renderer.
- GpuStrip
- Represents a GPU strip for rendering.
- Pixmap
- A pixmap of premultiplied RGBA8 values backed by
u8. - Render
Settings - Settings to apply to the render context.
- 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§
- Allocation
Strategy - Strategy for allocating images across multiple atlases.
- Render
Error - Errors that can occur during rendering.
Traits§
- Atlas
Writer - Trait for types that can write image data directly to the atlas texture.