diff options
Diffstat (limited to 'gfx/angle/checkout/src/compiler/translator/tree_util/RunAtTheBeginningOfShader.h')
-rw-r--r-- | gfx/angle/checkout/src/compiler/translator/tree_util/RunAtTheBeginningOfShader.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gfx/angle/checkout/src/compiler/translator/tree_util/RunAtTheBeginningOfShader.h b/gfx/angle/checkout/src/compiler/translator/tree_util/RunAtTheBeginningOfShader.h new file mode 100644 index 0000000000..23ed9f9372 --- /dev/null +++ b/gfx/angle/checkout/src/compiler/translator/tree_util/RunAtTheBeginningOfShader.h @@ -0,0 +1,27 @@ +// +// 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. +// +// RunAtTheBeginningOfShader.h: Add code to be run at the beginning of the shader. +// + +#ifndef COMPILER_TRANSLATOR_TREEUTIL_RUNATTHEBEGINNINGOFSHADER_H_ +#define COMPILER_TRANSLATOR_TREEUTIL_RUNATTHEBEGINNINGOFSHADER_H_ + +#include "common/angleutils.h" + +namespace sh +{ + +class TCompiler; +class TIntermBlock; +class TIntermNode; + +[[nodiscard]] bool RunAtTheBeginningOfShader(TCompiler *compiler, + TIntermBlock *root, + TIntermNode *codeToRun); + +} // namespace sh + +#endif // COMPILER_TRANSLATOR_TREEUTIL_RUNATTHEBEGINNINGOFSHADER_H_ |