Skip to content

LiteFX::Rendering::AllocationBehavior

Controls the allocation behavior of IGraphicsFactory.

Synopsis

Declared in <litefx/rendering_api.hpp>

enum class AllocationBehavior : UInt32;

Members

NameDescription
Default Represents the default behavior, which might fall back to slower memory types, if required.
StayWithinBudget Stays within heap budgets. If the desired resource heap is out of memory, allocation will fail. Use this behavior for resources that are not required to prevent them from being allocated in potentially slower memory heaps.
DontExpandCache Does not resize heap cache, if no more pre-allocated memory is available and will fail, if available memory is exceeded. Use this in situations, where you can potentially delay an allocation to a less time-critical point.