// // Copyright 2020 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. // #ifndef COMPILER_TRANSLATOR_TRANSLATORMETALDIRECT_DISCOVERDEPENDENTFUNCTIONS_H_ #define COMPILER_TRANSLATOR_TRANSLATORMETALDIRECT_DISCOVERDEPENDENTFUNCTIONS_H_ #include #include "common/angleutils.h" #include "compiler/translator/Compiler.h" namespace sh { // Finds and returns all functions that contain the provided variables. ANGLE_NO_DISCARD std::unordered_set DiscoverDependentFunctions( TIntermBlock &root, const std::function &vars); } // namespace sh #endif // COMPILER_TRANSLATOR_TRANSLATORMETALDIRECT_DISCOVERDEPENDENTFUNCTIONS_H_