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

◆ upload_to_gpu() [3/3]

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

Upload typed data to GPU buffer.

Template Parameters
TData type (float, double, int, etc.)
Parameters
dataSource data span
targetTarget GPU buffer
stagingOptional staging buffer

Definition at line 174 of file StagingUtils.hpp.

178{
179 upload_to_gpu(data.data(), data.size_bytes(), target, staging);
180}
void upload_to_gpu(const void *data, size_t size, const std::shared_ptr< VKBuffer > &target, const std::shared_ptr< VKBuffer > &staging, size_t dst_offset)
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: