()
| 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). |
| 24 | pub(crate) const MSAA_SAMPLE_COUNT: u32 = if cfg!(target_os = "android") { 1 } else { 4 }; |
| 25 | |
| 26 | pub 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 | } |
no outgoing calls
no test coverage detected