summaryrefslogtreecommitdiffstats
path: root/renderer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-08 15:04:35 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-08 15:04:35 +0200
commitd922b478156488a7bc03c6e791e05c040d702634 (patch)
tree767e9b9fa2c6527a0b3e3b3dd1c21b29cd533ee8 /renderer
parent6ea763c2a79292e5b10be2240b4b57b920223616 (diff)
downloadiced-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.rs10
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!(