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

◆ stage_image_storage()

void MayaFlux::Yantra::GpuDispatchCore::stage_image_storage ( size_t  binding_index,
std::shared_ptr< Core::VKImage image 
)
protected

Register a VKImage for an IMAGE_STORAGE binding.

The image will be transitioned to eGeneral layout if not already there.

Parameters
binding_indexIndex matching the IMAGE_STORAGE declaration.
imageInitialised VKImage.

Definition at line 67 of file GpuDispatchCore.cpp.

68{
69 if (binding_index >= m_image_bindings.size())
70 m_image_bindings.resize(binding_index + 1);
71 m_image_bindings[binding_index] = { .image = std::move(image), .sampler = nullptr, .kind = GpuBufferBinding::ElementType::IMAGE_STORAGE };
72}
IO::ImageData image
std::vector< ImageBinding > m_image_bindings

References image, MayaFlux::Yantra::GpuBufferBinding::IMAGE_STORAGE, and m_image_bindings.