MayaFlux 0.1.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 86 of file StagingUtils.hpp.

90{
91 upload_to_gpu(data.data(), data.size_bytes(), target, staging);
92}
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: