|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Buffers::download_from_gpu | ( | const std::shared_ptr< VKBuffer > & | source, |
| void * | data, | ||
| size_t | size, | ||
| const std::shared_ptr< VKBuffer > & | staging = nullptr |
||
| ) |
Download from GPU buffer to raw data (auto-detects host-visible vs device-local)
| source | Source GPU buffer |
| data | Destination data pointer |
| size | Size in bytes |
| staging | Optional staging buffer (created if needed for device-local) |
Convenience wrapper over StagingUtils that:
Definition at line 281 of file StagingUtils.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, create_staging_buffer(), download_device_local(), download_host_visible(), MayaFlux::Kakshya::DataAccess::gpu_buffer(), MF_ERROR, MayaFlux::Buffers::VKBuffer::STAGING, and MayaFlux::Kakshya::UNKNOWN.
Referenced by MayaFlux::Nodes::GpuSync::ComputeOutNode::compute_frame(), download_from_gpu(), download_from_gpu(), and download_to_view().
Here is the call graph for this function:
Here is the caller graph for this function: