3#include "spark/render/Export.h"
23 virtual void map(
const void* data, std::size_t size,
unsigned int element) = 0;
31 virtual void map(std::span<const void*> data, std::size_t element_size,
unsigned int first_element) = 0;
40 virtual void map(
void* data,
size_t size,
unsigned int element = 0,
bool write =
true) = 0;
49 virtual void map(std::span<void*> data,
size_t element_size,
unsigned int first_element = 0,
bool write =
true) = 0;
Interface allowing data to be mapped into the object.
Definition Mappable.h:13
virtual void map(void *data, size_t size, unsigned int element=0, bool write=true)=0
Maps the memory at data into the internal memory of the object.
virtual void map(const void *data, std::size_t size, unsigned int element)=0
Maps the memory at data into the internal memory of the object.
virtual void map(std::span< const void * > data, std::size_t element_size, unsigned int first_element)=0
Maps the memory blocks within data into the internal memory of the object.
virtual void map(std::span< void * > data, size_t element_size, unsigned int first_element=0, bool write=true)=0
Maps the memory blocks within data into the internal memory of the object.