Function BaseGraphicsPass

Synopsis

#include <Source/Falcor/RenderGraph/BasePasses/BaseGraphicsPass.h>

BaseGraphicsPass(const Program::Desc &progDesc, const Program::DefineList &programDefines)

Description

Create a new object.

Parameters:

[ in ] progDesc - The program description.

[ in ] programDefines - List of macro definitions to set into the program. The macro definitions will be set on all shader stages.

Return
A new object, or an exception is thrown if creation failed.

Source

Lines 33-41 in Source/Falcor/RenderGraph/BasePasses/BaseGraphicsPass.cpp. Line 73 in Source/Falcor/RenderGraph/BasePasses/BaseGraphicsPass.h.

BaseGraphicsPass::BaseGraphicsPass(const Program::Desc& progDesc, const Program::DefineList& programDefines)
{
    auto pProg = GraphicsProgram::create(progDesc, programDefines);
    mpState = GraphicsState::create();
    mpState->setProgram(pProg);
    mpVars = GraphicsVars::create(pProg.get());
}





Add Discussion as Guest

Log in to DocsForge