| Flutter Impeller |

sampler_mtl.mm
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/backend/metal/sampler_mtl.h"
6
7 namespace impeller {
8
9 SamplerMTL::SamplerMTL(SamplerDescriptor desc, id<MTLSamplerState> state)
10 : Sampler(std::move(desc)), state_(state) {}
11
12 SamplerMTL::~SamplerMTL() = default;
13
14 bool SamplerMTL::IsValid() const {
15 return state_;
16 }
17
18 id<MTLSamplerState> SamplerMTL::GetMTLSamplerState() const {
19 return state_;
20 }
21
22 } // namespace impeller
impeller::SamplerMTL::~SamplerMTL
~SamplerMTL() override
impeller::SamplerMTL::SamplerMTL
SamplerMTL()
std
Definition: comparable.h:98
sampler_mtl.h
impeller
Definition: aiks_context.cc:10
impeller::SamplerMTL::GetMTLSamplerState
id< MTLSamplerState > GetMTLSamplerState() const
Definition: sampler_mtl.mm:18