Implement support for multiple text layers in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2023-02-01 03:24:14 +01:00
parent baf51a8fcf
commit ba258f8fbc
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 35 additions and 13 deletions

View file

@ -105,6 +105,8 @@ impl Backend {
);
}
self.text_pipeline.end_frame();
#[cfg(any(feature = "image", feature = "svg"))]
self.image_pipeline.trim_cache(device, encoder);
}
@ -180,6 +182,7 @@ impl Backend {
device,
queue,
&layer.text,
layer.bounds,
scale_factor,
target_size,
);