Flutter Impeller
shader_function.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_SHADER_FUNCTION_H_
6
#define FLUTTER_IMPELLER_RENDERER_SHADER_FUNCTION_H_
7
8
#include <string>
9
10
#include "
impeller/base/comparable.h
"
11
#include "
impeller/core/shader_types.h
"
12
13
namespace
impeller
{
14
15
class
ShaderFunction
:
public
Comparable
<ShaderFunction> {
16
public
:
17
// |Comparable<ShaderFunction>|
18
virtual
~ShaderFunction
();
19
20
ShaderStage
GetStage
()
const
;
21
22
const
std::string&
GetName
()
const
;
23
24
// |Comparable<ShaderFunction>|
25
std::size_t
GetHash
()
const override
;
26
27
// |Comparable<ShaderFunction>|
28
bool
IsEqual
(
const
ShaderFunction
& other)
const override
;
29
30
protected
:
31
ShaderFunction
(
UniqueID
parent_library_id,
32
std::string name,
33
ShaderStage
stage);
34
35
private
:
36
UniqueID
parent_library_id_;
37
std::string name_;
38
ShaderStage
stage_;
39
40
ShaderFunction
(
const
ShaderFunction
&) =
delete
;
41
42
ShaderFunction
& operator=(
const
ShaderFunction
&) =
delete
;
43
};
44
45
}
// namespace impeller
46
47
#endif // FLUTTER_IMPELLER_RENDERER_SHADER_FUNCTION_H_
impeller::ShaderFunction::~ShaderFunction
virtual ~ShaderFunction()
impeller::ShaderStage
ShaderStage
Definition:
shader_types.h:22
impeller::ShaderFunction::IsEqual
bool IsEqual(const ShaderFunction &other) const override
Definition:
shader_function.cc:32
impeller::ShaderFunction
Definition:
shader_function.h:15
impeller::ShaderFunction::GetName
const std::string & GetName() const
Definition:
shader_function.cc:22
impeller::ShaderFunction::GetStage
ShaderStage GetStage() const
Definition:
shader_function.cc:18
impeller::Comparable
Definition:
comparable.h:29
comparable.h
impeller::UniqueID
Definition:
comparable.h:16
shader_types.h
impeller
Definition:
aiks_blend_unittests.cc:18
impeller::ShaderFunction::ShaderFunction
ShaderFunction(UniqueID parent_library_id, std::string name, ShaderStage stage)
Definition:
shader_function.cc:9
impeller::ShaderFunction::GetHash
std::size_t GetHash() const override
Definition:
shader_function.cc:27
impeller
renderer
shader_function.h
Generated by
1.8.17