| 82 | } |
| 83 | |
| 84 | PathTracerData::~PathTracerData() |
| 85 | { |
| 86 | // Delete all lights structures |
| 87 | devicert::Device &device = lightArray->getDevice(); |
| 88 | for (ispc::Light *lptr : *lightArray) |
| 89 | device.free(lptr); |
| 90 | } |
| 91 | |
| 92 | ispc::Light *PathTracerData::createGeometryLight(const Instance *instance, |
| 93 | const GeometricModel *model, |