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

Method updateForInverseRendering

Source/Falcor/Scene/Scene.cpp:1820–1838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1818 }
1819
1820 void Scene::updateForInverseRendering(RenderContext* pRenderContext, bool isMaterialChanged, bool isMeshChanged)
1821 {
1822 mUpdates = IScene::UpdateFlags::None;
1823 if (isMaterialChanged) mUpdates |= updateMaterials(false);
1824
1825 if (isMeshChanged) mUpdates |= IScene::UpdateFlags::MeshesChanged;
1826 pRenderContext->submit();
1827
1828 bool blasUpdateRequired = is_set(mUpdates, IScene::UpdateFlags::MeshesChanged);
1829 if (mBlasDataValid && blasUpdateRequired)
1830 {
1831 invalidateTlasCache();
1832 buildBlas(pRenderContext);
1833 }
1834
1835 mUpdateFlagsSignal(mUpdates);
1836
1837 // TODO: Update light collection if we allow changing area lights.
1838 }
1839
1840 IScene::UpdateFlags Scene::update(RenderContext* pRenderContext, double currentTime)
1841 {

Callers 1

setMaterialParamsPythonFunction · 0.80

Calls 1

submitMethod · 0.45

Tested by

no test coverage detected