Implement support for multiple text layers in iced_wgpu
This commit is contained in:
parent
baf51a8fcf
commit
ba258f8fbc
2 changed files with 35 additions and 13 deletions
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue