MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ download_device_local()

void MayaFlux::Buffers::BufferDownloadProcessor::download_device_local ( const std::shared_ptr< VKBuffer > &  source)
private

Definition at line 63 of file BufferDownloadProcessor.cpp.

64{
65 auto target_it = m_target_map.find(source);
66 if (target_it == m_target_map.end() || !target_it->second) {
67 return;
68 }
69 auto target = target_it->second;
70
72
73 auto staging_buffer = m_staging_buffers[source];
74
75 Buffers::download_device_local(source, std::dynamic_pointer_cast<VKBuffer>(target), staging_buffer);
76}
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< VKBuffer > > m_staging_buffers
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< Buffer > > m_target_map
void ensure_staging_buffer(const std::shared_ptr< VKBuffer > &source)
void download_device_local(const std::shared_ptr< VKBuffer > &source, const std::shared_ptr< VKBuffer > &target, const std::shared_ptr< VKBuffer > &staging_buffer)
Download data from a device-local buffer using a staging buffer.

References MayaFlux::Buffers::download_device_local(), ensure_staging_buffer(), m_staging_buffers, and m_target_map.

Referenced by processing_function().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: