Skip to content

Add getters to AllocationSizes #295

@DeltaEvo

Description

@DeltaEvo

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions