public int sceGeDrawSync(GpuProcessor.SyncTypeEnum SyncType) { //return 0; //return 0; //Console.WriteLine("sceGeDrawSync:{0}", SyncType); var CurrentThread = ThreadManager.Current; if (CurrentThread == null) { Console.Error.WriteLine("sceGeDrawSync.CurrentThread == null"); return -1; } CurrentThread.SetWaitAndPrepareWakeUp(HleThread.WaitType.GraphicEngine, "sceGeDrawSync", null, (WakeUpCallbackDelegate) => { GpuProcessor.GeDrawSync(SyncType, () => { WakeUpCallbackDelegate(); }); }); return 0; }
//Action[] InstructionSwitch = new Action[256]; /// <summary> /// Constructor /// </summary> internal GpuDisplayList(PspMemory Memory, GpuProcessor GpuProcessor, int Id) { this.Memory = Memory; this.GpuProcessor = GpuProcessor; this.Id = Id; GlobalGpuState = GpuProcessor.GlobalGpuState; }
//Action[] InstructionSwitch = new Action[256]; /// <summary> /// Constructor /// </summary> internal GpuDisplayList(PspMemory Memory, GpuProcessor GpuProcessor, int Id) { this.Memory = Memory; this.GpuProcessor = GpuProcessor; this.Id = Id; GpuDisplayListRunner = new GpuDisplayListRunner() { GpuDisplayList = this, }; }
public int sceGeListSync(int DisplayListId, GpuProcessor.SyncTypeEnum SyncType) { //return 0; //Console.WriteLine("sceGeListSync:{0},{1}", DisplayListId, SyncType); var DisplayList = GetDisplayListFromId(DisplayListId); ThreadManager.Current.SetWaitAndPrepareWakeUp(HleThread.WaitType.GraphicEngine, "sceGeListSync", DisplayList, (WakeUpCallbackDelegate) => { DisplayList.GeListSync(SyncType, () => { WakeUpCallbackDelegate(); }); }); return 0; }
//Action[] InstructionSwitch = new Action[256]; /// <summary> /// Constructor /// </summary> internal GpuDisplayList(PspMemory Memory, GpuProcessor GpuProcessor, int Id) { this.Memory = Memory; this.GpuProcessor = GpuProcessor; this.Id = Id; this.GlobalGpuState = GpuProcessor.GlobalGpuState; this.GpuDisplayListRunner = new GpuDisplayListRunner(this, GpuProcessor.GlobalGpuState); }
public override void InitializeComponent() { GpuProcessor = PspEmulatorContext.GetInstance<GpuProcessor>(); }