Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 1 file). Show all
Unified · Split
| @@ -52,25 +52,21 @@ void ToneMappingDeferred::run(const SceneContextPointer& sceneContext, const Ren · 51 unmodified lines | ||
| 52 | 52 | RenderDeferredTask::RenderDeferredTask() : Task() { |
| 53 | 53 | // CPU only, create the list of renderedOpaques items |
| 54 | 54 | _jobs.push_back(Job(new FetchItems::JobModel("FetchOpaque", |
| 55 | − FetchItems( | |
| 56 | − [](const RenderContextPointer& context, int count) { | |
| 57 | − context->_numFeedOpaqueItems = count; | |
| 58 | − } | |
| 59 | − ) | |
| 60 | − ))); | |
| 55 | + FetchItems([](const RenderContextPointer& context, int count) { | |
| 56 | + context->_numFeedOpaqueItems = count; | |
| 57 | + }) | |
| 58 | + ))); | |
| 61 | 59 | _jobs.push_back(Job(new CullItemsOpaque::JobModel("CullOpaque", _jobs.back().getOutput()))); |
| 62 | 60 | _jobs.push_back(Job(new DepthSortItems::JobModel("DepthSortOpaque", _jobs.back().getOutput()))); |
| 63 | 61 | auto& renderedOpaques = _jobs.back().getOutput(); |
| 64 | 62 | |
| 65 | 63 | // CPU only, create the list of renderedTransparents items |
| 66 | 64 | _jobs.push_back(Job(new FetchItems::JobModel("FetchTransparent", |
| 67 | − FetchItems( | |
| 68 | − ItemFilter::Builder::transparentShape().withoutLayered(), | |
| 69 | − [](const RenderContextPointer& context, int count) { | |
| 70 | − context->_numFeedTransparentItems = count; | |
| 71 | − } | |
| 72 | − ) | |
| 73 | − ))); | |
| 65 | + FetchItems(ItemFilter::Builder::transparentShape().withoutLayered(), | |
| 66 | + [](const RenderContextPointer& context, int count) { | |
| 67 | + context->_numFeedTransparentItems = count; | |
| 68 | + }) | |
| 69 | + ))); | |
| 74 | 70 | _jobs.push_back(Job(new CullItemsTransparent::JobModel("CullTransparent", _jobs.back().getOutput()))); |
| 75 | 71 | _jobs.push_back(Job(new DepthSortItems::JobModel("DepthSortTransparent", _jobs.back().getOutput(), DepthSortItems(false)))); |
| 76 | 72 | auto& renderedTransparents = _jobs.back().getOutput(); |