public RadeonRaysDevice(OpenCLDevice openCLDevice) { var deviceSettings = new RadeonRaysDeviceSettings { }; var status = API.iplRadeonRaysDeviceCreate(openCLDevice.Get(), ref deviceSettings, out mRadeonRaysDevice); if (status != Error.Success) { throw new Exception(string.Format("Unable to create Radeon Rays device. [{0}]", status)); } }
public static extern Error iplRadeonRaysDeviceCreate(IntPtr openCLDevice, ref RadeonRaysDeviceSettings settings, out IntPtr rrDevice);