From 4738113f293ac2477a553225a24b6c489c6855f1 Mon Sep 17 00:00:00 2001 From: Cristallix Date: Mon, 20 Apr 2020 23:59:59 +0200 Subject: 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 --- Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs | 2 ++ Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs | 2 ++ 2 files changed, 4 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/Image') diff --git a/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs b/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs index 77af1ce0..9f5a847b 100644 --- a/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs +++ b/Ryujinx.Graphics.Gpu/Image/SamplerDescriptor.cs @@ -51,6 +51,7 @@ namespace Ryujinx.Graphics.Gpu.Image private const float Frac8ToF32 = 1.0f / 256.0f; +#pragma warning disable CS0649 public uint Word0; public uint Word1; public uint Word2; @@ -59,6 +60,7 @@ namespace Ryujinx.Graphics.Gpu.Image public float BorderColorG; public float BorderColorB; public float BorderColorA; +#pragma warning restore CS0649 /// /// Unpacks the texture wrap mode along the X axis. diff --git a/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs b/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs index aebf4abf..313b8e20 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs @@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// struct TextureDescriptor { +#pragma warning disable CS0649 public uint Word0; public uint Word1; public uint Word2; @@ -13,6 +14,7 @@ namespace Ryujinx.Graphics.Gpu.Image public uint Word5; public uint Word6; public uint Word7; +#pragma warning restore CS0649 /// /// Unpacks Maxwell texture format integer. -- cgit v1.2.3