Function ComputePass

Synopsis

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

ComputePass(const Program::Desc &desc, const Program::DefineList &defines, bool createVars)

Description

No description yet.

Source

Lines 33-40 in Source/Falcor/RenderGraph/BasePasses/ComputePass.cpp. Line 106 in Source/Falcor/RenderGraph/BasePasses/ComputePass.h.

ComputePass::ComputePass(const Program::Desc& desc, const Program::DefineList& defines, bool createVars)
{
    auto pProg = ComputeProgram::create(desc, defines);
    mpState = ComputeState::create();
    mpState->setProgram(pProg);
    if (createVars) mpVars = ComputeVars::create(pProg.get());
    assert(pProg && mpState && (!createVars || mpVars));
}





Add Discussion as Guest

Log in to DocsForge