LiteFX::Rendering::ResourceAllocationInfo::ResourceAllocationInfo¶
Creates a new resource allocation info instance for an image resource.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] explicit ResourceAllocationInfo(
ImageInfo const& imageInfo,
ResourceUsage usage = ResourceUsage::Default,
String name = "",
size_t aliasingOffset = 0u);
Parameters¶
| Name | Description |
|---|---|
| imageInfo | The details about the image. |
| usage | The usage flags for the image. |
| name | The name of the image resource. |
| aliasingOffset | An optional offset that is used to place the resource in a block of allocated memory when allocating overlapping resources. |