misc: chore: Merge into pattern

This commit is contained in:
KeatonTheBot 2025-08-30 19:46:36 -05:00
parent 503dea74c2
commit fa682d406e
157 changed files with 470 additions and 546 deletions

View file

@ -24,22 +24,20 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation
{
public static bool IsInputOrOutput(this StorageKind storageKind)
{
return storageKind == StorageKind.Input ||
storageKind == StorageKind.InputPerPatch ||
storageKind == StorageKind.Output ||
storageKind == StorageKind.OutputPerPatch;
return storageKind is StorageKind.Input
or StorageKind.InputPerPatch
or StorageKind.Output
or StorageKind.OutputPerPatch;
}
public static bool IsOutput(this StorageKind storageKind)
{
return storageKind == StorageKind.Output ||
storageKind == StorageKind.OutputPerPatch;
return storageKind is StorageKind.Output or StorageKind.OutputPerPatch;
}
public static bool IsPerPatch(this StorageKind storageKind)
{
return storageKind == StorageKind.InputPerPatch ||
storageKind == StorageKind.OutputPerPatch;
return storageKind is StorageKind.InputPerPatch or StorageKind.OutputPerPatch;
}
}
}