| Flutter Impeller |

shader_library.cc
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 #include "impeller/renderer/shader_library.h"
6
7 namespace impeller {
8
9 ShaderLibrary::ShaderLibrary() = default;
10
11 ShaderLibrary::~ShaderLibrary() = default;
12
13 void ShaderLibrary::RegisterFunction(
14 std::string name, // NOLINT(performance-unnecessary-value-param)
15 ShaderStage stage,
16 std::shared_ptr<fml::Mapping>
17 code, // NOLINT(performance-unnecessary-value-param)
18 RegistrationCallback
19 callback) { // NOLINT(performance-unnecessary-value-param)
20 if (callback) {
21 callback(false);
22 }
23 }
24
25 } // namespace impeller
impeller::ShaderLibrary::~ShaderLibrary
virtual ~ShaderLibrary()
impeller::ShaderLibrary::RegisterFunction
virtual void RegisterFunction(std::string name, ShaderStage stage, std::shared_ptr< fml::Mapping > code, RegistrationCallback callback)
Definition: shader_library.cc:13
impeller::ShaderLibrary::RegistrationCallback
std::function< void(bool)> RegistrationCallback
Definition: shader_library.h:30
impeller::ShaderLibrary::ShaderLibrary
ShaderLibrary()
impeller
Definition: allocation.cc:12
impeller::ShaderStage
ShaderStage
Definition: shader_types.h:22
shader_library.h