History

Templatize item culling

Zach Pomerantz committed 10 years ago

Commit bf68f2f1 parent c8d33423 files · +11 −44Browse files

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

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+2−2
@@ -56,7 +56,7 @@ RenderDeferredTask::RenderDeferredTask() : Task() { · 55 unmodified lines
56 context->getItemsConfig().opaque.numFeed = count;56 context->getItemsConfig().opaque.numFeed = count;
57 })57 })
58 )));58 )));
59 _jobs.push_back(Job(new CullItemsOpaque::JobModel("CullOpaque", _jobs.back().getOutput())));59 _jobs.push_back(Job(new CullItems<RenderDetails::OPAQUE_ITEM>::JobModel("CullOpaque", _jobs.back().getOutput())));
60 _jobs.push_back(Job(new DepthSortItems::JobModel("DepthSortOpaque", _jobs.back().getOutput())));60 _jobs.push_back(Job(new DepthSortItems::JobModel("DepthSortOpaque", _jobs.back().getOutput())));
61 auto& renderedOpaques = _jobs.back().getOutput();61 auto& renderedOpaques = _jobs.back().getOutput();
62 62
@@ -67,7 +67,7 @@ RenderDeferredTask::RenderDeferredTask() : Task() { · 4 unmodified lines
67 context->getItemsConfig().transparent.numFeed = count;67 context->getItemsConfig().transparent.numFeed = count;
68 })68 })
69 )));69 )));
70 _jobs.push_back(Job(new CullItemsTransparent::JobModel("CullTransparent", _jobs.back().getOutput())));70 _jobs.push_back(Job(new CullItems<RenderDetails::TRANSLUCENT_ITEM>::JobModel("CullTransparent", _jobs.back().getOutput())));
71 _jobs.push_back(Job(new DepthSortItems::JobModel("DepthSortTransparent", _jobs.back().getOutput(), DepthSortItems(false))));71 _jobs.push_back(Job(new DepthSortItems::JobModel("DepthSortTransparent", _jobs.back().getOutput(), DepthSortItems(false))));
72 auto& renderedTransparents = _jobs.back().getOutput();72 auto& renderedTransparents = _jobs.back().getOutput();
73 73