From e23e4b8db20f3910bb6617a6931c9a8906791f8e Mon Sep 17 00:00:00 2001 From: Richard Date: Thu, 17 Mar 2022 00:25:00 -0300 Subject: Introduce `GraphicsInformation` to `iced_graphics` --- graphics/src/window/compositor.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'graphics/src/window/compositor.rs') diff --git a/graphics/src/window/compositor.rs b/graphics/src/window/compositor.rs index 9ea040cd..5987b118 100644 --- a/graphics/src/window/compositor.rs +++ b/graphics/src/window/compositor.rs @@ -71,3 +71,12 @@ pub enum SurfaceError { #[error("There is no more memory left to allocate a new frame")] OutOfMemory, } + +/// Contains informations about the graphics (e.g. graphics adapter, graphics backend). +#[derive(Debug)] +pub struct GraphicsInformation { + /// Contains the graphics adapter. + pub adapter: String, + /// Contains the graphics backend. + pub backend: String, +} -- cgit