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