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

◆ upload_data() [1/2]

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 369 of file TextureLoom.cpp.

371{
372 if (!is_initialized() || !image || !data) {
374 "Invalid parameters for upload_data");
375 return;
376 }
377
379}
#define MF_ERROR(comp, ctx,...)
IO::ImageData image
Range size
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 image, MayaFlux::Journal::ImageProcessing, is_initialized(), m_resource_manager, MF_ERROR, MayaFlux::Journal::Portal, size, 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: