gpu-allocator icon indicating copy to clipboard operation
gpu-allocator copied to clipboard

❓️ `rename_allocation` via interior mutability

Open h3r2tic opened this issue 1 year ago • 1 comments

Ohai, I'm not sure if this is useful to you, or a desirable change, but I thought I'd share anyway.

In our engine, we currently keep Allocations immutable, so updating their debug names isn't possible without wrapping them in some sorta mutex.

Here, I use arc-swap to allow interior mutability for the debug names.

(sorry for the noise in Cargo.toml, it got auto-formatted. I can clean it up if you're interested in the change)

h3r2tic avatar Jul 08 '24 17:07 h3r2tic

Hey tom I think these changes are useful, if you have time could you rebase them on main & drop the formatting changes in Cargo.toml?

Jasper-Bekkers avatar Oct 03 '24 09:10 Jasper-Bekkers