History

Add Job::Config to FetchItems

Zach Pomerantz committed 10 years ago

Commit adc9d2e1 parent c903fc43 files · +18 −18Browse 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−8
@@ -89,19 +89,13 @@ RenderDeferredTask::RenderDeferredTask(CullFunctor cullFunctor) { · 88 unmodified lines
8989 initDeferredPipelines(*shapePlumber);
9090
9191 // CPU: Fetch the renderOpaques
92− auto fetchedOpaques = addJob<FetchItems>("FetchOpaque", FetchItems([](const RenderContextPointer& context, int count) {
93− context->getItemsConfig().opaque.numFeed = count;
94− }));
92+ auto fetchedOpaques = addJob<FetchItems>("FetchOpaque");
9593 auto culledOpaques = addJob<CullItems<RenderDetails::OPAQUE_ITEM>>("CullOpaque", fetchedOpaques, cullFunctor);
9694 auto opaques = addJob<DepthSortItems>("DepthSortOpaque", culledOpaques);
9795
9896 // CPU only, create the list of renderedTransparents items
9997 auto fetchedTransparents = addJob<FetchItems>("FetchTransparent", FetchItems(
100− ItemFilter::Builder::transparentShape().withoutLayered(),
101− [](const RenderContextPointer& context, int count) {
102− context->getItemsConfig().transparent.numFeed = count;
103− }
104− ));
98+ ItemFilter::Builder::transparentShape().withoutLayered()));
10599 auto culledTransparents = addJob<CullItems<RenderDetails::TRANSLUCENT_ITEM>>("CullTransparent", fetchedTransparents, cullFunctor);
106100 auto transparents = addJob<DepthSortItems>("DepthSortTransparent", culledTransparents, DepthSortItems(false));
107101