blob: 862aa2eb039b76c704bdf95c48244c7799c42d96 [file] [log] [blame]
David Ghandehari9e5b5872016-07-28 09:50:04 -07001/*
Kaido Kerte51ce0a2023-08-12 21:43:21 -07002 * Copyright 2023 The Cobalt Authors. All Rights Reserved.
David Ghandehari9e5b5872016-07-28 09:50:04 -07003 * 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 Kerte51ce0a2023-08-12 21:43:21 -070025#include "glimp/ref_counted.h"
David Ghandehari9e5b5872016-07-28 09:50:04 -070026#include "glimp/shaders/glsl_shader_map_helpers.h"
Chad Duffinac9ac062019-07-23 10:06:45 -070027#include "starboard/common/log.h"
David Ghandehari9e5b5872016-07-28 09:50:04 -070028
29namespace glimp {
30namespace gles {
31
32class ShaderImplStub : public ShaderImpl {
33 public:
34 enum Type {
35 kVertex,
36 kFragment,
37 };
38
39 explicit ShaderImplStub(Type type);
Kaido Kertecd0a902020-10-13 16:16:24 -070040 ~ShaderImplStub() override {}
David Ghandehari9e5b5872016-07-28 09:50:04 -070041
Kaido Kertecd0a902020-10-13 16:16:24 -070042 ShaderImpl::CompileResults Compile(const std::string& source) override;
David Ghandehari9e5b5872016-07-28 09:50:04 -070043
44 private:
45 Type type_;
46};
47
48} // namespace gles
49} // namespace glimp
50
51#endif // GLIMP_STUB_GLES_SHADER_IMPL_H_