David Ghandehari | 9e5b587 | 2016-07-28 09:50:04 -0700 | [diff] [blame] | 1 | /* |
Kaido Kert | e51ce0a | 2023-08-12 21:43:21 -0700 | [diff] [blame] | 2 | * Copyright 2023 The Cobalt Authors. All Rights Reserved. |
David Ghandehari | 9e5b587 | 2016-07-28 09:50:04 -0700 | [diff] [blame] | 3 | * Copyright 2016 Google Inc. All Rights Reserved. |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | #ifndef GLIMP_STUB_GLES_SHADER_IMPL_H_ |
| 19 | #define GLIMP_STUB_GLES_SHADER_IMPL_H_ |
| 20 | |
| 21 | #include <string> |
| 22 | |
| 23 | #include "glimp/gles/shader_impl.h" |
| 24 | #include "glimp/gles/uniform_info.h" |
Kaido Kert | e51ce0a | 2023-08-12 21:43:21 -0700 | [diff] [blame] | 25 | #include "glimp/ref_counted.h" |
David Ghandehari | 9e5b587 | 2016-07-28 09:50:04 -0700 | [diff] [blame] | 26 | #include "glimp/shaders/glsl_shader_map_helpers.h" |
Chad Duffin | ac9ac06 | 2019-07-23 10:06:45 -0700 | [diff] [blame] | 27 | #include "starboard/common/log.h" |
David Ghandehari | 9e5b587 | 2016-07-28 09:50:04 -0700 | [diff] [blame] | 28 | |
| 29 | namespace glimp { |
| 30 | namespace gles { |
| 31 | |
| 32 | class ShaderImplStub : public ShaderImpl { |
| 33 | public: |
| 34 | enum Type { |
| 35 | kVertex, |
| 36 | kFragment, |
| 37 | }; |
| 38 | |
| 39 | explicit ShaderImplStub(Type type); |
Kaido Kert | ecd0a90 | 2020-10-13 16:16:24 -0700 | [diff] [blame] | 40 | ~ShaderImplStub() override {} |
David Ghandehari | 9e5b587 | 2016-07-28 09:50:04 -0700 | [diff] [blame] | 41 | |
Kaido Kert | ecd0a90 | 2020-10-13 16:16:24 -0700 | [diff] [blame] | 42 | ShaderImpl::CompileResults Compile(const std::string& source) override; |
David Ghandehari | 9e5b587 | 2016-07-28 09:50:04 -0700 | [diff] [blame] | 43 | |
| 44 | private: |
| 45 | Type type_; |
| 46 | }; |
| 47 | |
| 48 | } // namespace gles |
| 49 | } // namespace glimp |
| 50 | |
| 51 | #endif // GLIMP_STUB_GLES_SHADER_IMPL_H_ |