| Flutter Impeller |

shader_function_gles.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #pragma once
6
7 #include <string>
8
9 #include "flutter/fml/macros.h"
10 #include "flutter/fml/mapping.h"
11 #include "impeller/base/backend_cast.h"
12 #include "impeller/renderer/shader_function.h"
13
14 namespace impeller {
15
16 class ShaderLibraryGLES;
17
18 class ShaderFunctionGLES final
19 : public ShaderFunction,
20 public BackendCast<ShaderFunctionGLES, ShaderFunction> {
21 public:
22 // |ShaderFunction|
23 ~ShaderFunctionGLES() override;
24
25 const std::shared_ptr<const fml::Mapping>& GetSourceMapping() const;
26
27 private:
28 friend ShaderLibraryGLES;
29
30 std::shared_ptr<const fml::Mapping> mapping_;
31
32 ShaderFunctionGLES(UniqueID library_id,
33 ShaderStage stage,
34 std::string name,
35 std::shared_ptr<const fml::Mapping> mapping);
36
37 FML_DISALLOW_COPY_AND_ASSIGN(ShaderFunctionGLES);
38 };
39
40 } // namespace impeller
shader_function.h
impeller::ShaderFunctionGLES
Definition: shader_function_gles.h:18
impeller::ShaderStage
ShaderStage
Definition: shader_types.h:20
impeller::ShaderLibraryGLES
Definition: shader_library_gles.h:18
impeller::ShaderFunctionGLES::GetSourceMapping
const std::shared_ptr< const fml::Mapping > & GetSourceMapping() const
Definition: shader_function_gles.cc:20
impeller::ShaderFunctionGLES::~ShaderFunctionGLES
~ShaderFunctionGLES() override
impeller::ShaderFunction
Definition: shader_function.h:14
backend_cast.h
impeller::BackendCast
Definition: backend_cast.h:12
impeller::UniqueID
Definition: comparable.h:19
impeller
Definition: aiks_context.cc:10