Fix ~3500 analyser issues

See merge request ryubing/ryujinx!44
This commit is contained in:
MrKev 2025-05-30 17:08:34 -05:00 committed by LotP
parent 417df486b1
commit 361d0c5632
622 changed files with 3080 additions and 2652 deletions

View file

@ -20,7 +20,7 @@ namespace Ryujinx.Graphics.GAL
Logger.Info?.PrintMsg(LogClass.Gpu, $"Backend Threading ({backendThreading}): True");
return new ThreadedRenderer(this);
}
Logger.Info?.PrintMsg(LogClass.Gpu, $"Backend Threading ({backendThreading}): False");
return this;

View file

@ -77,7 +77,6 @@ namespace Ryujinx.Graphics.GAL.Multithreading
{
// Blocks until the handle is available.
lock (_bufferMap)
{
if (_bufferMap.TryGetValue(handle, out BufferHandle result))

View file

@ -18,17 +18,17 @@ namespace Ryujinx.Graphics.GAL
{
public static bool IsMultisample(this Target target)
{
return target == Target.Texture2DMultisample || target == Target.Texture2DMultisampleArray;
return target is Target.Texture2DMultisample or Target.Texture2DMultisampleArray;
}
public static bool HasDepthOrLayers(this Target target)
{
return target == Target.Texture3D ||
target == Target.Texture1DArray ||
target == Target.Texture2DArray ||
target == Target.Texture2DMultisampleArray ||
target == Target.Cubemap ||
target == Target.CubemapArray;
return target is Target.Texture3D or
Target.Texture1DArray or
Target.Texture2DArray or
Target.Texture2DMultisampleArray or
Target.Cubemap or
Target.CubemapArray;
}
}
}

View file

@ -98,9 +98,9 @@ namespace Ryujinx.Graphics.GAL
public int GetLayers()
{
if (Target == Target.Texture2DArray ||
Target == Target.Texture2DMultisampleArray ||
Target == Target.CubemapArray)
if (Target is Target.Texture2DArray or
Target.Texture2DMultisampleArray or
Target.CubemapArray)
{
return Depth;
}

View file

@ -2,7 +2,6 @@ using System.Diagnostics.CodeAnalysis;
namespace Ryujinx.Graphics.GAL
{
[SuppressMessage("Design", "CA1069: Enums values should not be duplicated")]
public enum ViewportSwizzle
{
PositiveX = 0,