| 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 FML_DCHECK(state_);
12 }
13
14 SamplerMTL::~SamplerMTL() = default;
15
16 id<MTLSamplerState> SamplerMTL::GetMTLSamplerState() const {
17 return state_;
18 }
19
20 } // namespace impeller
impeller::SamplerMTL::~SamplerMTL
~SamplerMTL() override
impeller::SamplerMTL::SamplerMTL
SamplerMTL()
std
Definition: comparable.h:95
sampler_mtl.h
impeller
Definition: allocation.cc:12
impeller::SamplerMTL::GetMTLSamplerState
id< MTLSamplerState > GetMTLSamplerState() const
Definition: sampler_mtl.mm:16