| 170 | } |
| 171 | |
| 172 | void LightPass::SetupLights(RenderContext& renderContext, RenderContextBatch& renderContextBatch) |
| 173 | { |
| 174 | PROFILE_CPU(); |
| 175 | |
| 176 | // Sort lights |
| 177 | Sorting::QuickSort(renderContext.List->DirectionalLights.Get(), renderContext.List->DirectionalLights.Count(), &SortLights); |
| 178 | Sorting::QuickSort(renderContext.List->PointLights.Get(), renderContext.List->PointLights.Count(), &SortLights); |
| 179 | Sorting::QuickSort(renderContext.List->SpotLights.Get(), renderContext.List->SpotLights.Count(), &SortLights); |
| 180 | } |
| 181 | |
| 182 | void LightPass::RenderLights(RenderContextBatch& renderContextBatch, GPUTextureView* lightBuffer) |
| 183 | { |
no test coverage detected