| 15 | namespace { |
| 16 | |
| 17 | void 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 | |
| 31 | vec3f addLightsToArray(std::vector<ispc::Light *> &lightShs, |
| 32 | uint32_t &visibleOnly, |
no test coverage detected