use the tracker index as key in hashmap instead of ID

This commit is contained in:
teoxoy 2024-06-19 15:10:56 +02:00 committed by Teodor Tanasoaia
parent 0c4b449644
commit 836f016dcd

View File

@ -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(),