Skip to content

Commit

Permalink
Improve debug label for memory blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
FlannyH committed May 22, 2024
1 parent 33e8ae0 commit d809208
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/metal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ impl MemoryBlock {
heap_descriptor.set_size(size);

let heap = Arc::new(device.new_heap(heap_descriptor));
heap.set_label(&format!(
"MemoryBlock {:?}",
heap_descriptor.resource_options(),
));

let sub_allocator: Box<dyn allocator::SubAllocator> = if dedicated {
Box::new(allocator::DedicatedBlockAllocator::new(size))
Expand Down

0 comments on commit d809208

Please sign in to comment.