Skip to content

LiteFX::Rendering::IMappable::map

Maps the memory blocks within data to the internal memory of an array.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] virtual void map(
    Span<void*> data,
    size_t elementSize,
    UInt32 firstElement = 0,
    bool write = true) = 0;

Parameters

NameDescription
dataThe data blocks to map.
elementSizeThe size of each data block within data.
firstElementThe first element of the array to map.
writeIf true, data is copied into the internal memory. If false the internal memory is copied into data.