|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::VKBuffer::set_data | ( | const std::vector< Kakshya::DataVariant > & | data | ) |
Write data into the buffer.
If the buffer is host-visible and mapped the provided data is copied into the mapped memory. For device-local buffers, a BufferUploadProcessor must be present in the processing chain to perform the staging/upload.
| data | Vector of Kakshya::DataVariant containing the payload to copy. |
Definition at line 56 of file VKBuffer.cpp.
References MayaFlux::Journal::BufferManagement, MayaFlux::Journal::Buffers, clear(), MayaFlux::Kakshya::DataAccess::gpu_buffer(), infer_dimensions_from_data(), is_host_visible(), is_initialized(), m_modality, m_resources, m_size_bytes, MayaFlux::Buffers::VKBufferResources::mapped_ptr, mark_dirty_range(), and MF_WARN.
Here is the call graph for this function: