public Host1xDevice(SynchronizationManager syncMgr) { _syncptIncrMgr = new SyncptIncrManager(syncMgr); _commandQueue = new AsyncWorkQueue <Command>(Process, "Ryujinx.Host1xProcessor"); Class = new Host1xClass(syncMgr); _devices.RegisterDevice(ClassId.Host1x, Class); }
public ThiDevice(ClassId classId, IDeviceState device, SyncptIncrManager syncptIncrMgr) { _classId = classId; _device = device; _syncptIncrMgr = syncptIncrMgr; _commandQueue = new AsyncWorkQueue <CommandAction>(Process, $"Ryujinx.{classId}Processor"); _state = new DeviceState <ThiRegisters>(new Dictionary <string, RwCallback> { { nameof(ThiRegisters.IncrSyncpt), new RwCallback(IncrSyncpt, null) }, { nameof(ThiRegisters.Method1), new RwCallback(Method1, null) } }); }