|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Core::VKImage > MayaFlux::Kakshya::TextureContainer::to_image | ( | uint32_t | layer, |
| const std::shared_ptr< Buffers::VKBuffer > & | staging | ||
| ) | const |
Upload one layer to a new VKImage, reusing a caller-supplied staging buffer.
Allocates the VKImage without pixel data (create_2d with nullptr), then uploads via the provided staging buffer, bypassing the per-call VkBuffer allocation inside TextureLoom. Use TextureLoom::create_streaming_staging() to allocate the staging buffer once before the render loop.
| layer | Array layer index (default 0). |
| staging | Host-visible staging VKBuffer sized to at least byte_size(). |
Definition at line 407 of file TextureContainer.cpp.