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

◆ download_from_gpu() [1/3]

template<typename T >
void MayaFlux::Buffers::download_from_gpu ( const std::shared_ptr< VKBuffer > &  source,
std::span< T >  data,
const std::shared_ptr< VKBuffer > &  staging = nullptr 
)

Download from GPU buffer to typed span.

Template Parameters
TData type
Parameters
sourceSource GPU buffer
dataDestination data span
stagingOptional staging buffer

Definition at line 136 of file StagingUtils.hpp.

140{
141 download_from_gpu(source, data.data(), data.size_bytes(), staging);
142}
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)

References download_from_gpu().

+ Here is the call graph for this function: