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 | RenderDeferredTask::RenderDeferredTask() : Task() { | 52 | RenderDeferredTask::RenderDeferredTask() : Task() { |
| 53 | // CPU only, create the list of renderedOpaques items | 53 | // CPU only, create the list of renderedOpaques items |
| 54 | _jobs.push_back(Job(new FetchItems::JobModel("FetchOpaque", | 54 | _jobs.push_back(Job(new FetchItems::JobModel("FetchOpaque", |
| 55 | FetchItems( | 55 | FetchItems([](const RenderContextPointer& context, int count) { |
| 56 | [](const RenderContextPointer& context, int count) { | 56 | context->_numFeedOpaqueItems = count; |
| 57 | context->_numFeedOpaqueItems = count; | 57 | }) |
| 58 | } | 58 | ))); |
| 59 | ) | ||
| 60 | ))); | ||
| 61 | _jobs.push_back(Job(new CullItemsOpaque::JobModel("CullOpaque", _jobs.back().getOutput()))); | 59 | _jobs.push_back(Job(new CullItemsOpaque::JobModel("CullOpaque", _jobs.back().getOutput()))); |
| 62 | _jobs.push_back(Job(new DepthSortItems::JobModel("DepthSortOpaque", _jobs.back().getOutput()))); | 60 | _jobs.push_back(Job(new DepthSortItems::JobModel("DepthSortOpaque", _jobs.back().getOutput()))); |
| 63 | auto& renderedOpaques = _jobs.back().getOutput(); | 61 | auto& renderedOpaques = _jobs.back().getOutput(); |
| 64 | 62 | ||
| 65 | // CPU only, create the list of renderedTransparents items | 63 | // CPU only, create the list of renderedTransparents items |
| 66 | _jobs.push_back(Job(new FetchItems::JobModel("FetchTransparent", | 64 | _jobs.push_back(Job(new FetchItems::JobModel("FetchTransparent", |
| 67 | FetchItems( | 65 | FetchItems(ItemFilter::Builder::transparentShape().withoutLayered(), |
| 68 | ItemFilter::Builder::transparentShape().withoutLayered(), | 66 | [](const RenderContextPointer& context, int count) { |
| 69 | [](const RenderContextPointer& context, int count) { | 67 | context->_numFeedTransparentItems = count; |
| 70 | context->_numFeedTransparentItems = count; | 68 | }) |
| 71 | } | 69 | ))); |
| 72 | ) | ||
| 73 | ))); | ||
| 74 | _jobs.push_back(Job(new CullItemsTransparent::JobModel("CullTransparent", _jobs.back().getOutput()))); | 70 | _jobs.push_back(Job(new CullItemsTransparent::JobModel("CullTransparent", _jobs.back().getOutput()))); |
| 75 | _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)))); |
| 76 | auto& renderedTransparents = _jobs.back().getOutput(); | 72 | auto& renderedTransparents = _jobs.back().getOutput(); |