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

◆ stage_image_sampled()

void MayaFlux::Yantra::GpuDispatchCore::stage_image_sampled ( size_t  binding_index,
std::shared_ptr< Core::VKImage image,
vk::Sampler  sampler 
)
protected

Register a VKImage + sampler for an IMAGE_SAMPLED binding.

The image will be transitioned to eShaderReadOnlyOptimal if needed.

Parameters
binding_indexIndex matching the IMAGE_SAMPLED declaration.
imageInitialised VKImage.
samplerVulkan sampler handle.

Definition at line 74 of file GpuDispatchCore.cpp.

77{
78 if (binding_index >= m_image_bindings.size())
79 m_image_bindings.resize(binding_index + 1);
80 m_image_bindings[binding_index] = { .image = std::move(image), .sampler = sampler, .kind = GpuBufferBinding::ElementType::IMAGE_SAMPLED };
81}
IO::ImageData image
std::vector< ImageBinding > m_image_bindings

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