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

Function msaa_state

src/plot_renderer/shader.rs:22–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20///
21/// Desktop: 4 — plots render through `render()`/`encode` into a dedicated
22/// MSAA offscreen target and composite the resolved texture, so
23/// `Primitive::draw` must return `false` (see `PlotWidget` shader impl).
24pub(crate) const MSAA_SAMPLE_COUNT: u32 = if cfg!(target_os = "android") { 1 } else { 4 };
25
26pub struct RenderParams<'a> {
27 pub encoder: &'a mut CommandEncoder,
28 pub target: &'a TextureView,
29 /// clip_bounds considers crop in scrollable viewport
30 pub clip_bounds: &'a Rectangle<u32>,
31}

Callers 5

ensure_line_pipelineMethod · 0.85
ensure_fill_pipelineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected