Qin Jiajia | 7835b52 | 2016-10-08 11:20:17 +0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2016 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | // UseInterfaceBlockFields.h: insert statements to reference all members in InterfaceBlock list at |
| 8 | // the beginning of main. This is to work around a Mac driver that treats unused standard/shared |
| 9 | // uniform blocks as inactive. |
| 10 | |
| 11 | #ifndef COMPILER_TRANSLATOR_USEINTERFACEBLOCKFIELDS_H_ |
| 12 | #define COMPILER_TRANSLATOR_USEINTERFACEBLOCKFIELDS_H_ |
| 13 | |
| 14 | #include <GLSLANG/ShaderLang.h> |
| 15 | |
| 16 | class TIntermNode; |
| 17 | namespace sh |
| 18 | { |
| 19 | |
Zhenyao Mo | d749096 | 2016-11-09 15:49:51 -0800 | [diff] [blame] | 20 | class TSymbolTable; |
| 21 | |
Qin Jiajia | 7835b52 | 2016-10-08 11:20:17 +0800 | [diff] [blame] | 22 | using InterfaceBlockList = std::vector<sh::InterfaceBlock>; |
| 23 | |
Zhenyao Mo | d749096 | 2016-11-09 15:49:51 -0800 | [diff] [blame] | 24 | void UseInterfaceBlockFields(TIntermNode *root, |
| 25 | const InterfaceBlockList &blocks, |
| 26 | const TSymbolTable &symbolTable); |
| 27 | |
Qin Jiajia | 7835b52 | 2016-10-08 11:20:17 +0800 | [diff] [blame] | 28 | } // namespace sh |
| 29 | |
| 30 | #endif // COMPILER_TRANSLATOR_USEINTERFACEBLOCKFIELDS_H_ |