Function dispatchCompute

Synopsis

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

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

Description

Dispatch the program using the argument values set in pVars.

Source

Lines 49-57 in Source/Falcor/Core/Program/ComputeProgram.cpp. Line 64 in Source/Falcor/Core/Program/ComputeProgram.h.

void ComputeProgram::dispatchCompute(
    ComputeContext* pContext,
    ComputeVars* pVars,
    uint3 const& threadGroupCount)
{
    auto pState = ComputeState::create();
    pState->setProgram(std::static_pointer_cast<ComputeProgram>(shared_from_this()));
    pContext->dispatch(pState.get(), pVars, threadGroupCount);
}





Add Discussion as Guest

Log in