| 652 | } |
| 653 | |
| 654 | void Scene::createInstanceArrayMBAccel() |
| 655 | { |
| 656 | #if defined(EMBREE_GEOMETRY_INSTANCE_ARRAY) |
| 657 | |
| 658 | //if (device->instance_accel_mb == "default") |
| 659 | { |
| 660 | #if defined (EMBREE_TARGET_SIMD8) |
| 661 | if (device->canUseAVX() && !isCompactAccel()) |
| 662 | accels_add(device->bvh8_factory->BVH8InstanceArrayMB(this)); |
| 663 | else |
| 664 | #endif |
| 665 | accels_add(device->bvh4_factory->BVH4InstanceArrayMB(this)); |
| 666 | } |
| 667 | //else throw_RTCError(RTC_ERROR_INVALID_ARGUMENT,"unknown instance mblur accel "+device->instance_accel_mb); |
| 668 | #endif |
| 669 | } |
| 670 | |
| 671 | |
| 672 | void Scene::createGridAccel() |
nothing calls this directly
no test coverage detected