Function setVars

Synopsis

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

void setVars(const GraphicsVars::SharedPtr &pVars)

Description

Set a vars object. Allows the user to override the internal vars, for example when one wants to share a vars object between different passes.

Parameters

[ in ] pVars - The new GraphicsVars object. If this is nullptr, then the pass will automatically create a new GraphicsVars object

Source

Lines 55-58 in Source/Falcor/RenderGraph/BasePasses/BaseGraphicsPass.cpp. Line 65 in Source/Falcor/RenderGraph/BasePasses/BaseGraphicsPass.h.

void BaseGraphicsPass::setVars(const GraphicsVars::SharedPtr& pVars)
{
    mpVars = pVars ? pVars : GraphicsVars::create(mpState->getProgram().get());
}





Add Discussion as Guest

Log in