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

◆ download()

void MayaFlux::Yantra::GpuResourceManager::download ( size_t  index,
float *  dest,
size_t  byte_size 
)

Definition at line 224 of file GpuResourceManager.cpp.

225{
226 auto& foundry = Portal::Graphics::get_shader_foundry();
227 auto device = foundry.get_device();
228 auto& vk_slot = m_impl->buffers[index];
229
230 void* mapped = device.mapMemory(vk_slot.memory, 0, VK_WHOLE_SIZE);
231 std::memcpy(dest, mapped, byte_size);
232 device.unmapMemory(vk_slot.memory);
233}
std::unique_ptr< GpuResourceManagerImpl > m_impl
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.

References MayaFlux::Portal::Graphics::get_shader_foundry(), and m_impl.

Referenced by MayaFlux::Yantra::GpuDispatchCore::readback_aux(), and MayaFlux::Yantra::GpuDispatchCore::readback_primary().

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