Flutter Engine
The Flutter Engine
impeller
renderer
backend
metal
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()
state
AtkStateType state
Definition:
fl_accessible_node.cc:10
FML_DCHECK
#define FML_DCHECK(condition)
Definition:
logging.h:103
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:18
import_conformance_tests.desc
desc
Definition:
import_conformance_tests.py:63
std
Definition:
ref_ptr.h:256
sampler_mtl.h
Generated on Sun Jun 23 2024 21:55:03 for Flutter Engine by
1.9.4