MayaFlux 1.0.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 355 of file GpuResourceManager.cpp.

356{
357 auto& vk_slot = unit_for(key).impl->buffers[index];
358 std::memcpy(vk_slot.mapped_ptr, data, byte_size);
359}
uint32_t index
Definition VKDevice.cpp:122
PipelineUnit & unit_for(const std::string &key)
std::unique_ptr< GpuResourceManagerImpl > impl

References MayaFlux::Yantra::GpuResourceManager::PipelineUnit::impl, index, 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: