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

◆ upload()

void MayaFlux::Yantra::GpuResourceManager::upload ( const std::string &  key,
size_t  index,
const float *  data,
size_t  byte_size 
)

Definition at line 319 of file GpuResourceManager.cpp.

320{
321 auto& vk_slot = unit_for(key).impl->buffers[index];
322 std::memcpy(vk_slot.mapped_ptr, data, byte_size);
323}
PipelineUnit & unit_for(const std::string &key)
std::unique_ptr< GpuResourceManagerImpl > impl

References MayaFlux::Yantra::GpuResourceManager::PipelineUnit::impl, and unit_for().

Referenced by MayaFlux::Yantra::GpuDispatchCore::prepare_gpu_inputs().

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