Explorar o código

misc: chore: Use explicit types in Texture & Vic

Evan Husted hai 1 ano
pai
achega
1712d69dcd

+ 1 - 1
src/Ryujinx.Graphics.Texture/Encoders/BC7Encoder.cs

@@ -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;
 

+ 2 - 1
src/Ryujinx.Graphics.Vic/VicDevice.cs

@@ -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);