From 836f016dcdbe938a8e22ae4d28279fa03852827f Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:10:56 +0200 Subject: [PATCH] use the tracker index as key in hashmap instead of ID --- wgpu-core/src/command/memory_init.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wgpu-core/src/command/memory_init.rs b/wgpu-core/src/command/memory_init.rs index 74f298978..dac862e97 100644 --- a/wgpu-core/src/command/memory_init.rs +++ b/wgpu-core/src/command/memory_init.rs @@ -193,7 +193,9 @@ impl BakedCommands { 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(),