Skip to main content

Crate canvas_renderer

Crate canvas_renderer 

Source
Expand description

§Saorsa Canvas Renderer

Custom minimal renderer built on wgpu for maximum control and smallest footprint.

§Rendering Backends

┌─────────────────────────────────────────────┐
│            Renderer Trait                   │
├─────────────┬─────────────┬─────────────────┤
│ WebGPU/wgpu │ WebGL2      │ 2D Fallback     │
│ (GPU)       │ (older GPU) │ (no GPU)        │
└─────────────┴─────────────┴─────────────────┘

Re-exports§

pub use backend::RenderBackend;
pub use error::RenderError;
pub use error::RenderResult;
pub use holographic::HoloPlayInfo;
pub use holographic::HolographicRenderResult;
pub use holographic::HolographicRenderer;
pub use holographic::HolographicStats;
pub use quilt::LookingGlassPreset;
pub use quilt::Quilt;
pub use quilt::QuiltRenderSettings;
pub use quilt::QuiltRenderTarget;
pub use quilt::QuiltView;
pub use spatial::Camera;
pub use spatial::HolographicConfig;
pub use spatial::Mat4;
pub use spatial::QuiltRenderInfo;
pub use spatial::Vec3;
pub use video::VideoFrameData;
pub use video::VideoTextureEntry;
pub use video::VideoTextureError;
pub use video::VideoTextureManager;
pub use video::VideoTextureResult;

Modules§

backend
Rendering backend implementations.
chart
Chart rendering utilities using plotters.
error
Renderer error types.
holographic
Holographic Rendering
image
Image loading utilities.
quilt
Quilt Rendering
spatial
Spatial rendering for holographic and 3D displays.
texture_cache
Texture cache for efficient GPU resource management.
video
Video texture management for streaming video content.

Structs§

Renderer
The main renderer interface.
RendererConfig
Configuration for the renderer.

Enums§

BackendType
Available rendering backends.