| 12 | /// Ways in which the widget can be rendered. |
| 13 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] |
| 14 | pub enum PlotRenderStrategy { |
| 15 | /// Use the `wgpu` shader path. |
| 16 | #[default] |
| 17 | Shader, |
| 18 | /// Use the `canvas` path for CPU renderers such as `tiny-skia`. |
| 19 | #[cfg(feature = "canvas")] |
| 20 | Canvas, |
| 21 | } |
| 22 | |
| 23 | impl PlotRenderStrategy { |
| 24 | /// From `iced::system::Information`'s `graphics_backend`. |
nothing calls this directly
no outgoing calls
no test coverage detected