|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Yantra::GpuDispatchCore::stage_image_at | ( | size_t | binding_index, |
| std::shared_ptr< Core::VKImage > | image, | ||
| GpuBufferBinding::ElementType | kind, | ||
| vk::Sampler | sampler = nullptr |
||
| ) |
Register a VKImage at an explicit binding index.
Dispatches to the storage or sampled path based on kind. The image will be transitioned to eGeneral (STORAGE) or eShaderReadOnlyOptimal (SAMPLED) if not already there.
| binding_index | Index matching the declared image binding. |
| image | Initialised VKImage. |
| kind | IMAGE_STORAGE or IMAGE_SAMPLED. |
| sampler | Vulkan sampler handle. Required for IMAGE_SAMPLED, ignored for IMAGE_STORAGE. |
Definition at line 68 of file GpuDispatchCore.cpp.
References image, MayaFlux::Portal::Graphics::GpuBufferBinding::IMAGE_SAMPLED, and m_image_bindings.