/* SPDX-License-Identifier: Apache-2.0 * Copyright 2019, NVIDIA Corporation. * Copyright 2019-2022 Blender Foundation. */ #ifndef __BVH_OPTIX_H__ #define __BVH_OPTIX_H__ #ifdef WITH_OPTIX # include "bvh/bvh.h" # include "bvh/params.h" # include "device/memory.h" # include "util/unique_ptr.h" CCL_NAMESPACE_BEGIN class BVHOptiX : public BVH { public: Device *device; uint64_t traversable_handle; unique_ptr> as_data; unique_ptr> motion_transform_data; protected: friend class BVH; BVHOptiX(const BVHParams ¶ms, const vector &geometry, const vector &objects, Device *device); virtual ~BVHOptiX(); }; CCL_NAMESPACE_END #endif /* WITH_OPTIX */ #endif /* __BVH_OPTIX_H__ */