|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Buffers::upload_to_gpu | ( | const void * | data, |
| size_t | size, | ||
| const std::shared_ptr< VKBuffer > & | target, | ||
| const std::shared_ptr< VKBuffer > & | staging = nullptr |
||
| ) |
Upload raw data to GPU buffer (auto-detects host-visible vs device-local)
| data | Source data pointer |
| size | Size in bytes |
| target | Target GPU buffer |
| staging | Optional staging buffer (created if needed for device-local) |
Convenience wrapper over StagingUtils that:
Definition at line 291 of file StagingUtils.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, create_staging_buffer(), size, upload_device_local(), and upload_host_visible().
Referenced by MayaFlux::Buffers::NodeTextureProcessor::initialize_gpu_resources(), MayaFlux::IO::ImageReader::load_into_buffer(), MayaFlux::Buffers::CompositeGeometryProcessor::processing_function(), MayaFlux::Buffers::GeometryWriteProcessor::processing_function(), MayaFlux::Buffers::AggregateBindingsProcessor::processing_function(), MayaFlux::Buffers::DescriptorBindingsProcessor::update_from_buffer(), MayaFlux::Buffers::DescriptorBindingsProcessor::update_from_network(), MayaFlux::Buffers::DescriptorBindingsProcessor::update_from_node(), MayaFlux::Buffers::TextureProcessor::update_geometry_if_dirty(), upload_audio_to_gpu(), MayaFlux::Buffers::MeshNetworkProcessor::upload_combined(), upload_from_view(), MayaFlux::Nexus::Emitter::upload_influence_ubo(), MayaFlux::Buffers::TextureProcessor::upload_initial_geometry(), upload_resizing(), upload_structured_view(), upload_to_gpu(), and upload_to_gpu().
Here is the call graph for this function:
Here is the caller graph for this function: