MayaFlux 1.0.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 762 of file RenderFlow.cpp.

763{
764 auto pipeline_it = m_pipelines.find(pipeline_id);
765 if (pipeline_it == m_pipelines.end()) {
767 "Invalid pipeline ID: {}", pipeline_id);
768 return;
769 }
770
772 if (!cmd) {
774 "Invalid command buffer ID: {}", cmd_id);
775 return;
776 }
777
778 pipeline_it->second.pipeline->bind(cmd);
779}
#define MF_ERROR(comp, ctx,...)
vk::CommandBuffer cmd
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 cmd, 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: