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

◆ bind_descriptor_sets()

void MayaFlux::Core::VKGraphicsPipeline::bind_descriptor_sets ( vk::CommandBuffer  cmd,
std::span< vk::DescriptorSet >  sets,
uint32_t  first_set = 0 
)

Bind descriptor sets.

Parameters
cmdCommand buffer
setsDescriptor sets to bind
first_setFirst set index (for multiple sets)

Definition at line 587 of file VKGraphicsPipeline.cpp.

591{
592 if (!m_layout) {
594 "Cannot bind descriptor sets without pipeline layout");
595 return;
596 }
597
598 if (sets.empty()) {
600 "Binding empty descriptor sets");
601 return;
602 }
603
604 cmd.bindDescriptorSets(
605 vk::PipelineBindPoint::eGraphics,
606 m_layout,
607 first_set,
608 static_cast<uint32_t>(sets.size()),
609 sets.data(),
610 0, nullptr);
611}
#define MF_ERROR(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsBackend, m_layout, MF_ERROR, and MF_WARN.