MayaFlux 0.5.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 455 of file GpuResourceManager.cpp.

459{
460 auto& foundry = Portal::Graphics::get_shader_foundry();
461 auto& backend = Portal::Graphics::get_texture_manager(); // TextureLoom -> backend ref
462
463 backend.transition_layout(
464 image,
465 old_layout,
466 new_layout,
467 1, 1, vk::ImageAspectFlagBits::eColor);
468}
IO::ImageData image
Definition Decoder.cpp:64
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: