• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2002 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 // The ValidateVaryingLocations function checks if there exists location conflicts on shader
7 // varyings.
8 //
9 
10 #ifndef COMPILER_TRANSLATOR_VALIDATEVARYINGLOCATIONS_H_
11 #define COMPILER_TRANSLATOR_VALIDATEVARYINGLOCATIONS_H_
12 
13 #include "GLSLANG/ShaderVars.h"
14 
15 namespace sh
16 {
17 
18 class TIntermBlock;
19 class TIntermSymbol;
20 class TDiagnostics;
21 class TType;
22 
23 unsigned int CalculateVaryingLocationCount(const TType &varyingType, GLenum shaderType);
24 bool ValidateVaryingLocations(TIntermBlock *root, TDiagnostics *diagnostics, GLenum shaderType);
25 
26 }  // namespace sh
27 
28 #endif
29