diff options
| author | Cristallix <Cristallix@users.noreply.github.com> | 2020-04-20 23:59:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-21 07:59:59 +1000 |
| commit | 4738113f293ac2477a553225a24b6c489c6855f1 (patch) | |
| tree | 1878f27da3cc7e73171c7d905447f1eb9f25cefc /Ryujinx.Graphics.Gpu/State | |
| parent | 91fa1debd4c5791a12733d75d7ce06a23a1547ff (diff) | |
Suppress warnings from fields never used or never assigned (CS0169 and CS0649) (#919)
* chore : disable unwanted warnings and minor code cleanup
* chore : remove more warnings
* fix : reorder struct correctly
* fix : restore _isKernel and remove useless comment
* fix : copy/paste error
* fix : restore CallMethod call
* fix : whitespace
* chore : clean using
* feat : remove warnings
* fix : simplify warning removal on struct
* fix : revert fields deletion and code clean up
* fix : re-add RE value
* fix : typo
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State')
36 files changed, 72 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/BlendState.cs b/Ryujinx.Graphics.Gpu/State/BlendState.cs index 609bcc29..c4d5a064 100644 --- a/Ryujinx.Graphics.Gpu/State/BlendState.cs +++ b/Ryujinx.Graphics.Gpu/State/BlendState.cs @@ -7,6 +7,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct BlendState { +#pragma warning disable CS0649 public Boolean32 SeparateAlpha; public BlendOp ColorOp; public BlendFactor ColorSrcFactor; @@ -15,5 +16,6 @@ namespace Ryujinx.Graphics.Gpu.State public BlendFactor AlphaSrcFactor; public BlendFactor AlphaDstFactor; public uint Padding; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs b/Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs index a11cd5b1..cbb1880b 100644 --- a/Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs +++ b/Ryujinx.Graphics.Gpu/State/BlendStateCommon.cs @@ -7,6 +7,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct BlendStateCommon { +#pragma warning disable CS0649 public Boolean32 SeparateAlpha; public BlendOp ColorOp; public BlendFactor ColorSrcFactor; @@ -15,5 +16,6 @@ namespace Ryujinx.Graphics.Gpu.State public BlendFactor AlphaSrcFactor; public uint Unknown0x1354; public BlendFactor AlphaDstFactor; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/Boolean32.cs b/Ryujinx.Graphics.Gpu/State/Boolean32.cs index ff701d9e..78e13b73 100644 --- a/Ryujinx.Graphics.Gpu/State/Boolean32.cs +++ b/Ryujinx.Graphics.Gpu/State/Boolean32.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct Boolean32 { +#pragma warning disable CS0649 private uint _value; +#pragma warning restore CS0649 public static implicit operator bool(Boolean32 value) { diff --git a/Ryujinx.Graphics.Gpu/State/ClearColors.cs b/Ryujinx.Graphics.Gpu/State/ClearColors.cs index b9f7b684..ba29c899 100644 --- a/Ryujinx.Graphics.Gpu/State/ClearColors.cs +++ b/Ryujinx.Graphics.Gpu/State/ClearColors.cs @@ -5,9 +5,11 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct ClearColors { +#pragma warning disable CS0649 public float Red; public float Green; public float Blue; public float Alpha; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/ConditionState.cs b/Ryujinx.Graphics.Gpu/State/ConditionState.cs index bad266d9..3388e8f0 100644 --- a/Ryujinx.Graphics.Gpu/State/ConditionState.cs +++ b/Ryujinx.Graphics.Gpu/State/ConditionState.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct ConditionState { +#pragma warning disable CS0649 public GpuVa Address; public Condition Condition; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/CopyBufferParams.cs b/Ryujinx.Graphics.Gpu/State/CopyBufferParams.cs index 7393c969..67c3e214 100644 --- a/Ryujinx.Graphics.Gpu/State/CopyBufferParams.cs +++ b/Ryujinx.Graphics.Gpu/State/CopyBufferParams.cs @@ -5,11 +5,13 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct CopyBufferParams { +#pragma warning disable CS0649 public GpuVa SrcAddress; public GpuVa DstAddress; public int SrcStride; public int DstStride; public int XCount; public int YCount; +#pragma warning restore CS0649 } }
\ No newline at end of file diff --git a/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs b/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs index 5b3d7076..b4a9d9c2 100644 --- a/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs +++ b/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct CopyBufferSwizzle { +#pragma warning disable CS0649 public uint Swizzle; +#pragma warning restore CS0649 /// <summary> /// Unpacks the size of each vector component of the copy. diff --git a/Ryujinx.Graphics.Gpu/State/CopyBufferTexture.cs b/Ryujinx.Graphics.Gpu/State/CopyBufferTexture.cs index 98d113a3..dfbab37a 100644 --- a/Ryujinx.Graphics.Gpu/State/CopyBufferTexture.cs +++ b/Ryujinx.Graphics.Gpu/State/CopyBufferTexture.cs @@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct CopyBufferTexture { +#pragma warning disable CS0649 public MemoryLayout MemoryLayout; public int Width; public int Height; @@ -12,5 +13,6 @@ namespace Ryujinx.Graphics.Gpu.State public int RegionZ; public ushort RegionX; public ushort RegionY; +#pragma warning restore CS0649 } }
\ No newline at end of file diff --git a/Ryujinx.Graphics.Gpu/State/CopyRegion.cs b/Ryujinx.Graphics.Gpu/State/CopyRegion.cs index a256594b..29889835 100644 --- a/Ryujinx.Graphics.Gpu/State/CopyRegion.cs +++ b/Ryujinx.Graphics.Gpu/State/CopyRegion.cs @@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct CopyRegion { +#pragma warning disable CS0649 public int DstX; public int DstY; public int DstWidth; @@ -13,5 +14,6 @@ namespace Ryujinx.Graphics.Gpu.State public long SrcHeightRF; public long SrcXF; public long SrcYF; +#pragma warning restore CS0649 } }
\ No newline at end of file diff --git a/Ryujinx.Graphics.Gpu/State/CopyTexture.cs b/Ryujinx.Graphics.Gpu/State/CopyTexture.cs index df723d0d..52e35498 100644 --- a/Ryujinx.Graphics.Gpu/State/CopyTexture.cs +++ b/Ryujinx.Graphics.Gpu/State/CopyTexture.cs @@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct CopyTexture { +#pragma warning disable CS0649 public RtFormat Format; public Boolean32 LinearLayout; public MemoryLayout MemoryLayout; @@ -14,5 +15,6 @@ namespace Ryujinx.Graphics.Gpu.State public int Width; public int Height; public GpuVa Address; +#pragma warning restore CS0649 } }
\ No newline at end of file diff --git a/Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs b/Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs index cfc64fc4..50fb9010 100644 --- a/Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs +++ b/Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct CopyTextureControl { +#pragma warning disable CS0649 public uint Packed; +#pragma warning restore CS0649 public bool UnpackLinearFilter() { diff --git a/Ryujinx.Graphics.Gpu/State/DepthBiasState.cs b/Ryujinx.Graphics.Gpu/State/DepthBiasState.cs index 75270625..0a125804 100644 --- a/Ryujinx.Graphics.Gpu/State/DepthBiasState.cs +++ b/Ryujinx.Graphics.Gpu/State/DepthBiasState.cs @@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct DepthBiasState { +#pragma warning disable CS0649 public Boolean32 PointEnable; public Boolean32 LineEnable; public Boolean32 FillEnable; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/FaceState.cs b/Ryujinx.Graphics.Gpu/State/FaceState.cs index 10dec3b9..e817b3ae 100644 --- a/Ryujinx.Graphics.Gpu/State/FaceState.cs +++ b/Ryujinx.Graphics.Gpu/State/FaceState.cs @@ -7,8 +7,10 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct FaceState { +#pragma warning disable CS0649 public Boolean32 CullEnable; public FrontFace FrontFace; public Face CullFace; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/GpuVa.cs b/Ryujinx.Graphics.Gpu/State/GpuVa.cs index 76a2fddf..d6b7def3 100644 --- a/Ryujinx.Graphics.Gpu/State/GpuVa.cs +++ b/Ryujinx.Graphics.Gpu/State/GpuVa.cs @@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct GpuVa { +#pragma warning disable CS0649 public uint High; public uint Low; +#pragma warning restore CS0649 /// <summary> /// Packs the split address into a 64-bits address value. diff --git a/Ryujinx.Graphics.Gpu/State/IndexBufferState.cs b/Ryujinx.Graphics.Gpu/State/IndexBufferState.cs index b7868bb9..8ae38bb8 100644 --- a/Ryujinx.Graphics.Gpu/State/IndexBufferState.cs +++ b/Ryujinx.Graphics.Gpu/State/IndexBufferState.cs @@ -8,10 +8,12 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct IndexBufferState { +#pragma warning disable CS0649 public GpuVa Address; public GpuVa EndAddress; public IndexType Type; public int First; public int Count; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/Inline2MemoryParams.cs b/Ryujinx.Graphics.Gpu/State/Inline2MemoryParams.cs index 45555be2..f4009592 100644 --- a/Ryujinx.Graphics.Gpu/State/Inline2MemoryParams.cs +++ b/Ryujinx.Graphics.Gpu/State/Inline2MemoryParams.cs @@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct Inline2MemoryParams { +#pragma warning disable CS0649 public int LineLengthIn; public int LineCount; public GpuVa DstAddress; @@ -16,5 +17,6 @@ namespace Ryujinx.Graphics.Gpu.State public int DstZ; public int DstX; public int DstY; +#pragma warning restore CS0649 } }
\ No newline at end of file diff --git a/Ryujinx.Graphics.Gpu/State/MemoryLayout.cs b/Ryujinx.Graphics.Gpu/State/MemoryLayout.cs index 9b72b097..c98831f9 100644 --- a/Ryujinx.Graphics.Gpu/State/MemoryLayout.cs +++ b/Ryujinx.Graphics.Gpu/State/MemoryLayout.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct MemoryLayout { +#pragma warning disable CS0649 public uint Packed; +#pragma warning restore CS0649 public int UnpackGobBlocksInX() { diff --git a/Ryujinx.Graphics.Gpu/State/PoolState.cs b/Ryujinx.Graphics.Gpu/State/PoolState.cs index eeb56918..ba4dfb78 100644 --- a/Ryujinx.Graphics.Gpu/State/PoolState.cs +++ b/Ryujinx.Graphics.Gpu/State/PoolState.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct PoolState { +#pragma warning disable CS0649 public GpuVa Address; public int MaximumId; +#pragma warning restore CS0649 } }
\ No newline at end of file diff --git a/Ryujinx.Graphics.Gpu/State/PrimitiveRestartState.cs b/Ryujinx.Graphics.Gpu/State/PrimitiveRestartState.cs index 96795083..d046b522 100644 --- a/Ryujinx.Graphics.Gpu/State/PrimitiveRestartState.cs +++ b/Ryujinx.Graphics.Gpu/State/PrimitiveRestartState.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct PrimitiveRestartState { +#pragma warning disable CS0649 public Boolean32 Enable; public int Index; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/ReportState.cs b/Ryujinx.Graphics.Gpu/State/ReportState.cs index 7430ea31..0c14bfe9 100644 --- a/Ryujinx.Graphics.Gpu/State/ReportState.cs +++ b/Ryujinx.Graphics.Gpu/State/ReportState.cs @@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct ReportState { +#pragma warning disable CS0649 public GpuVa Address; public int Payload; public uint Control; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/RtColorMask.cs b/Ryujinx.Graphics.Gpu/State/RtColorMask.cs index 4aa5c331..3567bf37 100644 --- a/Ryujinx.Graphics.Gpu/State/RtColorMask.cs +++ b/Ryujinx.Graphics.Gpu/State/RtColorMask.cs @@ -6,7 +6,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct RtColorMask { +#pragma warning disable CS0649 public uint Packed; +#pragma warning restore CS0649 /// <summary> /// Unpacks red channel enable. diff --git a/Ryujinx.Graphics.Gpu/State/RtColorState.cs b/Ryujinx.Graphics.Gpu/State/RtColorState.cs index 9261526a..82ccaf74 100644 --- a/Ryujinx.Graphics.Gpu/State/RtColorState.cs +++ b/Ryujinx.Graphics.Gpu/State/RtColorState.cs @@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct RtColorState { +#pragma warning disable CS0649 public GpuVa Address; public int WidthOrStride; public int Height; @@ -20,5 +21,6 @@ namespace Ryujinx.Graphics.Gpu.State public int Padding3; public int Padding4; public int Padding5; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/RtControl.cs b/Ryujinx.Graphics.Gpu/State/RtControl.cs index 2e28660b..8b6b1867 100644 --- a/Ryujinx.Graphics.Gpu/State/RtControl.cs +++ b/Ryujinx.Graphics.Gpu/State/RtControl.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct RtControl { +#pragma warning disable CS0649 public uint Packed; +#pragma warning restore CS0649 /// <summary> /// Unpacks the number of active draw buffers. diff --git a/Ryujinx.Graphics.Gpu/State/RtDepthStencilState.cs b/Ryujinx.Graphics.Gpu/State/RtDepthStencilState.cs index abc28fca..ceab1c2f 100644 --- a/Ryujinx.Graphics.Gpu/State/RtDepthStencilState.cs +++ b/Ryujinx.Graphics.Gpu/State/RtDepthStencilState.cs @@ -5,9 +5,11 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct RtDepthStencilState { +#pragma warning disable CS0649 public GpuVa Address; public RtFormat Format; public MemoryLayout MemoryLayout; public int LayerSize; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/ScissorState.cs b/Ryujinx.Graphics.Gpu/State/ScissorState.cs index 06766640..4f4b02dc 100644 --- a/Ryujinx.Graphics.Gpu/State/ScissorState.cs +++ b/Ryujinx.Graphics.Gpu/State/ScissorState.cs @@ -2,11 +2,13 @@ { struct ScissorState { +#pragma warning disable CS0649 public Boolean32 Enable; public ushort X1; public ushort X2; public ushort Y1; public ushort Y2; public uint Padding; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/ShaderState.cs b/Ryujinx.Graphics.Gpu/State/ShaderState.cs index 62c7ed4d..4cf67c74 100644 --- a/Ryujinx.Graphics.Gpu/State/ShaderState.cs +++ b/Ryujinx.Graphics.Gpu/State/ShaderState.cs @@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct ShaderState { +#pragma warning disable CS0649 public uint Control; public uint Offset; public uint Unknown0x8; @@ -21,6 +22,7 @@ namespace Ryujinx.Graphics.Gpu.State public uint Unknown0x34; public uint Unknown0x38; public uint Unknown0x3c; +#pragma warning restore CS0649 /// <summary> /// Unpacks shader enable information. diff --git a/Ryujinx.Graphics.Gpu/State/Size3D.cs b/Ryujinx.Graphics.Gpu/State/Size3D.cs index 0fa3314a..1c127da6 100644 --- a/Ryujinx.Graphics.Gpu/State/Size3D.cs +++ b/Ryujinx.Graphics.Gpu/State/Size3D.cs @@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct Size3D { +#pragma warning disable CS0649 public int Width; public int Height; public int Depth; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/StencilBackMasks.cs b/Ryujinx.Graphics.Gpu/State/StencilBackMasks.cs index f9ee613f..49061cc5 100644 --- a/Ryujinx.Graphics.Gpu/State/StencilBackMasks.cs +++ b/Ryujinx.Graphics.Gpu/State/StencilBackMasks.cs @@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct StencilBackMasks { +#pragma warning disable CS0649 public int FuncRef; public int Mask; public int FuncMask; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/StencilBackTestState.cs b/Ryujinx.Graphics.Gpu/State/StencilBackTestState.cs index 0169b5e7..16655322 100644 --- a/Ryujinx.Graphics.Gpu/State/StencilBackTestState.cs +++ b/Ryujinx.Graphics.Gpu/State/StencilBackTestState.cs @@ -7,10 +7,12 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct StencilBackTestState { +#pragma warning disable CS0649 public Boolean32 TwoSided; public StencilOp BackSFail; public StencilOp BackDpFail; public StencilOp BackDpPass; public CompareOp BackFunc; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/StencilTestState.cs b/Ryujinx.Graphics.Gpu/State/StencilTestState.cs index a50de6e6..72f85f2b 100644 --- a/Ryujinx.Graphics.Gpu/State/StencilTestState.cs +++ b/Ryujinx.Graphics.Gpu/State/StencilTestState.cs @@ -7,6 +7,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct StencilTestState { +#pragma warning disable CS0649 public Boolean32 Enable; public StencilOp FrontSFail; public StencilOp FrontDpFail; @@ -15,5 +16,6 @@ namespace Ryujinx.Graphics.Gpu.State public int FrontFuncRef; public int FrontFuncMask; public int FrontMask; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/UniformBufferState.cs b/Ryujinx.Graphics.Gpu/State/UniformBufferState.cs index 15fe556e..d547ea82 100644 --- a/Ryujinx.Graphics.Gpu/State/UniformBufferState.cs +++ b/Ryujinx.Graphics.Gpu/State/UniformBufferState.cs @@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct UniformBufferState { +#pragma warning disable CS0649 public int Size; public GpuVa Address; public int Offset; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/VertexAttribState.cs b/Ryujinx.Graphics.Gpu/State/VertexAttribState.cs index c22b1ca9..dbb75a5b 100644 --- a/Ryujinx.Graphics.Gpu/State/VertexAttribState.cs +++ b/Ryujinx.Graphics.Gpu/State/VertexAttribState.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct VertexAttribState { +#pragma warning disable CS0649 public uint Attribute; +#pragma warning restore CS0649 /// <summary> /// Unpacks the index of the vertex buffer this attribute belongs to. diff --git a/Ryujinx.Graphics.Gpu/State/VertexBufferDrawState.cs b/Ryujinx.Graphics.Gpu/State/VertexBufferDrawState.cs index b1c9a087..3e11838a 100644 --- a/Ryujinx.Graphics.Gpu/State/VertexBufferDrawState.cs +++ b/Ryujinx.Graphics.Gpu/State/VertexBufferDrawState.cs @@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct VertexBufferDrawState { +#pragma warning disable CS0649 public int First; public int Count; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/VertexBufferState.cs b/Ryujinx.Graphics.Gpu/State/VertexBufferState.cs index e514f2a9..85176d82 100644 --- a/Ryujinx.Graphics.Gpu/State/VertexBufferState.cs +++ b/Ryujinx.Graphics.Gpu/State/VertexBufferState.cs @@ -5,9 +5,11 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct VertexBufferState { +#pragma warning disable CS0649 public uint Control; public GpuVa Address; public int Divisor; +#pragma warning restore CS0649 /// <summary> /// Vertex buffer stride, defined as the number of bytes occupied by each vertex in memory. diff --git a/Ryujinx.Graphics.Gpu/State/ViewportExtents.cs b/Ryujinx.Graphics.Gpu/State/ViewportExtents.cs index 6675c909..d7728f41 100644 --- a/Ryujinx.Graphics.Gpu/State/ViewportExtents.cs +++ b/Ryujinx.Graphics.Gpu/State/ViewportExtents.cs @@ -5,11 +5,13 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct ViewportExtents { +#pragma warning disable CS0649 public ushort X; public ushort Width; public ushort Y; public ushort Height; public float DepthNear; public float DepthFar; +#pragma warning restore CS0649 } } diff --git a/Ryujinx.Graphics.Gpu/State/ViewportTransform.cs b/Ryujinx.Graphics.Gpu/State/ViewportTransform.cs index c7db311d..b795ea15 100644 --- a/Ryujinx.Graphics.Gpu/State/ViewportTransform.cs +++ b/Ryujinx.Graphics.Gpu/State/ViewportTransform.cs @@ -7,6 +7,7 @@ namespace Ryujinx.Graphics.Gpu.State /// </summary> struct ViewportTransform { +#pragma warning disable CS0649 public float ScaleX; public float ScaleY; public float ScaleZ; @@ -15,6 +16,7 @@ namespace Ryujinx.Graphics.Gpu.State public float TranslateZ; public uint Swizzle; public uint SubpixelPrecisionBias; +#pragma warning restore CS0649 /// <summary> /// Unpacks viewport swizzle of the position X component. |
