| 33 | // -------------------------------------------------------------------------------------------------------------------- |
| 34 | |
| 35 | CRadeonRaysDevice::CRadeonRaysDevice(COpenCLDevice* openCLDevice, |
| 36 | IPLRadeonRaysDeviceSettings* settings) |
| 37 | { |
| 38 | #if defined(IPL_USES_RADEONRAYS) |
| 39 | auto _context = openCLDevice->mHandle.context(); |
| 40 | if (!_context) |
| 41 | throw Exception(Status::Failure); |
| 42 | |
| 43 | auto _openCLDevice = openCLDevice->mHandle.get(); |
| 44 | if (!_openCLDevice) |
| 45 | throw Exception(Status::Failure); |
| 46 | |
| 47 | new (&mHandle) Handle<RadeonRaysDevice>(ipl::make_shared<ipl::RadeonRaysDevice>(_openCLDevice), _context); |
| 48 | #endif |
| 49 | } |
| 50 | |
| 51 | IRadeonRaysDevice* CRadeonRaysDevice::retain() |
| 52 | { |