MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / PlotRenderStrategy

Enum PlotRenderStrategy

src/plot_renderer/mod.rs:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12/// Ways in which the widget can be rendered.
13#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
14pub 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
23impl PlotRenderStrategy {
24 /// From `iced::system::Information`'s `graphics_backend`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected