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

◆ upload_data()

void MayaFlux::Portal::Graphics::TextureLoom::upload_data ( const std::shared_ptr< Core::VKImage > & image,
const void * data,
size_t size,
const std::shared_ptr< Buffers::VKBuffer > & staging = nullptr,
bool deferred = false )

Upload pixels to an image.

Immediate uploads use host image copy. Deferred uploads require staging.

Definition at line 544 of file TextureLoom.cpp.

550{
551 if (!is_initialized() || !image || !data || (deferred && !staging)) {
553 "Invalid parameters for upload_data");
554 return;
555 }
556
557 m_resource_manager->upload_image_data(image, data, size, staging, deferred);
558}
#define MF_ERROR(comp, ctx,...)
Core::BackendResourceManager * m_resource_manager
bool is_initialized() const
Check if manager is initialized.
@ ImageProcessing
Image processing tasks (filters, transformations).
@ Portal
High-level user-facing API layer.

References MayaFlux::Journal::ImageProcessing, is_initialized(), m_resource_manager, MF_ERROR, and MayaFlux::Journal::Portal.

Referenced by create_2d(), create_2d_array(), create_3d(), create_cubemap(), refresh_cached_image(), MayaFlux::Yantra::VisionAnalyzer::resolve_image(), MayaFlux::Yantra::VisionExtractor::resolve_image(), MayaFlux::Kakshya::TextureContainer::upload_image(), and MayaFlux::Kakshya::TextureContainer::upload_image_array().

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