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

◆ transition_image()

void MayaFlux::Yantra::GpuResourceManager::transition_image ( const std::shared_ptr< Core::VKImage > &  image,
vk::ImageLayout  old_layout,
vk::ImageLayout  new_layout 
)

Transition a VKImage layout via an immediate command submission.

Not tied to any pipeline unit; operates on the image directly.

Parameters
imageImage to transition.
old_layoutSource layout.
new_layoutTarget layout.

Definition at line 574 of file GpuResourceManager.cpp.

578{
579 auto& foundry = Portal::Graphics::get_shader_foundry();
580 auto& backend = Portal::Graphics::get_texture_manager(); // TextureLoom -> backend ref
581
582 backend.transition_layout(
583 image,
584 old_layout,
585 new_layout,
586 1, 1, vk::ImageAspectFlagBits::eColor);
587}
IO::ImageData image
Definition Decoder.cpp:47
MAYAFLUX_API TextureLoom & get_texture_manager()
Get the global texture manager instance.
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.

References MayaFlux::Portal::Graphics::get_shader_foundry(), MayaFlux::Portal::Graphics::get_texture_manager(), and image.

Referenced by MayaFlux::Yantra::GpuDispatchCore::prepare_gpu_inputs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: