Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/bvh/bvh_optix.cpp
| Show All 21 Lines | |||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| BVHOptiX::BVHOptiX(const BVHParams ¶ms_, | BVHOptiX::BVHOptiX(const BVHParams ¶ms_, | ||||
| const vector<Geometry *> &geometry_, | const vector<Geometry *> &geometry_, | ||||
| const vector<Object *> &objects_, | const vector<Object *> &objects_, | ||||
| Device *device) | Device *device) | ||||
| : BVH(params_, geometry_, objects_), | : BVH(params_, geometry_, objects_), | ||||
| traversable_handle(0), | traversable_handle(0), | ||||
| as_data(device, params_.top_level ? "optix tlas" : "optix blas"), | as_data(device, params_.top_level ? "optix tlas" : "optix blas", false), | ||||
| motion_transform_data(device, "optix motion transform") | motion_transform_data(device, "optix motion transform", false) | ||||
| { | { | ||||
| } | } | ||||
| BVHOptiX::~BVHOptiX() | BVHOptiX::~BVHOptiX() | ||||
| { | { | ||||
| // Acceleration structure memory is freed via the 'as_data' destructor | // Acceleration structure memory is freed via the 'as_data' destructor | ||||
| } | } | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* WITH_OPTIX */ | #endif /* WITH_OPTIX */ | ||||