Edit

kc3-lang/angle/src/libANGLE/Compiler.h

Branch :

  • Show log

    Commit

  • Author : Jiawei Shao
    Date : 2017-11-06 14:36:45
    Hash : 89be29a5
    Message : ES31: Implement creation and attaching geometry shader on OpenGL This patch intends to implement the creation of a geometry shader and attaching a geometry shader to a program on OpenGL back-ends. This patch also adds all geometry shader related dEQP-GLES31 test failures to deqp_gles31_test_expectations.txt. BUG=angleproject:1941 TEST=angle_end2end_tests Change-Id: Ib0b497030255b15dacd967e48bc59eef0009af46 Reviewed-on: https://chromium-review.googlesource.com/757979 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/Compiler.h
  • //
    // Copyright (c) 2014 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.
    //
    
    // Compiler.h: Defines the gl::Compiler class, abstracting the ESSL compiler
    // that a GL context holds.
    
    #ifndef LIBANGLE_COMPILER_H_
    #define LIBANGLE_COMPILER_H_
    
    #include "GLSLANG/ShaderLang.h"
    #include "libANGLE/Error.h"
    #include "libANGLE/RefCountObject.h"
    
    namespace rx
    {
    class CompilerImpl;
    class GLImplFactory;
    }
    
    namespace gl
    {
    class ContextState;
    
    class Compiler final : public RefCountObjectNoID
    {
      public:
        Compiler(rx::GLImplFactory *implFactory, const ContextState &data);
    
        ShHandle getCompilerHandle(GLenum type);
        ShShaderOutput getShaderOutputType() const { return mOutputType; }
        const std::string &getBuiltinResourcesString(GLenum type);
    
      private:
        ~Compiler() override;
        std::unique_ptr<rx::CompilerImpl> mImplementation;
        ShShaderSpec mSpec;
        ShShaderOutput mOutputType;
        ShBuiltInResources mResources;
    
        ShHandle mFragmentCompiler;
        ShHandle mVertexCompiler;
        ShHandle mComputeCompiler;
        ShHandle mGeometryCompiler;
    };
    
    }  // namespace gl
    
    #endif // LIBANGLE_COMPILER_H_