Flutter Engine
The Flutter Engine
pipeline_library_mtl.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_METAL_PIPELINE_LIBRARY_MTL_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_PIPELINE_LIBRARY_MTL_H_
7
8#include <Metal/Metal.h>
9
11
12namespace impeller {
13
14class ContextMTL;
15
16class PipelineLibraryMTL final : public PipelineLibrary {
17 public:
19
20 // |PipelineLibrary|
22
23 private:
24 friend ContextMTL;
25
26 id<MTLDevice> device_ = nullptr;
27 PipelineMap pipelines_;
28 ComputePipelineMap compute_pipelines_;
29
30 explicit PipelineLibraryMTL(id<MTLDevice> device);
31
32 // |PipelineLibrary|
33 bool IsValid() const override;
34
35 // |PipelineLibrary|
37 bool async) override;
38
39 // |PipelineLibrary|
42 bool async) override;
43
44 // |PipelineLibrary|
45 void RemovePipelinesWithEntryPoint(
46 std::shared_ptr<const ShaderFunction> function) override;
47
49
50 PipelineLibraryMTL& operator=(const PipelineLibraryMTL&) = delete;
51};
52
53} // namespace impeller
54
55#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_PIPELINE_LIBRARY_MTL_H_
VkDevice device
Definition: main.cc:53
Dart_NativeFunction function
Definition: fuchsia.cc:51
std::unordered_map< ComputePipelineDescriptor, PipelineFuture< ComputePipelineDescriptor >, ComparableHash< ComputePipelineDescriptor >, ComparableEqual< ComputePipelineDescriptor > > ComputePipelineMap
std::unordered_map< PipelineDescriptor, PipelineFuture< PipelineDescriptor >, ComparableHash< PipelineDescriptor >, ComparableEqual< PipelineDescriptor > > PipelineMap