This PR introduces a new constructor for canvas::Cache called with_group. This method can be used to group the caches of a canvas (or even different ones!) together in an application.
Cache groups serve as a hint that certain sets of primitives are likely to change together; enabling different kinds of optimizations in a renderer. For now, cache groups share the same text atlas when using iced_wgpu.
This PR introduces a new constructor for
canvas::Cache
calledwith_group
. This method can be used to group the caches of acanvas
(or even different ones!) together in an application.Cache groups serve as a hint that certain sets of primitives are likely to change together; enabling different kinds of optimizations in a renderer. For now, cache groups share the same text atlas when using
iced_wgpu
.