Inheritance: PspEmulatorComponent
コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: GpuDisplayList.cs プロジェクト: rajeshwarn/cspspemu
        //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;
        }
コード例 #3
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;
            GpuDisplayListRunner = new GpuDisplayListRunner()
            {
                GpuDisplayList = this,
            };
        }
コード例 #4
0
ファイル: GpuDisplayList.cs プロジェクト: e-COS/cspspemu
 //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,
     };
 }
コード例 #5
0
        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;
        }
コード例 #6
0
ファイル: GpuDisplayList.cs プロジェクト: soywiz/cspspemu
 //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);
 }
コード例 #7
0
 public override void InitializeComponent()
 {
     GpuProcessor = PspEmulatorContext.GetInstance<GpuProcessor>();
 }