MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / dispatch

Method dispatch

Source/Falcor/Core/API/ComputeContext.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40ComputeContext::~ComputeContext() {}
41
42void ComputeContext::dispatch(ComputeState* pState, ProgramVars* pVars, const uint3& dispatchSize)
43{
44 pVars->prepareDescriptorSets(this);
45
46 auto computeEncoder = mpLowLevelData->getComputeCommandEncoder();
47 FALCOR_GFX_CALL(computeEncoder->bindPipelineWithRootObject(pState->getCSO(pVars)->getGfxPipelineState(), pVars->getShaderObject()));
48 FALCOR_GFX_CALL(computeEncoder->dispatchCompute((int)dispatchSize.x, (int)dispatchSize.y, (int)dispatchSize.z));
49 mCommandsPending = true;
50}
51
52void ComputeContext::dispatchIndirect(ComputeState* pState, ProgramVars* pVars, const Buffer* pArgBuffer, uint64_t argBufferOffset)
53{

Callers 5

executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
runProgramMethod · 0.45
executeMethod · 0.45

Calls 3

prepareDescriptorSetsMethod · 0.80
getCSOMethod · 0.80

Tested by 1

runProgramMethod · 0.36