(width: Size, vertical: bool, world_per_px: [f32; 2])
| 1813 | } |
| 1814 | |
| 1815 | if let Some(pipeline) = self.pipelines.composite.as_ref() { |
| 1816 | let mut pass = params.encoder.begin_render_pass(&RenderPassDescriptor { |
| 1817 | label: Some("iced_plot composite"), |
| 1818 | color_attachments: &[Some(target_attachment(params.target))], |
| 1819 | depth_stencil_attachment: None, |
| 1820 | occlusion_query_set: None, |
| 1821 | timestamp_writes: None, |
| 1822 | }); |
| 1823 | |
| 1824 | pass.set_viewport( |
| 1825 | 0.0, |
| 1826 | 0.0, |
| 1827 | msaa_targets.width as f32, |
| 1828 | msaa_targets.height as f32, |
| 1829 | 0.0, |
| 1830 | 1.0, |