Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 838 vs 839 for /trunk/Source Code/Rendering/RenderPass/RenderQueue.cpp

Diff revisions: vs.
  @@ -138,11 +138,11 @@
138 138 TaskHandle populateTask = CreateTask(pool, DELEGATE_CBK_PARAM<const Task&>());
139 139 for (RenderBin* renderBin : _activeBins) {
140 140 if (!renderBin->empty()) {
141 - populateTask.addChildTask(CreateTask(pool,
142 - DELEGATE_BIND(&RenderBin::populateRenderQueue,
143 - renderBin,
144 - std::placeholders::_1,
145 - renderStage))._task)->startTask(Task::TaskPriority::HIGH);
141 + populateTask.addChildTask(
142 + CreateTask(pool,
143 + [renderBin, renderStage](const Task& parentTask) {
144 + renderBin->populateRenderQueue(parentTask, renderStage);
145 + })._task)->startTask(Task::TaskPriority::HIGH);
146 146 }
147 147 }
148 148 populateTask.startTask(Task::TaskPriority::MAX);
  @@ -167,10 +167,9 @@
167 167 for (RenderBin* renderBin : _activeBins) {
168 168 if (!renderBin->empty()) {
169 169 sortTask.addChildTask(CreateTask(pool,
170 - DELEGATE_BIND(&RenderBin::sort,
171 - renderBin,
172 - std::placeholders::_1,
173 - renderStage))._task)->startTask(Task::TaskPriority::HIGH);
170 + [renderBin, renderStage](const Task& parentTask) {
171 + renderBin->sort(parentTask, renderStage);
172 + })._task)->startTask(Task::TaskPriority::HIGH);
174 173 }
175 174 }
176 175 sortTask.startTask(Task::TaskPriority::MAX);