MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetupLights

Method SetupLights

Source/Engine/Renderer/LightPass.cpp:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void 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
182void LightPass::RenderLights(RenderContextBatch& renderContextBatch, GPUTextureView* lightBuffer)
183{

Callers 1

RenderInnerFunction · 0.80

Calls 3

QuickSortFunction · 0.50
GetMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected