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

◆ download_bound() [1/2]

template<typename T >
bool MayaFlux::Buffers::ShaderProcessor::download_bound ( const std::string &  descriptor_name,
std::vector< T > &  data 
) const
inline

Definition at line 211 of file ShaderProcessor.hpp.

212 {
213 auto buffer = get_bound_buffer(descriptor_name);
214 if (!buffer) {
216 "download_bound: no buffer bound to descriptor '{}'", descriptor_name);
217 return false;
218 }
219 download_from_gpu(buffer, data);
220 return true;
221 }
#define MF_ERROR(comp, ctx,...)
std::shared_ptr< VKBuffer > get_bound_buffer(const std::string &descriptor_name) const
Get bound buffer for a descriptor name.
void download_from_gpu(const std::shared_ptr< VKBuffer > &source, void *data, size_t size, const std::shared_ptr< VKBuffer > &staging)
Download from GPU buffer to raw data (auto-detects host-visible vs device-local)
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Buffers::download_from_gpu(), and MF_ERROR.

+ Here is the call graph for this function: