Implement GraphicsInformation for iced_glow
This commit is contained in:
parent
83fec2f5f6
commit
2b4d8a7b26
2 changed files with 13 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue