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

◆ download_data()

void MayaFlux::Portal::Graphics::TextureLoom::download_data ( const std::shared_ptr< Core::VKImage > &  image,
void *  data,
size_t  size 
)

Download pixel data from a texture.

Parameters
imageSource image
dataDestination buffer
sizeBuffer size in bytes

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

Definition at line 343 of file TextureLoom.cpp.

345{
346 if (!is_initialized() || !image || !data) {
348 "Invalid parameters for download_data");
349 return;
350 }
351
352 m_resource_manager->download_image_data(image, data, size);
353}
#define MF_ERROR(comp, ctx,...)
void download_image_data(std::shared_ptr< VKImage > image, void *data, size_t size)
Download data from 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::Core::BackendResourceManager::download_image_data(), MayaFlux::Journal::ImageProcessing, is_initialized(), m_resource_manager, MF_ERROR, and MayaFlux::Journal::Portal.

+ Here is the call graph for this function: