| Flutter Impeller |

sampler_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_SAMPLER_MTL_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SAMPLER_MTL_H_
7
8 #include <Metal/Metal.h>
9
10 #include "impeller/base/backend_cast.h"
11 #include "impeller/core/sampler.h"
12
13 namespace impeller {
14
15 class SamplerLibraryMTL;
16
17 class SamplerMTL final : public Sampler,
18 public BackendCast<SamplerMTL, Sampler> {
19 public:
20 SamplerMTL();
21
22 // |Sampler|
23 ~SamplerMTL() override;
24
25 id<MTLSamplerState> GetMTLSamplerState() const;
26
27 private:
28 friend SamplerLibraryMTL;
29
30 id<MTLSamplerState> state_ = nullptr;
31
32 SamplerMTL(SamplerDescriptor desc, id<MTLSamplerState> state);
33
34 SamplerMTL(const SamplerMTL&) = delete;
35
36 SamplerMTL& operator=(const SamplerMTL&) = delete;
37 };
38
39 } // namespace impeller
40
41 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SAMPLER_MTL_H_
impeller::SamplerMTL::~SamplerMTL
~SamplerMTL() override
sampler.h
impeller::SamplerMTL::SamplerMTL
SamplerMTL()
impeller::SamplerDescriptor
Definition: sampler_descriptor.h:15
impeller::Sampler
Definition: sampler.h:15
backend_cast.h
impeller::SamplerLibraryMTL
Definition: sampler_library_mtl.h:19
impeller::BackendCast
Definition: backend_cast.h:11
impeller::SamplerMTL
Definition: sampler_mtl.h:17
impeller
Definition: allocation.cc:12
impeller::SamplerMTL::GetMTLSamplerState
id< MTLSamplerState > GetMTLSamplerState() const
Definition: sampler_mtl.mm:16