Skip to content

LiteFX::Rendering::RenderPipelineBuilder::shaderProgram

Adds a shader program to the pipeline layout.

Synopsis

Declared in <litefx/rendering_builders.hpp>

template<typename TSelf>
constexpr TSelf&& shaderProgram(this 
    TSelf&& self,
    SharedPtr<shader_program_type> program);

Description

Note that a pipeline must only have one shader program. If this method is called twice, the second call will overwrite the shader program set by the first call.

Parameters

NameDescription
programThe program to add to the pipeline layout.