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¶
| Name | Description |
|---|---|
| data | The address that marks the beginning of the data to map. |
| size | The number of bytes to map. |
| element | The array element to map the data to. |
| write | If true, data is copied into the internal memory. If false the internal memory is copied into data. |