mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
[core] Don't derive Default
for ResourceMaps
.
The derivation is only effective if the generic type parameter `A` also implements `Default`, which `HalApi` implementations generally don't, so this derivation never actually took place. (This is why `ResourceMaps::new` is written out the way it is.)
This commit is contained in:
parent
895879b8c6
commit
2b0e3ed01c
@ -23,7 +23,6 @@ use std::sync::Arc;
|
||||
use thiserror::Error;
|
||||
|
||||
/// A struct that keeps lists of resources that are no longer needed by the user.
|
||||
#[derive(Default)]
|
||||
pub(crate) struct ResourceMaps<A: HalApi> {
|
||||
pub buffers: FastHashMap<TrackerIndex, Arc<Buffer<A>>>,
|
||||
pub staging_buffers: FastHashMap<TrackerIndex, Arc<StagingBuffer<A>>>,
|
||||
|
Loading…
Reference in New Issue
Block a user