|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::Kakshya::TextureContainer::upload_image_array | ( | const std::shared_ptr< Core::VKImage > & | image, |
| const std::shared_ptr< Buffers::VKBuffer > & | staging | ||
| ) | const |
Upload all layers into an existing VKImage instead of creating one.
The counterpart of to_image_array(staging). A single layer container targets a plain 2D image, more layers a 2D array image with array_layers == get_layer_count().
| image | Target image created by to_image_array. |
| staging | Host-visible staging VKBuffer sized to at least byte_size() * get_layer_count(). |
Definition at line 472 of file TextureContainer.cpp.
References byte_size(), MayaFlux::Journal::ContainerProcessing, ensure_cpu_all(), image, MayaFlux::Portal::Graphics::TextureLoom::instance(), MayaFlux::Journal::Kakshya, m_data, m_slot_locks, MF_ERROR, ptr, MayaFlux::Portal::Graphics::TextureLoom::upload_data(), upload_image(), and MayaFlux::Kakshya::variant_bytes().
Referenced by MayaFlux::Yantra::TextureExecutionContext::container_image().
Here is the call graph for this function:
Here is the caller graph for this function: