Hash :
e839078e
Author :
Date :
2017-04-06T14:34:43
compiler: Prune literal statements when outputting ESSL The ESSL output doesn't have a default precision for floats, this causes float literal statements to not have any precision defined, which is an error. We fix this by removing literal statements as they are dead code anyway. BUG=angleproject:1967 Change-Id: I498f4f8495f854240ee8a2182415bf982c5166a4 Reviewed-on: https://chromium-review.googlesource.com/470268 Reviewed-by: Olli Etuaho <oetuaho@nvidia.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
//
// Copyright (c) 2017 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// PrunePureLiteralStatements.h: Removes statements that are literals and nothing else.
#ifndef COMPILER_TRANSLATOR_PRUNEPURELITERALSTATEMENTS_H_
#define COMPILER_TRANSLATOR_PRUNEPURELITERALSTATEMENTS_H_
namespace sh
{
class TIntermNode;
void PrunePureLiteralStatements(TIntermNode *root);
}
#endif // COMPILER_TRANSLATOR_PRUNEPURELITERALSTATEMENTS_H_