示例#1
0
        public System()
        {
            _cpu = new CPU();
            _gpu = new GPU();
            _bus = new Bus(_cpu, _gpu);

            _cpu.Bus = _bus;
            _gpu.Bus = _bus;
        }
示例#2
0
        public Lenovo_Unknown(ICPU CPU, IGPU GPU)
        {
            this.Socket         = Sockets.LGA1151;
            this.CompatibleCPUs = new Type[]
            {
                new IntelCore_I3_6100().GetType()
            };

            this.CPU = CPU;

            if (GPU != null)
            {
                this.GPU = GPU;
            }
            else
            {
                this.GPU = new GTX1050();
            }
        }
示例#3
0
        public Aorus_X590(ICPU CPU, IGPU GPU)
        {
            this.Socket         = Sockets.AM4;
            this.CompatibleCPUs = new Type[]
            {
                new Ryzen5_5600X().GetType()
            };

            this.CPU = CPU;

            if (GPU != null)
            {
                this.GPU = GPU;
            }
            else
            {
                this.GPU = new GTX1050();
            }
        }
示例#4
0
        public Aorus_Z370(ICPU CPU, IGPU GPU)
        {
            this.Socket         = Sockets.AM4;
            this.CompatibleCPUs = new Type[]
            {
                new IntelCore_I3_6100().GetType(),
                new IntelCore_I5_9300H().GetType()
            };

            this.CPU = CPU;

            if (GPU != null)
            {
                this.GPU = GPU;
            }
            else
            {
                this.GPU = new GTX1050();
            }
        }
示例#5
0
        static void Main()
        {
            IGPU gpu = null;

            try
            {
                gpu = GPUDevice.Instance;
                if (gpu.Vendor == GPUVendor.AMD)
                {
                    /* AMD Saturation (equals to Digital Vibrance of Nvidia) is not supported yet. */
                    System.Windows.Forms.MessageBox.Show(
                        "AMD Device Detected - Saturation is not supported yet.",
                        "Warning",
                        System.Windows.Forms.MessageBoxButtons.OK,
                        System.Windows.Forms.MessageBoxIcon.Warning
                        );
                }
            } catch (NotImplementedException)
            {
                System.Windows.Forms.MessageBox.Show(
                    "Intel/Nvidia Optimus/Etc Device Detected - Will be supported soon",
                    "Nvidia GPU is not found!",
                    System.Windows.Forms.MessageBoxButtons.OK,
                    System.Windows.Forms.MessageBoxIcon.Error
                    );
                System.Threading.Thread.Sleep(1000);
                Application.Exit();
            }

            // Open Main Form
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            mForm = new MainForm();
            Application.Run(mForm);

            // Unload NvAPI dll after Application.Exit()
            if (gpu != null)
            {
                gpu.Close();
            }
        }
示例#6
0
 public Bus(ICPU cpu, IGPU gpu)
 {
     _cpu = cpu;
     _gpu = gpu;
 }
示例#7
0
 public GPUController(IGPU Iproduct, ICategoryGPU Icategories)
 {
     product     = Iproduct;
     _categories = Icategories;
 }
示例#8
0
 private Computer(ICPU CPU, IGPU GPU)
 {
     this.CPU = CPU;
     this.GPU = GPU;
 }