debug: Add image support and gpu vendor logos
This commit is contained in:
parent
cd5c185440
commit
1de4b97bca
11 changed files with 541 additions and 71 deletions
|
|
@ -221,13 +221,16 @@ pub fn init_backend(
|
|||
.map_err(|_| anyhow::anyhow!("Failed to init eventloop timer for winit"))?;
|
||||
event_ping.ping();
|
||||
|
||||
#[cfg(feature = "debug")]
|
||||
let fps = Fps::new(backend.renderer());
|
||||
|
||||
state.backend = BackendData::Winit(WinitState {
|
||||
backend,
|
||||
output: output.clone(),
|
||||
damage_tracker: DamageTrackedRenderer::from_output(&output),
|
||||
screencopy: Vec::new(),
|
||||
#[cfg(feature = "debug")]
|
||||
fps: Fps::default(),
|
||||
fps,
|
||||
});
|
||||
state
|
||||
.common
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue