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

Method createInstanceArrayMBAccel

kernels/common/scene.cpp:654–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 4

isCompactAccelFunction · 0.85
canUseAVXMethod · 0.80
BVH8InstanceArrayMBMethod · 0.80
BVH4InstanceArrayMBMethod · 0.80

Tested by

no test coverage detected