Skip to main content

Module debug

Module debug 

Source
Expand description

The viewports seen by egui-pop’s debug bridge: register collector and its viewport snapshot lists every viewport drawn (view, mapping, hooks set, what the hooks decided, the last signals, the tiles and the bytes their uploads copied, tiles.uploads, and the device tiles the render device takes, tiles.device); its set_view action moves a viewport as a command would (through its before_view hook, on the next frame).

Experimental: may change in any release (docs/stability.md).
use egui_pop_core::debug::DebugBridge;

let mut bridge = DebugBridge::with_core_collectors();
bridge.register(egui_pop_viewport::debug::collector()).unwrap();

Functions§

collector
The viewport collector for the debug bridge.
signal_json
A signal as JSON.
snapshot
The snapshot of every viewport drawn in ctx, by name.
transfers_json
Tile pixels copied to the GPU, as JSON.
view_json
A view as JSON.