| 29 | // -------------------------------------------------------------------------------------------------------------------- |
| 30 | |
| 31 | EmbreeDevice::EmbreeDevice() |
| 32 | { |
| 33 | mDevice = rtcNewDevice(nullptr); |
| 34 | |
| 35 | int64_t major = rtcGetDeviceProperty(mDevice, RTC_DEVICE_PROPERTY_VERSION_MAJOR); |
| 36 | int64_t minor = rtcGetDeviceProperty(mDevice, RTC_DEVICE_PROPERTY_VERSION_MINOR); |
| 37 | int64_t patch = rtcGetDeviceProperty(mDevice, RTC_DEVICE_PROPERTY_VERSION_PATCH); |
| 38 | |
| 39 | gLog().message(MessageSeverity::Info, "Initialized Embree v%lld.%02lld.%02lld.", major, minor, patch); |
| 40 | } |
| 41 | |
| 42 | EmbreeDevice::~EmbreeDevice() |
| 43 | { |