Use an opaque Id type for image::Handle
Hashing pointers is a terrible idea.
This commit is contained in:
parent
f5bc336d69
commit
b52c7bb610
6 changed files with 59 additions and 36 deletions
|
|
@ -71,8 +71,8 @@ impl Pipeline {
|
|||
|
||||
#[derive(Debug, Default)]
|
||||
struct Cache {
|
||||
entries: FxHashMap<u64, Option<Entry>>,
|
||||
hits: FxHashSet<u64>,
|
||||
entries: FxHashMap<raster::Id, Option<Entry>>,
|
||||
hits: FxHashSet<raster::Id>,
|
||||
}
|
||||
|
||||
impl Cache {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue