History

templatize graphics engine tasks' run method

Zach Pomerantz committed 9 years ago

Commit 8d630671 parent dbf4f2d9 files · +18 −80Browse files

Showing the changes to libraries/render-utils/src/RenderShadowTask.cpp (1 of 9 files). Show all

Unified · Split

libraries/render-utils/src/RenderShadowTask.cpp+0−14
@@ -139,20 +139,6 @@ void RenderShadowTask::configure(const Config& configuration) { · 138 unmodified lines
139 Task::configure(configuration);139 Task::configure(configuration);
140}140}
141 141
142void RenderShadowTask::run(const SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext) {
143 assert(sceneContext);
144 RenderArgs* args = renderContext->args;
145
146 // sanity checks
147 if (!sceneContext->_scene || !args) {
148 return;
149 }
150
151 for (auto job : _jobs) {
152 job.run(sceneContext, renderContext);
153 }
154}
155
156void RenderShadowSetup::run(const SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext, Output& output) {142void RenderShadowSetup::run(const SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext, Output& output) {
157 auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage();143 auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage();
158 const auto globalShadow = lightStage->getShadow(0);144 const auto globalShadow = lightStage->getShadow(0);