misc: chore: Use explicit types in Texture & Vic

This commit is contained in:
Evan Husted 2025-01-25 14:08:35 -06:00
parent f2aa6b3a5b
commit 1712d69dcd
2 changed files with 3 additions and 2 deletions

View file

@ -67,7 +67,7 @@ namespace Ryujinx.Graphics.Texture.Encoders
int w = Math.Min(4, width - x);
int h = Math.Min(4, height - y);
var dataUint = MemoryMarshal.Cast<byte, uint>(data);
ReadOnlySpan<uint> dataUint = MemoryMarshal.Cast<byte, uint>(data);
int baseOffset = y * width + x;

View file

@ -1,3 +1,4 @@
using Ryujinx.Common.Memory;
using Ryujinx.Graphics.Device;
using Ryujinx.Graphics.Vic.Image;
using Ryujinx.Graphics.Vic.Types;
@ -43,7 +44,7 @@ namespace Ryujinx.Graphics.Vic
continue;
}
ref var offsets = ref _state.State.SetSurfacexSlotx[i];
ref Array8<PlaneOffsets> offsets = ref _state.State.SetSurfacexSlotx[i];
using Surface src = SurfaceReader.Read(_rm, ref slot.SlotConfig, ref slot.SlotSurfaceConfig, ref offsets);