MayaFlux 0.4.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 396 of file TextureLoom.cpp.

398{
399 if (!is_initialized() || !image || !data) {
401 "Invalid parameters for download_data");
402 return;
403 }
404
406}
#define MF_ERROR(comp, ctx,...)
IO::ImageData image
Range size
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(), image, MayaFlux::Journal::ImageProcessing, is_initialized(), m_resource_manager, MF_ERROR, MayaFlux::Journal::Portal, and size.

+ Here is the call graph for this function: