Function dispatchIndirect

Synopsis

#include <Source/Falcor/Core/API/ComputeContext.h>

void dispatchIndirect(ComputeState *pState, ComputeVars *pVars, const Buffer *pArgBuffer, uint64_t argBufferOffset)

Description

Executes a dispatch call. Args to the dispatch call are contained in pArgBuffer

Source

Lines 156-161 in Source/Falcor/Core/API/D3D12/D3D12ComputeContext.cpp. Line 56 in Source/Falcor/Core/API/ComputeContext.h.

void ComputeContext::dispatchIndirect(ComputeState* pState, ComputeVars* pVars, const Buffer* pArgBuffer, uint64_t argBufferOffset)
{
    if (prepareForDispatch(pState, pVars) == false) return;
    resourceBarrier(pArgBuffer, Resource::State::IndirectArg);
    mpLowLevelData->getCommandList()->ExecuteIndirect(sApiData.pDispatchCommandSig, 1, pArgBuffer->getApiHandle(), argBufferOffset, nullptr, 0);
}





Add Discussion as Guest

Log in to DocsForge