//
// Copyright 2015 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.
//

// CompilerGL.h: Defines the class interface for CompilerGL.

#ifndef LIBANGLE_RENDERER_GL_COMPILERGL_H_
#define LIBANGLE_RENDERER_GL_COMPILERGL_H_

#include "libANGLE/renderer/CompilerImpl.h"

#include "GLSLANG/ShaderLang.h"

namespace gl
{
struct Data;
}

namespace rx
{

class CompilerGL : public CompilerImpl
{
  public:
    CompilerGL(const gl::Data &data);
    ~CompilerGL() override;

    gl::Error release() override;

    ShHandle getCompilerHandle(GLenum type);

  private:
    DISALLOW_COPY_AND_ASSIGN(CompilerGL);

    ShShaderSpec mSpec;
    ShShaderOutput mOutputType;
    ShBuiltInResources mResources;

    ShHandle mFragmentCompiler;
    ShHandle mVertexCompiler;
};

}

#endif // LIBANGLE_RENDERER_GL_COMPILERGL_H_
