internal static OpenCLDevice CreateInstance(IntPtr instance) { if (instance == IntPtr.Zero) return null; return new OpenCLDevice(instance); }