Function addDefine

Synopsis

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

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

Description

Add a define

Source

Lines 68-72 in Source/Falcor/RenderGraph/BasePasses/ComputePass.cpp. Line 85 in Source/Falcor/RenderGraph/BasePasses/ComputePass.h.

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





Add Discussion as Guest

Log in to DocsForge