MayaFlux 0.1.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 100 of file BackendPipelineManager.cpp.

102{
103 auto pipeline = std::make_shared<VKGraphicsPipeline>();
104
105 if (!pipeline->create(m_context.get_device(), config)) {
107 "Failed to create graphics pipeline");
108 return nullptr;
109 }
110
111 track_graphics_pipeline(pipeline);
112
114 "Created graphics pipeline");
115
116 return pipeline;
117}
#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: