|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Buffers::upload_back_buffer | ( | const VKBufferResources::GenerationSlot & | slot, |
| const void * | data, | ||
| size_t | size, | ||
| std::shared_ptr< VKBuffer > & | staging | ||
| ) |
Upload host memory into a raw back_buffers slot.
| slot | Destination slot, typically from VKBuffer::get_back_buffer(). |
| data | Source pointer, at least size bytes. |
| size | Byte count to copy. |
| staging | Persistent staging buffer for device-local slots. Ignored, and may be null, when slot.mapped_ptr is already valid. |
Writes through slot.mapped_ptr directly when present (host-visible slot, no transfer). Otherwise copies into staging and records a fenced device-to-device copy into slot.buffer, mirroring download_back_buffer with the direction reversed.
Definition at line 123 of file StagingUtils.cpp.
References resolve_transfer(), and upload_back_buffer_async().
Referenced by MayaFlux::Buffers::NetworkGeometryBuffer::ensure_cluster_ids(), MayaFlux::Buffers::ClaimAccumulateProcessor::processing_function(), and MayaFlux::Buffers::NetworkGeometryBuffer::wire_field_operators().
Here is the call graph for this function:
Here is the caller graph for this function: