Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_FUNCTION_GLES_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_FUNCTION_GLES_H_
7
8#include <string>
9
10#include "flutter/fml/macros.h"
11#include "flutter/fml/mapping.h"
14
15namespace impeller {
16
17class ShaderLibraryGLES;
18
20 : public ShaderFunction,
21 public BackendCast<ShaderFunctionGLES, ShaderFunction> {
22 public:
23 // |ShaderFunction|
25
26 const std::shared_ptr<const fml::Mapping>& GetSourceMapping() const;
27
28 private:
29 friend ShaderLibraryGLES;
30
31 std::shared_ptr<const fml::Mapping> mapping_;
32
34 ShaderStage stage,
35 std::string name,
36 std::shared_ptr<const fml::Mapping> mapping);
37
39
40 ShaderFunctionGLES& operator=(const ShaderFunctionGLES&) = delete;
41};
42
43} // namespace impeller
44
45#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_FUNCTION_GLES_H_
const std::shared_ptr< const fml::Mapping > & GetSourceMapping() const
const char * name
Definition fuchsia.cc:50