mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-20 07:37:05 +00:00
misc: chore: Merge into pattern
This commit is contained in:
parent
503dea74c2
commit
fa682d406e
157 changed files with 470 additions and 546 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue