LiteFX 0.4.1.2025
Computer Graphics Engine
|
Allows for data to be mapped into the object. More...
#include <rendering_api.hpp>
Inherited by LiteFX::Rendering::IBuffer [virtual]
.
Public Member Functions | |
virtual | ~IMappable () noexcept=default |
virtual void | map (const void *const data, size_t size, UInt32 element=0)=0 |
Maps the memory at data to the internal memory of this object. | |
virtual void | map (Span< const void *const > data, size_t elementSize, UInt32 firstElement=0)=0 |
Maps the memory blocks within data to the internal memory of an array. | |
virtual void | map (void *data, size_t size, UInt32 element=0, bool write=true)=0 |
Maps the memory at data to the internal memory of this object. | |
virtual void | map (Span< void * > data, size_t elementSize, UInt32 firstElement=0, bool write=true)=0 |
Maps the memory blocks within data to the internal memory of an array. | |
Protected Member Functions | |
IMappable () noexcept=default | |
IMappable (IMappable &&) noexcept=default | |
IMappable (const IMappable &)=default | |
IMappable & | operator= (IMappable &&) noexcept=default |
IMappable & | operator= (const IMappable &)=default |
Allows for data to be mapped into the object.
|
protecteddefaultnoexcept |
|
protecteddefaultnoexcept |
|
protecteddefault |
|
virtualdefaultnoexcept |
|
pure virtual |
Maps the memory at data to the internal memory of this object.
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. |
Implemented in LiteFX::Rendering::Backends::DirectX12Buffer, and LiteFX::Rendering::Backends::VulkanBuffer.
|
pure virtual |
Maps the memory blocks within data to the internal memory of an array.
data | The data blocks to map. |
size | The size of each data block within data . |
firstElement | The first element of the array to map. |
Implemented in LiteFX::Rendering::Backends::DirectX12Buffer, and LiteFX::Rendering::Backends::VulkanBuffer.
|
pure virtual |
Maps the memory blocks within data to the internal memory of an array.
data | The data blocks to map. |
size | The size of each data block within data . |
firstElement | The first element of the array to map. |
write | If true , data is copied into the internal memory. If false the internal memory is copied into data . |
Implemented in LiteFX::Rendering::Backends::DirectX12Buffer, and LiteFX::Rendering::Backends::VulkanBuffer.
|
pure virtual |
Maps the memory at data to the internal memory of this object.
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 . |
Implemented in LiteFX::Rendering::Backends::DirectX12Buffer, and LiteFX::Rendering::Backends::VulkanBuffer.