Skip to main content

Crate garasu

Crate garasu 

Source
Expand description

Garasu (硝子) — GPU rendering engine for pleme-io applications.

Provides a reusable wgpu + winit + glyphon rendering stack:

  • GpuContext: wgpu device, queue, surface lifecycle
  • TextRenderer: glyphon-backed text layout and rasterization
  • TextConfig / TextLayout: pure-data text configuration (testable without GPU)
  • ShaderPipeline: WGSL shader loading and management (testable without GPU)
  • AppWindow / WindowConfig: winit window creation with sensible defaults
  • adaptive: runtime posture detection + recommendation (fps, vsync, display refresh, GPU caps) — consumed as a typed default layer between hardcoded fallbacks and user config
  • GarasuError: unified error type

Re-exports§

pub use adaptive::Display as AdaptiveDisplay;
pub use adaptive::GpuPosture;
pub use adaptive::Platform;
pub use adaptive::RecommendationProfile;
pub use adaptive::RuntimeBudget;
pub use adaptive::RuntimePosture;
pub use context::GpuContext;
pub use error::GarasuError;
pub use quad::QuadInstance;
pub use quad::QuadPipeline;
pub use shader::BLUR_SHADER;
pub use shader::ShaderConfig;
pub use shader::ShaderPipeline;
pub use shader::ShaderSource;
pub use text::preload_fonts;
pub use text::TextConfig;
pub use text::TextLayout;
pub use text::TextRenderer;
pub use window::AppWindow;
pub use window::WindowConfig;

Modules§

adaptive
Runtime posture detection + recommendation for GPU applications.
context
error
font_cache
Persistent fontdb cache.
headless
Headless wgpu render target for deterministic GPU testing.
quad
Quad pipeline — instanced solid-fill colored rectangles.
shader
text
window