Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
pipeline_key.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_SCENE_PIPELINE_KEY_H_
6#define FLUTTER_IMPELLER_SCENE_PIPELINE_KEY_H_
7
8#include "flutter/fml/hash_combine.h"
9
10namespace impeller {
11namespace scene {
12
13enum class GeometryType {
14 kUnskinned = 0,
15 kSkinned = 1,
17};
18enum class MaterialType {
19 kUnlit = 0,
21};
22
26
27 struct Hash {
28 constexpr std::size_t operator()(const PipelineKey& o) const {
30 }
31 };
32
33 struct Equal {
34 constexpr bool operator()(const PipelineKey& lhs,
35 const PipelineKey& rhs) const {
36 return lhs.geometry_type == rhs.geometry_type &&
38 }
39 };
40};
41
42} // namespace scene
43} // namespace impeller
44
45#endif // FLUTTER_IMPELLER_SCENE_PIPELINE_KEY_H_
constexpr std::size_t HashCombine()
constexpr bool operator()(const PipelineKey &lhs, const PipelineKey &rhs) const
constexpr std::size_t operator()(const PipelineKey &o) const