Skip to content

pleme-io/garasu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Garasu (硝子)

GPU rendering engine for pleme-io applications. Provides a reusable wgpu + winit + glyphon stack so every GPU-accelerated app shares the same rendering foundation.

Components

Module Purpose
context wgpu device, adapter, queue, surface lifecycle
text glyphon text layout and rasterization
shader WGSL post-processing pipeline (ghostty/tobira pattern)
window winit window creation with platform defaults
error Unified error type

Usage

[dependencies]
garasu = { git = "https://github.com/pleme-io/garasu" }
use garasu::{GpuContext, TextRenderer, ShaderPipeline, AppWindow};

let gpu = pollster::block_on(GpuContext::new())?;
let text = TextRenderer::new(&gpu.device, &gpu.queue, format);

Build

cargo build
cargo test --lib

Design

  • Metal on macOS, Vulkan on Linux (via wgpu backends)
  • Shader plugin system: built-in + custom ~/.config/{app}/shaders/*.wgsl
  • Uniforms: time, resolution, input texture + sampler
  • Lock-free text rendering via glyphon

About

garasu library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors