|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Core::VKImage > MayaFlux::Kakshya::TextureContainer::to_image_array | ( | ) | const |
Upload all layers as a Vulkan 2D array texture.
Concatenates pixel data from all layers in order (layer 0 first) and refreshes a container-owned array image. The returned VKImage has array_layers == get_layer_count() and an image view of type VK_IMAGE_VIEW_TYPE_2D_ARRAY, making it bindable as sampler2DArray in GLSL.
All layers must have the expected byte count; otherwise this returns null.
Definition at line 397 of file TextureContainer.cpp.
References cached_array_image().
Here is the call graph for this function: