Skip to content

LiteFX::Rendering::IGraphicsFactory::allocate

Allocates a single resource as described by allocationInfo.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] virtual ResourceAllocationResult allocate(
    ResourceAllocationInfo const& allocationInfo,
    AllocationBehavior allocationBehavior = AllocationBehavior::Default) const;

Return Value

The resource allocation result.

Parameters

NameDescription
allocationInfoThe description of the resource to allocate.
allocationBehaviorThe behavior controlling what happens if currently there is not enough memory available for the resource.