Flutter Engine
Loading...
Searching...
No Matches
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()
FML_DCHECK
#define FML_DCHECK(condition)
Definition
logging.h:122
flutter::Sampler
std::function< ProfileSample(void)> Sampler
Sampler is run during SamplingProfiler::SampleRepeatedly. Each platform should implement its version ...
Definition
sampling_profiler.h:73
impeller
Definition
texture.h:16
sampler_mtl.h
impeller
renderer
backend
metal
sampler_mtl.mm
Generated on Thu Nov 6 2025 16:11:23 for Flutter Engine by
1.9.8