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

Method raytrace

Source/Falcor/Core/API/RenderContext.cpp:532–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532void RenderContext::raytrace(Program* pProgram, RtProgramVars* pVars, uint32_t width, uint32_t height, uint32_t depth)
533{
534 auto pRtso = pProgram->getRtso(pVars);
535
536 pVars->prepareShaderTable(this, pRtso.get());
537 pVars->prepareDescriptorSets(this);
538
539 auto rtEncoder = mpLowLevelData->getRayTracingCommandEncoder();
540 FALCOR_GFX_CALL(rtEncoder->bindPipelineWithRootObject(pRtso->getGfxPipelineState(), pVars->getShaderObject()));
541 FALCOR_GFX_CALL(rtEncoder->dispatchRays(0, pVars->getShaderTable(), width, height, depth));
542 mCommandsPending = true;
543}
544
545void RenderContext::resolveSubresource(const ref<Texture>& pSrc, uint32_t srcSubresource, const ref<Texture>& pDst, uint32_t dstSubresource)
546{

Callers

nothing calls this directly

Calls 5

getRtsoMethod · 0.80
prepareShaderTableMethod · 0.80
prepareDescriptorSetsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected