Skip to main content

rgpui_wgpu/
rgpui_wgpu.rs

1/// 文本系统实现,基于 cosmic-text 库
2mod cosmic_text_system;
3/// 共享 wgpu GPU 上下文(跨 crate 复用)
4#[cfg(not(target_family = "wasm"))]
5pub mod shared_context;
6/// wgpu 纹理图集管理
7mod wgpu_atlas;
8/// wgpu GPU 上下文封装
9mod wgpu_context;
10/// wgpu 渲染器实现
11mod wgpu_renderer;
12pub use cosmic_text_system::*;
13pub use wgpu;
14pub use wgpu_atlas::*;
15pub use wgpu_context::*;
16pub use wgpu_renderer::{GpuContext, WgpuRenderer, WgpuSurfaceConfig};