Skip to main content

Crate mgui_runtime

Crate mgui_runtime 

Source
Expand description

mgui-runtime — 平台无关渲染运行时(Runner API 见 app)

注意:文本服务(parley/swash/atlas/TextRenderObject)已迁至 mgui-text, 任务执行器在 mgui-task;本 crate 通过 re-export 保持旧路径可用。

  • renderer:多 layer 合成渲染器(wgpu,不依赖 winit)
  • accessibility:语义树 → AccessKit 数据与 action 路由(不创建 winit Adapter)
  • profile:帧耗时采样
  • app:Runner 接口/配置(desktop 事件循环在 mgui-shell-desktop)
  • task:UI 线程本地异步任务执行器(re-export)

GPU surface/窗口/事件循环在 mgui-shell-desktop;本 crate 不依赖 winit。

Re-exports§

pub use mgui_task as task;

Modules§

accessibility
无障碍语义树 — 平台无关的 AccessKit 数据转换与 action 路由。
app
平台无关 Runner API —— 应用只依赖本模块,不直接接触 winit/wgpu。
gpu_profiler
阶段 B4:GPU 端 timestamp query(测 GPU paint 耗时)
profile
阶段 B3:Frame Profile — CPU paint 耗时采样
renderer
startup
启动顺序埋点与冒烟校验。
text
平台无关文本服务(实现在 mgui-text) TextRenderObject + parley 富文本布局 + swash 栅格化 + 字形图集
text_field
平台无关文本服务(实现在 mgui-text) TextFieldRenderObject — 文本输入框渲染(TextFieldWidget 在 mgui-components)

Structs§

ImageTextureStats
图片纹理占用快照(Inspector/诊断用)