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
139139 Task::configure(configuration);
140140 }
141141
142−void 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−
156142 void RenderShadowSetup::run(const SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext, Output& output) {
157143 auto lightStage = DependencyManager::get<DeferredLightingEffect>()->getLightStage();
158144 const auto globalShadow = lightStage->getShadow(0);