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

◆ acquire_output_image()

std::shared_ptr< Core::VKImage > MayaFlux::Yantra::TextureExecutionContext::acquire_output_image ( ImageSlot &  slot,
uint32_t  width,
uint32_t  height,
bool  alternate = false 
)
inlineprivate

Return this slot's cached image for these creation parameters, creating and caching one when there is none.

The hashed cache keeps the current image on a direct fast path. Entries remain cached after the byte threshold is exceeded; the cache warns once because TextureLoom retains created images until shutdown.

Definition at line 650 of file TextureExecutionContext.hpp.

652 {
653 const ImageKey key {
654 .width = width,
655 .height = height,
656 .layers = 1,
657 .format = m_output_format,
659 };
660 auto& cache = alternate ? slot.alternate_cache : slot.cache;
661 return cache.acquire(Portal::Graphics::TextureLoom::instance(), key);
662 }
uint32_t width
uint32_t height
The creation parameters of an image.

References MayaFlux::Portal::Graphics::ImageCacheSet::acquire(), MayaFlux::Yantra::TextureExecutionContext::ImageSlot::alternate_cache, MayaFlux::Yantra::TextureExecutionContext::ImageSlot::cache, height, width, and MayaFlux::Portal::Graphics::ImageKey::width.

+ Here is the call graph for this function: