MayaFlux 0.1.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 
)

Upload pixel data to an existing texture.

Parameters
imageTarget image
dataPixel data pointer
sizeData size in bytes

Handles staging buffer, layout transitions, and cleanup. Blocks until upload completes.

Definition at line 331 of file TextureLoom.cpp.

333{
334 if (!is_initialized() || !image || !data) {
336 "Invalid parameters for upload_data");
337 return;
338 }
339
340 m_resource_manager->upload_image_data(image, data, size);
341}
#define MF_ERROR(comp, ctx,...)
void upload_image_data(std::shared_ptr< VKImage > image, const void *data, size_t size)
Upload data to an image (creates staging buffer internally)
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, MayaFlux::Journal::Portal, and MayaFlux::Core::BackendResourceManager::upload_image_data().

Referenced by create_2d(), create_3d(), and create_cubemap().

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