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

Method renderRT

Source/Samples/HelloDXR/HelloDXR.cpp:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void HelloDXR::renderRT(RenderContext* pRenderContext, const ref<Fbo>& pTargetFbo)
212{
213 FALCOR_ASSERT(mpScene);
214 FALCOR_PROFILE(pRenderContext, "renderRT");
215
216 setPerFrameVars(pTargetFbo.get());
217
218 pRenderContext->clearUAV(mpRtOut->getUAV().get(), kClearColor);
219 mpScene->raytrace(pRenderContext, mpRaytraceProgram.get(), mpRtVars, uint3(pTargetFbo->getWidth(), pTargetFbo->getHeight(), 1));
220 pRenderContext->blit(mpRtOut->getSRV(), pTargetFbo->getRenderTargetView(0));
221}
222
223int runMain(int argc, char** argv)
224{

Callers

nothing calls this directly

Calls 9

clearUAVMethod · 0.80
getWidthMethod · 0.80
getHeightMethod · 0.80
blitMethod · 0.80
getRenderTargetViewMethod · 0.80
getMethod · 0.45
getUAVMethod · 0.45
raytraceMethod · 0.45
getSRVMethod · 0.45

Tested by

no test coverage detected