• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2015 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 // CompilerGL:
7 //   Implementation of the GL compiler methods.
8 //
9 
10 #include "libANGLE/renderer/gl/CompilerGL.h"
11 
12 #include "libANGLE/gles_extensions_autogen.h"
13 #include "libANGLE/renderer/gl/ContextGL.h"
14 #include "libANGLE/renderer/gl/FunctionsGL.h"
15 #include "platform/autogen/FeaturesGL_autogen.h"
16 
17 namespace rx
18 {
CompilerGL(const ContextGL * context)19 CompilerGL::CompilerGL(const ContextGL *context)
20     : mTranslatorOutputType(GetShaderOutputType(context->getFunctions()))
21 {}
22 
getTranslatorOutputType() const23 ShShaderOutput CompilerGL::getTranslatorOutputType() const
24 {
25     return mTranslatorOutputType;
26 }
27 
28 }  // namespace rx
29