MayaFlux 0.3.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 358 of file TextureLoom.cpp.

360{
361 if (!is_initialized() || !image || !data) {
363 "Invalid parameters for download_data");
364 return;
365 }
366
367 m_resource_manager->download_image_data(image, data, size);
368}
#define MF_ERROR(comp, ctx,...)
void download_image_data(std::shared_ptr< VKImage > image, void *data, size_t size, vk::ImageLayout restore_layout=vk::ImageLayout::eShaderReadOnlyOptimal, vk::PipelineStageFlags restore_stage=vk::PipelineStageFlagBits::eFragmentShader)
Download data from an image into a caller-supplied buffer.
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: