internal ComputeDevice(ComputePlatform platform, IntPtr handle)
        {
            this.handle = handle;

            name          = GetStringInfo(ComputeDeviceInfo.Name);
            this.platform = platform;
            type          = (ComputeDeviceTypes)GetInfo <long>(ComputeDeviceInfo.Type);
        }
 public ComputeContextPropertyList(ComputePlatform platform)
 {
     properties = new List <ComputeContextProperty>();
     properties.Add(new ComputeContextProperty(ComputeContextPropertyName.Platform, platform.handle));
 }