Skip to content

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

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