MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ to_image() [2/2]

std::shared_ptr< Core::VKImage > MayaFlux::Kakshya::TextureContainer::to_image ( uint32_t  layer = 0) const

Refresh the container-owned VKImage for one layer.

Parameters
layerArray layer index for array textures (default 0).
Returns
Cached and uploaded VKImage. Null on failure.

Reuses a container-owned image for this layer while dimensions and format match. Later calls refresh the same image, so it is live rather than a snapshot. A layer held on the GPU is returned as is, without an upload.

Definition at line 350 of file TextureContainer.cpp.

351{
352 return cached_layer_image(layer, nullptr);
353}
std::shared_ptr< Core::VKImage > cached_layer_image(uint32_t layer, const std::shared_ptr< Buffers::VKBuffer > &staging) const

References cached_layer_image().

+ Here is the call graph for this function: