Skip to content

LiteFX::Rendering::ResourceAllocationInfo::ResourceAllocationInfo

Constructors

Synopses

Declared in <litefx/rendering_api.hpp>

Creates a new resource allocation info instance.

[[dllimport, dllexport]] constexpr ResourceAllocationInfo() = default;

» more...

Copy constructor

[[dllimport, dllexport]] constexpr ResourceAllocationInfo(ResourceAllocationInfo const& other) = default;

» more...

Move constructor

[[dllimport, dllexport]] constexpr ResourceAllocationInfo(ResourceAllocationInfo&& other) noexcept = default;

» more...

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);

» more...

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);

» more...

Parameters

NameDescription
bufferInfoThe details about the buffer.
usageThe usage flags for the buffer.
nameThe name of the buffer resource.
aliasingOffsetAn optional offset that is used to place the resource in a block of allocated memory when allocating overlapping resources.
imageInfoThe details about the image.