|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::Kakshya::TextureContainer::upload_image | ( | const std::shared_ptr< Core::VKImage > & | image, |
| uint32_t | layer, | ||
| const std::shared_ptr< Buffers::VKBuffer > & | staging | ||
| ) | const |
Upload one layer into an existing VKImage instead of creating one.
Use this for an image retained separately from the container, such as an execution context's input image.
| image | Target image. Must match this container's width, height and format, and be a single layer 2D image. |
| layer | Array layer index (default 0). |
| staging | Host-visible staging VKBuffer sized to at least byte_size(). |
Definition at line 445 of file TextureContainer.cpp.
References MayaFlux::Journal::ContainerProcessing, ensure_cpu(), image, MayaFlux::Portal::Graphics::TextureLoom::instance(), MayaFlux::Journal::Kakshya, m_data, m_slot_locks, MF_ERROR, ptr, MayaFlux::Portal::Graphics::TextureLoom::upload_data(), and MayaFlux::Kakshya::variant_bytes().
Referenced by MayaFlux::Yantra::TextureExecutionContext::container_image(), and upload_image_array().
Here is the call graph for this function:
Here is the caller graph for this function: