Vireo  0.0
Vireo 3D Rendering Hardware Interface
Pipeline creation

The graphic pipeline configuration is described in a GraphicPipelineConfiguration struct.

For rendering in a color attachment you need :

  • The color format of the attachment
  • The color blending configuration for this attachment

Add a basic configuration in your application with only one color attachment :

Then add the pipeline field :

std::shared_ptr<vireo::Pipeline> pipeline;

and the pipeline creation just after the shader modules creation in onInit():

pipelineConfig.resources = vireo->createPipelineResources();
pipelineConfig.vertexInputLayout = vertexLayout;
pipelineConfig.vertexShader = vertexShader;
pipelineConfig.fragmentShader = fragmentShader;
defaultPipeline = vireo->createGraphicPipeline(pipelineConfig);

We use an empty pipeline resource object since our shader only uses the vertex input described by the vertex layout.

Next : Drawing


Related manual page : Pipelines