Skip to content

LiteFX::Rendering::IMappable::map

Maps the memory at data to the internal memory of this object.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] virtual void map(
    void* data,
    size_t size,
    UInt32 element = 0,
    bool write = true) = 0;

Parameters

NameDescription
dataThe address that marks the beginning of the data to map.
sizeThe number of bytes to map.
elementThe array element to map the data to.
writeIf true, data is copied into the internal memory. If false the internal memory is copied into data.