|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Kakshya::TextureContainer::from_image | ( | const std::shared_ptr< Core::VKImage > & | image, |
| const std::shared_ptr< Buffers::VKBuffer > & | staging, | ||
| uint32_t | layer = 0 |
||
| ) |
Download pixel data from a VKImage, reusing a caller-supplied persistent staging buffer.
Identical to from_image() but passes staging through to TextureLoom::download_data, eliminating the per-call Vulkan object allocation. Use Buffers::create_image_staging_buffer(byte_size()) to allocate the staging buffer once before the render loop.
| image | Source GPU texture. Must be initialised and match dimensions. |
| staging | Host-visible staging VKBuffer sized to at least byte_size(). |
| layer | Array layer index (default 0). |
Definition at line 278 of file TextureContainer.cpp.