From 83fec2f5f6231f3871ecfccf594a555253f8286c Mon Sep 17 00:00:00 2001 From: Richard Date: Thu, 17 Mar 2022 00:34:42 -0300 Subject: Implement `GraphicsInformation` for `iced_wgpu` --- graphics/src/window/compositor.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'graphics/src/window/compositor.rs') diff --git a/graphics/src/window/compositor.rs b/graphics/src/window/compositor.rs index 5987b118..035101c9 100644 --- a/graphics/src/window/compositor.rs +++ b/graphics/src/window/compositor.rs @@ -38,6 +38,9 @@ pub trait Compositor: Sized { height: u32, ); + /// Returns [`GraphicsInformation`] used by this [`Compositor`]. + fn get_information(&self) -> GraphicsInformation; + /// Presents the [`Renderer`] primitives to the next frame of the given [`Surface`]. /// /// [`SwapChain`]: Self::SwapChain -- cgit