Overte C++ Documentation
gpu::Pipeline Class Reference

#include <Pipeline.h>

Collaboration diagram for gpu::Pipeline:

Public Member Functions

const ShaderPointer & getProgram () const
 
const StatePointer & getState () const
 

Static Public Member Functions

static Pointer create (const ShaderPointer &program, const StatePointer &state)
 Creates new pipeline. More...
 

Public Attributes

const GPUObjectPointer gpuObject {}
 Graphics API-specific object representing the pipeline.
 

Protected Attributes

ShaderPointer _program
 Vertex and fragment shader.
 
StatePointer _state
 Pipeline setup.
 

Detailed Description

Contains render pipeline setup and pointer to the shaders.

Member Function Documentation

◆ create()

Pipeline::Pointer Pipeline::create ( const ShaderPointer &  program,
const StatePointer &  state 
)
static

Creates new pipeline.

Parameters
programShared pointer to the Shader object (contains both vertex and fragment shader).
stateRender pipeline state.
Returns
Shared pointer to the newly created pipeline.

◆ getProgram()

const ShaderPointer& gpu::Pipeline::getProgram ( ) const
inline
Returns
Object containing shaders.

◆ getState()

const StatePointer& gpu::Pipeline::getState ( ) const
inline
Returns
Render pipeline state.

The documentation for this class was generated from the following files: