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

Add getters to AllocationSizes

Open DeltaEvo opened this issue 4 weeks ago • 0 comments

AllocationSizes can adjust the parameters given, it might be usefull to read them back to put a hard limit on the memory usage https://github.com/gfx-rs/wgpu/blob/afec4b73c8d5af2cbc9581ba163d143aa031daf8/wgpu-hal/src/dx12/suballocation.rs#L94-L95

Or even better, but I don't know if it's in the scope of gpu-allocator, allowing to configure a budget (upper limit) for the allocator, or something that could allow to get the size of the underlying allocation used prior to a allocate call (that would only return a size if the allocator needs to grow a block or allocate a new one and 0 if it can reuse a block)

DeltaEvo avatar Dec 02 '25 17:12 DeltaEvo