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

◆ upload_raw()

void MayaFlux::Buffers::DataWriteProcessor::upload_raw ( const std::shared_ptr< VKBuffer > &  vk,
Kakshya::DataVariant slot 
)
private

Definition at line 278 of file DataWriteProcessor.cpp.

279{
280 Kakshya::DataAccess accessor(slot, {}, m_modality);
281 auto [ptr, bytes, fmt] = accessor.gpu_buffer();
282
283 ensure_capacity(vk, bytes);
284 upload_to_gpu(ptr, bytes, vk, m_staging);
285}
const uint8_t * ptr
void ensure_capacity(const std::shared_ptr< VKBuffer > &vk, size_t required)
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 ensure_capacity(), MayaFlux::Kakshya::DataAccess::gpu_buffer(), m_modality, m_staging, ptr, and MayaFlux::Buffers::upload_to_gpu().

Referenced by upload_primary().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: