initial commit

This commit is contained in:
LotP1 2025-06-01 07:30:35 +02:00
parent d688fed7d2
commit be8f4897a2
10 changed files with 935 additions and 407 deletions

View file

@ -110,7 +110,7 @@ namespace Ryujinx.Graphics.Gpu.Memory
ulong size,
BufferStage stage,
bool sparseCompatible,
IEnumerable<Buffer> baseBuffers = null)
IEnumerable<RangeItem<Buffer>> baseBuffers = null)
{
_context = context;
_physicalMemory = physicalMemory;
@ -132,13 +132,13 @@ namespace Ryujinx.Graphics.Gpu.Memory
{
baseHandles = baseBuffers.SelectMany(buffer =>
{
if (buffer._useGranular)
if (buffer.Value._useGranular)
{
return buffer._memoryTrackingGranular.GetHandles();
return buffer.Value._memoryTrackingGranular.GetHandles();
}
else
{
return Enumerable.Repeat(buffer._memoryTracking, 1);
return Enumerable.Repeat(buffer.Value._memoryTracking, 1);
}
});
}