Exemplo n.º 1
0
        internal Device(UnsafeNativeMethods.ClDeviceID device, DeviceSafeHandle handle)
        {
            if (handle == null)
            {
                throw new ArgumentNullException("handle");
            }

            _device = device;
            _handle = handle;
        }
Exemplo n.º 2
0
 internal Device(UnsafeNativeMethods.ClDeviceID device)
 {
     _device = device;
 }
Exemplo n.º 3
0
 internal Device(IntPtr device)
 {
     _device = new UnsafeNativeMethods.ClDeviceID(device);
 }