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

◆ upload_to_gpu() [1/3]

template<typename T >
void MayaFlux::Buffers::upload_to_gpu ( const std::vector< T > &  data,
const std::shared_ptr< VKBuffer > &  target,
const std::shared_ptr< VKBuffer > &  staging = nullptr 
)

Upload vector to GPU buffer.

Template Parameters
TData type
Parameters
dataSource data vector
targetTarget GPU buffer
stagingOptional staging buffer

Definition at line 102 of file StagingUtils.hpp.

106{
107 upload_to_gpu(std::span<const T>(data), target, staging);
108}
void upload_to_gpu(const void *data, size_t size, const std::shared_ptr< VKBuffer > &target, const std::shared_ptr< VKBuffer > &staging)
Upload raw data to GPU buffer (auto-detects host-visible vs device-local)

References upload_to_gpu().

+ Here is the call graph for this function: