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
(
const
SamplerDescriptor& desc, id<MTLSamplerState> state)
10
: Sampler(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()
impeller
Definition:
allocation.cc:12
sampler_mtl.h
impeller
renderer
backend
metal
sampler_mtl.mm
Generated by
1.9.1