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

◆ create_simple_pipeline()

RenderPipelineID MayaFlux::Portal::Graphics::RenderFlow::create_simple_pipeline ( ShaderID  vertex_shader,
ShaderID  fragment_shader,
RenderPassID  render_pass 
)

Create simple graphics pipeline (auto-configure most settings)

Parameters
vertex_shaderVertex shader ID
fragment_shaderFragment shader ID
render_passRender pass ID
Returns
Pipeline ID or INVALID_RENDER_PIPELINE on error

Definition at line 553 of file RenderFlow.cpp.

557{
558 RenderPipelineConfig config;
559 config.vertex_shader = vertex_shader;
560 config.fragment_shader = fragment_shader;
561 config.render_pass = render_pass;
562
563 config.topology = PrimitiveTopology::TRIANGLE_LIST;
564 config.rasterization.polygon_mode = PolygonMode::FILL;
565 config.rasterization.cull_mode = CullMode::BACK;
566 config.rasterization.front_face_ccw = true;
567 config.depth_stencil.depth_test_enable = false;
568 config.depth_stencil.depth_write_enable = true;
569
570 config.blend_attachments.emplace_back();
571
572 return create_pipeline(config);
573}
RenderPipelineID create_pipeline(const RenderPipelineConfig &config)
Create graphics pipeline with full configuration.

References MayaFlux::Portal::Graphics::BACK, MayaFlux::Portal::Graphics::RenderPipelineConfig::blend_attachments, create_pipeline(), MayaFlux::Portal::Graphics::RasterizationConfig::cull_mode, MayaFlux::Portal::Graphics::RenderPipelineConfig::depth_stencil, MayaFlux::Portal::Graphics::DepthStencilConfig::depth_test_enable, MayaFlux::Portal::Graphics::DepthStencilConfig::depth_write_enable, MayaFlux::Portal::Graphics::FILL, MayaFlux::Portal::Graphics::RenderPipelineConfig::fragment_shader, MayaFlux::Portal::Graphics::RasterizationConfig::front_face_ccw, MayaFlux::Portal::Graphics::RasterizationConfig::polygon_mode, MayaFlux::Portal::Graphics::RenderPipelineConfig::rasterization, MayaFlux::Portal::Graphics::RenderPipelineConfig::render_pass, MayaFlux::Portal::Graphics::RenderPipelineConfig::topology, MayaFlux::Portal::Graphics::TRIANGLE_LIST, and MayaFlux::Portal::Graphics::RenderPipelineConfig::vertex_shader.

+ Here is the call graph for this function: