|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::upload_audio_to_gpu | ( | const std::shared_ptr< AudioBuffer > & | audio_buffer, |
| const std::shared_ptr< VKBuffer > & | gpu_buffer, | ||
| const std::shared_ptr< VKBuffer > & | staging = nullptr |
||
| ) |
Upload AudioBuffer to GPU (always double precision)
| audio_buffer | Source audio buffer (double[]) |
| gpu_buffer | Target GPU buffer (must support R64Sfloat format) |
| staging | Optional staging buffer (auto-created if needed) |
AudioBuffer is always double precision. This function ensures the GPU buffer is configured for double precision and performs a direct upload with no conversion.
| std::runtime_error | if gpu_buffer doesn't support double precision |
Definition at line 339 of file StagingUtils.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MF_DEBUG, MF_ERROR, and upload_to_gpu().
Referenced by MayaFlux::Buffers::TransferProcessor::process_audio_to_gpu().
Here is the call graph for this function:
Here is the caller graph for this function: