MCPcopy Create free account
hub / github.com/RenderKit/embree / createInstanceArrayAccel

Method createInstanceArrayAccel

kernels/common/scene.cpp:626–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624 }
625
626 void Scene::createInstanceArrayAccel()
627 {
628#if defined(EMBREE_GEOMETRY_INSTANCE_ARRAY)
629
630 // if (device->object_accel == "default")
631 {
632#if defined (EMBREE_TARGET_SIMD8)
633 if (device->canUseAVX() && !isCompactAccel()) {
634 if (quality_flags != RTC_BUILD_QUALITY_LOW) {
635 accels_add(device->bvh8_factory->BVH8InstanceArray(this, BVHFactory::BuildVariant::STATIC));
636 } else {
637 accels_add(device->bvh8_factory->BVH8InstanceArray(this, BVHFactory::BuildVariant::DYNAMIC));
638 }
639 }
640 else
641#endif
642 {
643 if (quality_flags != RTC_BUILD_QUALITY_LOW) {
644 accels_add(device->bvh4_factory->BVH4InstanceArray(this, BVHFactory::BuildVariant::STATIC));
645 } else {
646 accels_add(device->bvh4_factory->BVH4InstanceArray(this, BVHFactory::BuildVariant::DYNAMIC));
647 }
648 }
649 }
650 // else throw_RTCError(RTC_ERROR_INVALID_ARGUMENT,"unknown instance accel "+device->instance_accel);
651#endif
652 }
653
654 void Scene::createInstanceArrayMBAccel()
655 {

Callers

nothing calls this directly

Calls 4

isCompactAccelFunction · 0.85
canUseAVXMethod · 0.80
BVH8InstanceArrayMethod · 0.80
BVH4InstanceArrayMethod · 0.80

Tested by

no test coverage detected