| 530 | } |
| 531 | |
| 532 | void 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 | |
| 545 | void RenderContext::resolveSubresource(const ref<Texture>& pSrc, uint32_t srcSubresource, const ref<Texture>& pDst, uint32_t dstSubresource) |
| 546 | { |
nothing calls this directly
no test coverage detected