MCPcopy Create free account
hub / github.com/RenderKit/ospray / addVisibleOnlyToArray

Function addVisibleOnlyToArray

modules/cpu/render/scivis/SciVisData.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace {
16
17void addVisibleOnlyToArray(std::vector<ispc::Light *> &lightShs,
18 uint32_t &visibleOnly,
19 ispc::Light *lightSh)
20{
21 if (visibleOnly == lightShs.size())
22 lightShs.push_back(lightSh);
23 else {
24 // insert light at the visibleOnly index
25 lightShs.push_back(lightShs[visibleOnly]);
26 lightShs[visibleOnly] = lightSh;
27 }
28 visibleOnly++;
29}
30
31vec3f addLightsToArray(std::vector<ispc::Light *> &lightShs,
32 uint32_t &visibleOnly,

Callers 1

addLightsToArrayFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected