Function setVars

Synopsis

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

void setVars(const ComputeVars::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. The function throws an exception on error.

Parameters:

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

Source

Lines 80-84 in Source/Falcor/RenderGraph/BasePasses/ComputePass.cpp. Line 99 in Source/Falcor/RenderGraph/BasePasses/ComputePass.h.

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





Add Discussion as Guest

Log in to DocsForge