MayaFlux 0.2.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 602 of file VKGraphicsPipeline.cpp.

606{
607 if (!m_layout) {
609 "Cannot bind descriptor sets without pipeline layout");
610 return;
611 }
612
613 if (sets.empty()) {
615 "Binding empty descriptor sets");
616 return;
617 }
618
619 cmd.bindDescriptorSets(
620 vk::PipelineBindPoint::eGraphics,
621 m_layout,
622 first_set,
623 static_cast<uint32_t>(sets.size()),
624 sets.data(),
625 0, nullptr);
626}
#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.