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¶
| Name | Description |
|---|---|
| allocationInfo | The description of the resource to allocate. |
| allocationBehavior | The behavior controlling what happens if currently there is not enough memory available for the resource. |