misc: chore: Use explicit types in GPU, Device, and Host1x projects

This commit is contained in:
Evan Husted 2025-01-25 14:05:44 -06:00
parent 5099548856
commit 1ae349efb1
55 changed files with 350 additions and 339 deletions

View file

@ -20,7 +20,7 @@ namespace Ryujinx.Graphics.Host1x
public void Dispose()
{
foreach (var device in _devices.Values)
foreach (IDeviceState device in _devices.Values)
{
if (device is ThiDevice thi)
{

View file

@ -46,7 +46,7 @@ namespace Ryujinx.Graphics.Host1x
public void RegisterDevice(ClassId classId, IDeviceState device)
{
var thi = new ThiDevice(classId, device ?? throw new ArgumentNullException(nameof(device)), _syncptIncrMgr);
ThiDevice thi = new ThiDevice(classId, device ?? throw new ArgumentNullException(nameof(device)), _syncptIncrMgr);
_devices.RegisterDevice(classId, thi);
}