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

Method dispatchIndirect

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

Source from the content-addressed store, hash-verified

50}
51
52void ComputeContext::dispatchIndirect(ComputeState* pState, ProgramVars* pVars, const Buffer* pArgBuffer, uint64_t argBufferOffset)
53{
54 pVars->prepareDescriptorSets(this);
55 resourceBarrier(pArgBuffer, Resource::State::IndirectArg);
56
57 auto computeEncoder = mpLowLevelData->getComputeCommandEncoder();
58 FALCOR_GFX_CALL(computeEncoder->bindPipelineWithRootObject(pState->getCSO(pVars)->getGfxPipelineState(), pVars->getShaderObject()));
59 FALCOR_GFX_CALL(computeEncoder->dispatchComputeIndirect(pArgBuffer->getGfxBufferResource(), argBufferOffset));
60 mCommandsPending = true;
61}
62
63void ComputeContext::clearUAV(const UnorderedAccessView* pUav, const float4& value)
64{

Callers 1

executeIndirectMethod · 0.80

Calls 3

prepareDescriptorSetsMethod · 0.80
getCSOMethod · 0.80

Tested by

no test coverage detected