Use ReadOnlySpan<byte> compiler optimization for static data (#3130)
This commit is contained in:
parent
7e9011673b
commit
9ca040c0ff
8 changed files with 23 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue