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

◆ upload_secondary()

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

Definition at line 204 of file DataWriteProcessor.cpp.

205{
206 auto bytes = Kakshya::convert_variant<uint8_t>(slot);
207 ensure_capacity(vk, bytes.size_bytes());
208 upload_to_gpu(bytes.data(), bytes.size_bytes(), vk, m_staging);
209}
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(), m_staging, and MayaFlux::Buffers::upload_to_gpu().

Referenced by processing_function().

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