LiteFX::Rendering::ResourceAllocationInfo::ResourceAllocationInfo¶
Constructors
Synopses¶
Declared in <litefx/rendering_api.hpp>
Creates a new resource allocation info instance.
[[dllimport, dllexport]] constexpr ResourceAllocationInfo() = default;
Copy constructor
[[dllimport, dllexport]] constexpr ResourceAllocationInfo(ResourceAllocationInfo const& other) = default;
Move constructor
[[dllimport, dllexport]] constexpr ResourceAllocationInfo(ResourceAllocationInfo&& other) noexcept = default;
Creates a new resource allocation info instance for a buffer resource.
[[dllimport, dllexport]] explicit ResourceAllocationInfo(
BufferInfo const& bufferInfo,
ResourceUsage usage = ResourceUsage::Default,
String name = "",
size_t aliasingOffset = 0u);
Creates a new resource allocation info instance for an image resource.
[[dllimport, dllexport]] explicit ResourceAllocationInfo(
ImageInfo const& imageInfo,
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. |
| imageInfo | The details about the image. |