|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Core::VKImage > MayaFlux::Kakshya::WindowContainer::to_image | ( | ) | const |
Upload the full surface readback to a new VKImage.
Requires at least one completed readback (processed_data[0] non-empty and of type vector<uint8_t>). A fresh VKImage is created and uploaded on each call via TextureLoom; callers driving a per-frame path should prefer the staging-buffer overload to avoid per-call VkBuffer churn.
Definition at line 152 of file WindowContainer.cpp.
References MayaFlux::Journal::ContainerProcessing, MayaFlux::Portal::Graphics::TextureLoom::create_2d(), MayaFlux::Kakshya::ContainerDataStructure::get_height(), MayaFlux::Kakshya::ContainerDataStructure::get_width(), h, MayaFlux::Portal::Graphics::TextureLoom::instance(), MayaFlux::Journal::Kakshya, lock(), m_data_mutex, m_processed_data, m_structure, m_window, MF_RT_ERROR, MF_RT_WARN, pixels, and MayaFlux::Kakshya::query_surface_format().
Here is the call graph for this function: