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

Class HighlightPoint

src/plot_widget.rs:1893–1905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1891 /// `prepare` with its own encoder/submission.
1892 ///
1893 /// Only valid when the pipelines are single-sampled: iced's surface pass
1894 /// has sample count 1, so with MSAA pipelines (desktop, 4x) this returns
1895 /// `false` and iced falls back to `render`, which draws into a dedicated
1896 /// MSAA offscreen target and composites the resolved texture.
1897 fn draw(
1898 &self,
1899 renderer_state: &Self::Pipeline,
1900 render_pass: &mut iced::wgpu::RenderPass<'_>,
1901 ) -> bool {
1902 if crate::plot_renderer::MSAA_SAMPLE_COUNT > 1 {
1903 return false;
1904 }
1905 if let Some(renderer) = renderer_state.renderers.get(&self.instance_id) {
1906 renderer.draw_in_pass(render_pass);
1907 }
1908 true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected