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

◆ create_graphics_pipeline()

std::shared_ptr< VKGraphicsPipeline > MayaFlux::Core::BackendPipelineManager::create_graphics_pipeline ( const GraphicsPipelineConfig &  config)

Create graphics pipeline.

Parameters
configGraphics pipeline configuration
Returns
Shared pointer to created pipeline, or nullptr on failure

Definition at line 108 of file BackendPipelineManager.cpp.

110{
111 auto pipeline = std::make_shared<VKGraphicsPipeline>();
112
113 if (!pipeline->create(m_context.get_device(), config)) {
115 "Failed to create graphics pipeline");
116 return nullptr;
117 }
118
119 track_graphics_pipeline(pipeline);
120
122 "Created graphics pipeline");
123
124 return pipeline;
125}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
void track_graphics_pipeline(const std::shared_ptr< VKGraphicsPipeline > &pipeline)
vk::Device get_device() const
Get logical device.
Definition VKContext.hpp:49
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Core::VKContext::get_device(), MayaFlux::Journal::GraphicsBackend, m_context, MF_ERROR, MF_INFO, and track_graphics_pipeline().

+ Here is the call graph for this function: