mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 20:40:46 -07:00
Use ReadOnlySpan<byte> compiler optimization for static data (#3130)
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
using Ryujinx.Graphics.Nvdec.Vp9.Common;
|
||||
using Ryujinx.Graphics.Nvdec.Vp9.Types;
|
||||
using System;
|
||||
using static Ryujinx.Graphics.Nvdec.Vp9.Dsp.IntraPred;
|
||||
|
||||
namespace Ryujinx.Graphics.Nvdec.Vp9
|
||||
@ -24,7 +25,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
|
||||
private const int NeedAbove = 1 << 2;
|
||||
private const int NeedAboveRight = 1 << 3;
|
||||
|
||||
private static readonly byte[] ExtendModes = new byte[]
|
||||
private static ReadOnlySpan<byte> ExtendModes => new byte[]
|
||||
{
|
||||
NeedAbove | NeedLeft, // DC
|
||||
NeedAbove, // V
|
||||
|
Reference in New Issue
Block a user