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

◆ batch_update()

void MayaFlux::Core::VKDescriptorManager::batch_update ( vk::Device  device,
const std::vector< vk::WriteDescriptorSet > &  writes 
)

Batch update multiple bindings at once.

Parameters
deviceLogical device
writesVector of descriptor write operations

More efficient than multiple individual updates when updating many bindings in the same set.

Definition at line 594 of file VKDescriptorManager.cpp.

597{
598 if (writes.empty()) {
600 "Batch update called with no writes");
601 return;
602 }
603
604 device.updateDescriptorSets(
605 static_cast<uint32_t>(writes.size()),
606 writes.data(),
607 0, nullptr);
608
610 "Batch updated {} descriptor bindings", writes.size());
611}
#define MF_WARN(comp, ctx,...)
#define MF_DEBUG(comp, ctx,...)
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsBackend, MF_DEBUG, and MF_WARN.