Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 3 files). Show all
Unified · Split
| @@ -89,19 +89,13 @@ RenderDeferredTask::RenderDeferredTask(CullFunctor cullFunctor) { · 88 unmodified lines | ||
| 89 | 89 | initDeferredPipelines(*shapePlumber); |
| 90 | 90 | |
| 91 | 91 | // 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"); | |
| 95 | 93 | auto culledOpaques = addJob<CullItems<RenderDetails::OPAQUE_ITEM>>("CullOpaque", fetchedOpaques, cullFunctor); |
| 96 | 94 | auto opaques = addJob<DepthSortItems>("DepthSortOpaque", culledOpaques); |
| 97 | 95 | |
| 98 | 96 | // CPU only, create the list of renderedTransparents items |
| 99 | 97 | 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())); | |
| 105 | 99 | auto culledTransparents = addJob<CullItems<RenderDetails::TRANSLUCENT_ITEM>>("CullTransparent", fetchedTransparents, cullFunctor); |
| 106 | 100 | auto transparents = addJob<DepthSortItems>("DepthSortTransparent", culledTransparents, DepthSortItems(false)); |
| 107 | 101 | |