|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::upload_from_view | ( | const Kakshya::DataAccess & | accessor, |
| const std::shared_ptr< VKBuffer > & | target, | ||
| const std::shared_ptr< VKBuffer > & | staging = nullptr |
||
| ) |
Upload data from DataAccess view to GPU buffer (precision-preserving)
| T | View type (double, glm::dvec2, glm::dvec3, glm::vec3, float, etc.) |
| accessor | DataAccess instance providing the view |
| target | Target GPU buffer |
| staging | Optional staging buffer (auto-created if needed) |
Zero-copy when types match, automatic conversion cache when they don't. For AUDIO modalities, defaults to DOUBLE precision to preserve accuracy.
Definition at line 187 of file StagingUtils.hpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MF_WARN, upload_to_gpu(), and MayaFlux::Kakshya::DataAccess::view().
Here is the call graph for this function: