|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Buffers::upload_host_visible | ( | const std::shared_ptr< VKBuffer > & | target, |
| const Kakshya::DataVariant & | data | ||
| ) |
Upload data to a host-visible buffer.
| target | Target VKBuffer to upload data into |
| data | DataVariant containing the data to upload |
This function handles uploading data from a Kakshya::DataVariant into a host-visible VKBuffer. It maps the buffer memory, copies the data, and marks the buffer as dirty for synchronization.
Definition at line 9 of file StagingUtils.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Registry::BackendRegistry::get_service(), MayaFlux::Kakshya::DataAccess::gpu_buffer(), and MayaFlux::Registry::BackendRegistry::instance().
Referenced by MayaFlux::Buffers::BufferUploadProcessor::processing_function(), and upload_to_gpu().
Here is the call graph for this function:
Here is the caller graph for this function: