Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/bvh/bvh.cpp
| Show All 13 Lines | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "bvh/bvh.h" | #include "bvh/bvh.h" | ||||
| #include "bvh/bvh2.h" | #include "bvh/bvh2.h" | ||||
| #include "bvh/embree.h" | #include "bvh/embree.h" | ||||
| #include "bvh/metal.h" | |||||
| #include "bvh/multi.h" | #include "bvh/multi.h" | ||||
| #include "bvh/optix.h" | #include "bvh/optix.h" | ||||
| #include "util/log.h" | #include "util/log.h" | ||||
| #include "util/progress.h" | #include "util/progress.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| ▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| case BVH_LAYOUT_OPTIX: | case BVH_LAYOUT_OPTIX: | ||||
| #ifdef WITH_OPTIX | #ifdef WITH_OPTIX | ||||
| return new BVHOptiX(params, geometry, objects, device); | return new BVHOptiX(params, geometry, objects, device); | ||||
| #else | #else | ||||
| (void)device; | (void)device; | ||||
| break; | break; | ||||
| #endif | #endif | ||||
| case BVH_LAYOUT_METAL: | |||||
| #ifdef WITH_METAL | |||||
| return bvh_metal_create(params, geometry, objects, device); | |||||
| #else | |||||
| (void)device; | |||||
| break; | |||||
| #endif | |||||
| case BVH_LAYOUT_MULTI_OPTIX: | case BVH_LAYOUT_MULTI_OPTIX: | ||||
| case BVH_LAYOUT_MULTI_OPTIX_EMBREE: | case BVH_LAYOUT_MULTI_OPTIX_EMBREE: | ||||
| case BVH_LAYOUT_MULTI_METAL_EMBREE: | case BVH_LAYOUT_MULTI_METAL_EMBREE: | ||||
| return new BVHMulti(params, geometry, objects); | return new BVHMulti(params, geometry, objects); | ||||
| case BVH_LAYOUT_METAL: | |||||
| /* host-side changes for BVH_LAYOUT_METAL are imminent */ | |||||
| case BVH_LAYOUT_NONE: | case BVH_LAYOUT_NONE: | ||||
| case BVH_LAYOUT_ALL: | case BVH_LAYOUT_ALL: | ||||
| break; | break; | ||||
| } | } | ||||
| LOG(DFATAL) << "Requested unsupported BVH layout."; | LOG(DFATAL) << "Requested unsupported BVH layout."; | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||