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

◆ bind_pipeline()

void MayaFlux::Portal::Graphics::RenderFlow::bind_pipeline ( CommandBufferID  cmd_id,
RenderPipelineID  pipeline 
)

Bind graphics pipeline.

Parameters
cmd_idCommand buffer ID
pipelinePipeline ID

Definition at line 695 of file RenderFlow.cpp.

696{
697 auto pipeline_it = m_pipelines.find(pipeline_id);
698 if (pipeline_it == m_pipelines.end()) {
700 "Invalid pipeline ID: {}", pipeline_id);
701 return;
702 }
703
704 auto cmd = m_shader_foundry->get_command_buffer(cmd_id);
705 if (!cmd) {
707 "Invalid command buffer ID: {}", cmd_id);
708 return;
709 }
710
711 pipeline_it->second.pipeline->bind(cmd);
712}
#define MF_ERROR(comp, ctx,...)
std::unordered_map< RenderPipelineID, PipelineState > m_pipelines
vk::CommandBuffer get_command_buffer(CommandBufferID cmd_id)
Get Vulkan command buffer handle from CommandBufferID.
@ Rendering
GPU rendering operations (graphics pipeline, frame rendering)
@ Portal
High-level user-facing API layer.

References MayaFlux::Portal::Graphics::ShaderFoundry::get_command_buffer(), m_pipelines, m_shader_foundry, MF_ERROR, MayaFlux::Journal::Portal, and MayaFlux::Journal::Rendering.

+ Here is the call graph for this function: