mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-25 11:40:06 +02:00
misc: chore: Merge into pattern
This commit is contained in:
@@ -146,7 +146,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||
/// <returns>True if eligible</returns>
|
||||
private static TextureScaleMode IsUpscaleCompatible(TextureInfo info, bool withUpscale)
|
||||
{
|
||||
if ((info.Target == Target.Texture2D || info.Target == Target.Texture2DArray || info.Target == Target.Texture2DMultisample) && !info.FormatInfo.IsCompressed)
|
||||
if (info.Target is Target.Texture2D or Target.Texture2DArray or Target.Texture2DMultisample && !info.FormatInfo.IsCompressed)
|
||||
{
|
||||
return UpscaleSafeMode(info) ? (withUpscale ? TextureScaleMode.Scaled : TextureScaleMode.Eligible) : TextureScaleMode.Undesired;
|
||||
}
|
||||
@@ -675,10 +675,11 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||
return null;
|
||||
}
|
||||
|
||||
if ((info.Target == Target.Texture3D ||
|
||||
info.Target == Target.Texture2DArray ||
|
||||
info.Target == Target.Texture2DMultisampleArray ||
|
||||
info.Target == Target.CubemapArray) && info.DepthOrLayers < 1)
|
||||
if (info.Target is Target.Texture3D
|
||||
or Target.Texture2DArray
|
||||
or Target.Texture2DMultisampleArray
|
||||
or Target.CubemapArray &&
|
||||
info.DepthOrLayers < 1)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user