Commit 6f591c97 by Olli Etuaho Committed by Commit Bot

Clean up TCompiler members and style

Some dead code and duplicate data are cleaned up from the compiler. Several parameters can be accessed directly from ShBuiltInResources instead of creating a copy in TCompiler. This also encapsulates some TCompiler member functions as private and changes the remaining unprefixed TCompiler member variable names to start with the m prefix. BUG=angleproject:2068 TEST=angle_unittests Change-Id: I6690aaf538b17e0f45460660272a21f82f1808a0 Reviewed-on: https://chromium-review.googlesource.com/c/1267503Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
parent 6d765b07
...@@ -141,7 +141,7 @@ void TranslatorGLSL::translate(TIntermBlock *root, ...@@ -141,7 +141,7 @@ void TranslatorGLSL::translate(TIntermBlock *root,
bool hasGLSecondaryFragColor = false; bool hasGLSecondaryFragColor = false;
bool hasGLSecondaryFragData = false; bool hasGLSecondaryFragData = false;
for (const auto &outputVar : outputVariables) for (const auto &outputVar : mOutputVariables)
{ {
if (declareGLFragmentOutputs) if (declareGLFragmentOutputs)
{ {
......
...@@ -686,7 +686,7 @@ void TranslatorVulkan::translate(TIntermBlock *root, ...@@ -686,7 +686,7 @@ void TranslatorVulkan::translate(TIntermBlock *root,
bool usesFragCoord = false; bool usesFragCoord = false;
// Search for the gl_PointCoord usage, if its used, we need to flip the y coordinate. // Search for the gl_PointCoord usage, if its used, we need to flip the y coordinate.
for (const Varying &inputVarying : inputVaryings) for (const Varying &inputVarying : mInputVaryings)
{ {
if (!inputVarying.isBuiltIn()) if (!inputVarying.isBuiltIn())
{ {
...@@ -712,7 +712,7 @@ void TranslatorVulkan::translate(TIntermBlock *root, ...@@ -712,7 +712,7 @@ void TranslatorVulkan::translate(TIntermBlock *root,
bool hasGLFragColor = false; bool hasGLFragColor = false;
bool hasGLFragData = false; bool hasGLFragData = false;
for (const OutputVariable &outputVar : outputVariables) for (const OutputVariable &outputVar : mOutputVariables)
{ {
if (outputVar.name == "gl_FragColor") if (outputVar.name == "gl_FragColor")
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment