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 TrueAudioNextDevice(OpenCLDevice openCLDevice, int frameSize, int irSize, int order, int maxSources) { var deviceSettings = new TrueAudioNextDeviceSettings { }; deviceSettings.frameSize = frameSize; deviceSettings.irSize = irSize; deviceSettings.order = order; deviceSettings.maxSources = maxSources; var status = API.iplTrueAudioNextDeviceCreate(openCLDevice.Get(), ref deviceSettings, out mTrueAudioNextDevice); if (status != Error.Success) { throw new Exception(string.Format("Unable to create TrueAudio Next device. [{0}]", status)); } }
public OpenCLDevice(OpenCLDevice device) { mOpenCLDevice = API.iplOpenCLDeviceRetain(device.mOpenCLDevice); }