chore: change MultiRegionHandle `GetHandles` to an accessor property

update/dotnet/10
GreemDev 2025-09-28 00:30:50 -05:00
parent c424d48138
commit 809127fc6f
3 changed files with 4 additions and 7 deletions

View File

@ -135,7 +135,7 @@ namespace Ryujinx.Graphics.Gpu.Memory
{
if (item.Value._useGranular)
{
baseHandles.AddRange((item.Value._memoryTrackingGranular.GetHandles()));
baseHandles.AddRange(item.Value._memoryTrackingGranular.Handles);
}
else
{

View File

@ -123,10 +123,7 @@ namespace Ryujinx.Memory.Tracking
Dirty = true;
}
public IEnumerable<RegionHandle> GetHandles()
{
return _handles;
}
public IEnumerable<RegionHandle> Handles => _handles;
public void ForceDirty(ulong address, ulong size)
{

View File

@ -335,7 +335,7 @@ namespace Ryujinx.Tests.Memory
IEnumerable<IRegionHandle>[] handleGroups =
[
granular.GetHandles(),
granular.Handles,
singlePages,
doublePages
];
@ -389,7 +389,7 @@ namespace Ryujinx.Tests.Memory
Assert.IsTrue(throws);
}
IEnumerable<IRegionHandle> combinedHandles = combined.GetHandles();
IEnumerable<IRegionHandle> combinedHandles = combined.Handles;
Assert.AreEqual(handleGroups[0].ElementAt(0), combinedHandles.ElementAt(3));
Assert.AreEqual(handleGroups[0].ElementAt(1), combinedHandles.ElementAt(4));