MayaFlux 0.3.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 634 of file VKGraphicsPipeline.cpp.

638{
639 if (!m_layout) {
641 "Cannot bind descriptor sets without pipeline layout");
642 return;
643 }
644
645 if (sets.empty()) {
647 "Binding empty descriptor sets");
648 return;
649 }
650
651 cmd.bindDescriptorSets(
652 vk::PipelineBindPoint::eGraphics,
653 m_layout,
654 first_set,
655 static_cast<uint32_t>(sets.size()),
656 sets.data(),
657 0, nullptr);
658}
#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.