mirror of
https://github.com/GreemDev/Ryujinx
synced 2025-01-29 00:37:11 +01:00
misc: chore: Use explicit types in Texture & Vic
This commit is contained in:
parent
f2aa6b3a5b
commit
1712d69dcd
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue