mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 13:40:47 -07:00
Silence several build warnings (#1428)
* Silence several build warnings * Remove fixed buffers from NVDEC struct * Remove unused field and usings * Fix wrong name * Silence more warning on H264 PictureInfo
This commit is contained in:
@ -2,8 +2,10 @@
|
||||
{
|
||||
struct ClearRectStruct
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
#pragma warning restore CS0649
|
||||
|
||||
public int ClearRect0Left => _word0.Extract(0, 14);
|
||||
public int ClearRect0Right => _word0.Extract(16, 14);
|
||||
|
@ -4,11 +4,13 @@ namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct ConfigStruct
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
public PipeConfig PipeConfig;
|
||||
public OutputConfig OutputConfig;
|
||||
public OutputSurfaceConfig OutputSurfaceConfig;
|
||||
public MatrixStruct OutColorMatrix;
|
||||
public Array4<ClearRectStruct> ClearRectStruct;
|
||||
public Array8<SlotStruct> SlotStruct;
|
||||
#pragma warning restore CS0649
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,10 @@
|
||||
{
|
||||
struct OutputConfig
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
#pragma warning restore CS0649
|
||||
|
||||
public int AlphaFillMode => _word0.Extract(0, 3);
|
||||
public int AlphaFillSlot => _word0.Extract(3, 3);
|
||||
|
@ -2,8 +2,10 @@
|
||||
{
|
||||
struct OutputSurfaceConfig
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
#pragma warning restore CS0649
|
||||
|
||||
public PixelFormat OutPixelFormat => (PixelFormat)_word0.Extract(0, 7);
|
||||
public int OutChromaLocHoriz => _word0.Extract(7, 2);
|
||||
|
@ -2,8 +2,10 @@
|
||||
{
|
||||
struct PipeConfig
|
||||
{
|
||||
#pragma warning disable CS0169, CS0649
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
#pragma warning restore CS0169, CS0649
|
||||
|
||||
public int DownsampleHoriz => _word0.Extract(0, 11);
|
||||
public int DownsampleVert => _word0.Extract(16, 11);
|
||||
|
@ -11,6 +11,7 @@ namespace Ryujinx.Graphics.Vic
|
||||
|
||||
struct VicRegisters
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
public Array64<uint> Reserved0;
|
||||
public uint Nop;
|
||||
public Array15<uint> Reserved104;
|
||||
@ -43,5 +44,6 @@ namespace Ryujinx.Graphics.Vic
|
||||
public Array8<uint> SetSlotContextId;
|
||||
public Array8<uint> SetCompTagBufferOffset;
|
||||
public Array8<uint> SetHistoryBufferOffset;
|
||||
#pragma warning restore CS0649
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user