diff options
author | 2024-04-08 15:04:35 +0200 | |
---|---|---|
committer | 2024-04-08 15:04:35 +0200 | |
commit | d922b478156488a7bc03c6e791e05c040d702634 (patch) | |
tree | 767e9b9fa2c6527a0b3e3b3dd1c21b29cd533ee8 /renderer | |
parent | 6ea763c2a79292e5b10be2240b4b57b920223616 (diff) | |
download | iced-d922b478156488a7bc03c6e791e05c040d702634.tar.gz iced-d922b478156488a7bc03c6e791e05c040d702634.tar.bz2 iced-d922b478156488a7bc03c6e791e05c040d702634.zip |
Reintroduce support for custom primitives in `iced_wgpu`
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/src/fallback.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/renderer/src/fallback.rs b/renderer/src/fallback.rs index 2676ba87..975f4866 100644 --- a/renderer/src/fallback.rs +++ b/renderer/src/fallback.rs @@ -399,19 +399,19 @@ where } #[cfg(feature = "wgpu")] -impl<A, B> iced_wgpu::primitive::pipeline::Renderer for Renderer<A, B> +impl<A, B> iced_wgpu::primitive::Renderer for Renderer<A, B> where - A: iced_wgpu::primitive::pipeline::Renderer, + A: iced_wgpu::primitive::Renderer, B: core::Renderer, { - fn draw_pipeline_primitive( + fn draw_primitive( &mut self, bounds: Rectangle, - primitive: impl iced_wgpu::primitive::pipeline::Primitive, + primitive: impl iced_wgpu::Primitive, ) { match self { Self::Primary(renderer) => { - renderer.draw_pipeline_primitive(bounds, primitive); + renderer.draw_primitive(bounds, primitive); } Self::Secondary(_) => { log::warn!( |