aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Shader/Instructions/Lop3Expression.cs
diff options
context:
space:
mode:
authorAlex Barney <thealexbarney@gmail.com>2019-07-01 21:39:22 -0500
committerAc_K <Acoustik666@gmail.com>2019-07-02 04:39:22 +0200
commitb2b736abc2569ab5d8199da666aef8d8394844a0 (patch)
tree88bcc2ae4fb0d4161c95df2cd7edb12388de922a /Ryujinx.Graphics/Shader/Instructions/Lop3Expression.cs
parent10c74182babaf8cf6bedaeffd64c3109df4ea816 (diff)
Misc cleanup (#708)
* Fix typos * Remove unneeded using statements * Enforce var style more * Remove redundant qualifiers * Fix some indentation * Disable naming warnings on files with external enum names * Fix build * Mass find & replace for comments with no spacing * Standardize todo capitalization and for/if spacing
Diffstat (limited to 'Ryujinx.Graphics/Shader/Instructions/Lop3Expression.cs')
-rw-r--r--Ryujinx.Graphics/Shader/Instructions/Lop3Expression.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/Ryujinx.Graphics/Shader/Instructions/Lop3Expression.cs b/Ryujinx.Graphics/Shader/Instructions/Lop3Expression.cs
index e55ed660..67e24957 100644
--- a/Ryujinx.Graphics/Shader/Instructions/Lop3Expression.cs
+++ b/Ryujinx.Graphics/Shader/Instructions/Lop3Expression.cs
@@ -16,11 +16,11 @@ namespace Ryujinx.Graphics.Shader.Instructions
{
Operand expr = null;
- //Handle some simple cases, or cases where
- //the KMap would yield poor results (like XORs).
+ // Handle some simple cases, or cases where
+ // the KMap would yield poor results (like XORs).
if (imm == 0x96 || imm == 0x69)
{
- //XOR (0x96) and XNOR (0x69).
+ // XOR (0x96) and XNOR (0x69).
if (imm == 0x69)
{
srcA = context.BitwiseNot(srcA);
@@ -33,18 +33,18 @@ namespace Ryujinx.Graphics.Shader.Instructions
}
else if (imm == 0)
{
- //Always false.
+ // Always false.
return Const(IrConsts.False);
}
else if (imm == 0xff)
{
- //Always true.
+ // Always true.
return Const(IrConsts.True);
}
int map;
- //Encode into gray code.
+ // Encode into gray code.
map = ((imm >> 0) & 1) << 0;
map |= ((imm >> 1) & 1) << 4;
map |= ((imm >> 2) & 1) << 1;
@@ -54,7 +54,7 @@ namespace Ryujinx.Graphics.Shader.Instructions
map |= ((imm >> 6) & 1) << 2;
map |= ((imm >> 7) & 1) << 6;
- //Solve KMap, get sum of products.
+ // Solve KMap, get sum of products.
int visited = 0;
for (int index = 0; index < 8 && visited != 0xff; index++)
@@ -76,7 +76,7 @@ namespace Ryujinx.Graphics.Shader.Instructions
}
}
- //The mask should wrap, if we are on the high row, shift to low etc.
+ // The mask should wrap, if we are on the high row, shift to low etc.
int mask2 = (index & 4) != 0 ? mask >> 4 : mask << 4;
if ((map & mask2) == mask2)