Function addDefine

Synopsis

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

void addDefine(const std::string &name, const std::string &value="", bool updateVars=false)

Description

Add a define

Source

Lines 43-47 in Source/Falcor/RenderGraph/BasePasses/BaseGraphicsPass.cpp. Line 42 in Source/Falcor/RenderGraph/BasePasses/BaseGraphicsPass.h.

void BaseGraphicsPass::addDefine(const std::string& name, const std::string& value, bool updateVars)
{
    mpState->getProgram()->addDefine(name, value);
    if (updateVars) mpVars = GraphicsVars::create(mpState->getProgram().get());
}





Add Discussion as Guest

Log in to DocsForge