Implement GraphicsInformation for iced_glow

This commit is contained in:
Richard 2022-03-17 00:41:43 -03:00
parent 83fec2f5f6
commit 2b4d8a7b26
2 changed files with 13 additions and 0 deletions

View file

@ -67,6 +67,15 @@ impl iced_graphics::window::GLCompositor for Compositor {
}
}
fn get_information(&self) -> iced_graphics::window::GraphicsInformation {
let adapter = unsafe { self.gl.get_parameter_string(glow::RENDERER) };
iced_graphics::window::GraphicsInformation {
backend: format!("{:?}", self.gl.version()),
adapter,
}
}
fn present<T: AsRef<str>>(
&mut self,
renderer: &mut Self::Renderer,