mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
use the tracker index as key in hashmap instead of ID
This commit is contained in:
parent
0c4b449644
commit
836f016dcd
@ -193,7 +193,9 @@ impl<A: HalApi> BakedCommands<A> {
|
||||
match buffer_use.kind {
|
||||
MemoryInitKind::ImplicitlyInitialized => {}
|
||||
MemoryInitKind::NeedsInitializedMemory => {
|
||||
match uninitialized_ranges_per_buffer.entry(buffer_use.buffer.as_info().id()) {
|
||||
match uninitialized_ranges_per_buffer
|
||||
.entry(buffer_use.buffer.as_info().tracker_index())
|
||||
{
|
||||
Entry::Vacant(e) => {
|
||||
e.insert((
|
||||
buffer_use.buffer.clone(),
|
||||
|
Loading…
Reference in New Issue
Block a user