| 32 | // -------------------------------------------------------------------------------------------------------------------- |
| 33 | |
| 34 | CEmbreeDevice::CEmbreeDevice(CContext* context, |
| 35 | IPLEmbreeDeviceSettings* settings) |
| 36 | { |
| 37 | #if defined(IPL_USES_EMBREE) && (defined(IPL_CPU_X86) || defined(IPL_CPU_X64)) |
| 38 | auto _context = context->mHandle.get(); |
| 39 | if (!_context) |
| 40 | throw Exception(Status::Failure); |
| 41 | |
| 42 | new (&mHandle) Handle<EmbreeDevice>(ipl::make_shared<EmbreeDevice>(), _context); |
| 43 | #endif |
| 44 | } |
| 45 | |
| 46 | IEmbreeDevice* CEmbreeDevice::retain() |
| 47 | { |