コード例 #1
0
        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));
            }
        }
コード例 #2
0
 public static extern Error iplRadeonRaysDeviceCreate(IntPtr openCLDevice, ref RadeonRaysDeviceSettings settings, out IntPtr rrDevice);