Function dispatchCompute

Synopsis

#include <Source/Falcor/Core/Program/ProgramVars.h>

void dispatchCompute(ComputeContext *pContext, uint3 const &threadGroupCount)

Description

Dispatch the program using the argument values set in this object.

Source

Lines 332-337 in Source/Falcor/Core/Program/ProgramVars.cpp. Line 149 in Source/Falcor/Core/Program/ProgramVars.h.

void ComputeVars::dispatchCompute(ComputeContext* pContext, uint3 const& threadGroupCount)
{
    auto pProgram = std::dynamic_pointer_cast<ComputeProgram>(getReflection()->getProgramVersion()->getProgram());
    assert(pProgram);
    pProgram->dispatchCompute(pContext, this, threadGroupCount);
}





Add Discussion as Guest

Log in