Remove indexed path.

We determined that it had negligible impact.
This commit is contained in:
riperiperi 2020-03-29 16:15:48 +01:00
parent 0663d29795
commit 25ec4eddfa

View file

@ -115,13 +115,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
} }
private static string GetVec4Indexed(string vectorName, string indexExpr) private static string GetVec4Indexed(string vectorName, string indexExpr)
{
bool canIndexVec4 = false;
if (canIndexVec4)
{
return $"{vectorName}[{indexExpr}]";
}
else
{ {
string result = $"{vectorName}.x"; string result = $"{vectorName}.x";
for (int i = 1; i < 4; i++) for (int i = 1; i < 4; i++)
@ -130,7 +123,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
} }
return $"({result})"; return $"({result})";
} }
}
public static string GetConstantBufferName(IAstNode slot, string offsetExpr, ShaderStage stage) public static string GetConstantBufferName(IAstNode slot, string offsetExpr, ShaderStage stage)
{ {