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

Method execute

Source/RenderPasses/TestPasses/TestRtProgram.cpp:217–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void TestRtProgram::execute(RenderContext* pRenderContext, const RenderData& renderData)
218{
219 const uint2 frameDim = renderData.getDefaultTextureDims();
220
221 auto pOutput = renderData.getTexture(kOutput);
222 pRenderContext->clearUAV(pOutput->getUAV().get(), float4(0, 0, 0, 1));
223
224 if (!mpScene)
225 return;
226
227 // Check for scene changes that require shader recompilation.
228 if (is_set(mpScene->getUpdates(), IScene::UpdateFlags::RecompileNeeded) ||
229 is_set(mpScene->getUpdates(), IScene::UpdateFlags::GeometryChanged))
230 {
231 sceneChanged();
232 }
233
234 auto var = mRT.pVars->getRootVar()["gTestProgram"];
235 var["frameDim"] = frameDim;
236 var["output"] = pOutput;
237
238 mpScene->raytrace(pRenderContext, mRT.pProgram.get(), mRT.pVars, uint3(frameDim, 1));
239}
240
241void TestRtProgram::renderUI(Gui::Widgets& widget)
242{

Callers 2

generateDataMethod · 0.45
verifyDataMethod · 0.45

Calls 6

clearUAVMethod · 0.80
getRootVarMethod · 0.80
getTextureMethod · 0.45
getMethod · 0.45
getUAVMethod · 0.45
raytraceMethod · 0.45

Tested by

no test coverage detected