Brandon Jones | f05cdee | 2014-08-27 15:24:07 -0700 | [diff] [blame^] | 1 | // |
| 2 | // Copyright 2014 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 | // ShaderImpl.h: Defines the abstract rx::ShaderImpl class. |
| 8 | |
| 9 | #ifndef LIBGLESV2_RENDERER_SHADERIMPL_H_ |
| 10 | #define LIBGLESV2_RENDERER_SHADERIMPL_H_ |
| 11 | |
| 12 | #include "common/angleutils.h" |
| 13 | |
| 14 | namespace rx |
| 15 | { |
| 16 | |
| 17 | class ShaderImpl |
| 18 | { |
| 19 | public: |
| 20 | virtual ~ShaderImpl() { } |
| 21 | |
| 22 | virtual bool compile(const std::string &source) = 0; |
| 23 | virtual const std::string &getInfoLog() const = 0; |
| 24 | virtual const std::string &getTranslatedSource() const = 0; |
| 25 | }; |
| 26 | |
| 27 | } |
| 28 | |
| 29 | #endif // LIBGLESV2_RENDERER_SHADERIMPL_H_ |