Flutter Impeller
sampler_mtl.h
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
#pragma once
6
7
#include <Metal/Metal.h>
8
9
#include "flutter/fml/macros.h"
10
#include "
impeller/base/backend_cast.h
"
11
#include "
impeller/core/sampler.h
"
12
13
namespace
impeller
{
14
15
class
SamplerLibraryMTL;
16
17
class
SamplerMTL
final :
public
Sampler
,
18
public
BackendCast
<SamplerMTL, Sampler> {
19
public
:
20
SamplerMTL
();
21
22
// |Sampler|
23
~SamplerMTL
()
override
;
24
25
id<MTLSamplerState>
GetMTLSamplerState
()
const
;
26
27
private
:
28
friend
SamplerLibraryMTL
;
29
30
id<MTLSamplerState> state_ =
nullptr
;
31
32
SamplerMTL
(
SamplerDescriptor
desc, id<MTLSamplerState> state);
33
34
// |Sampler|
35
bool
IsValid()
const override
;
36
37
FML_DISALLOW_COPY_AND_ASSIGN(
SamplerMTL
);
38
};
39
40
}
// namespace impeller
impeller::SamplerMTL::~SamplerMTL
~SamplerMTL() override
sampler.h
impeller::SamplerMTL::SamplerMTL
SamplerMTL()
impeller::SamplerDescriptor
Definition:
sampler_descriptor.h:18
impeller::Sampler
Definition:
sampler.h:12
backend_cast.h
impeller::SamplerLibraryMTL
Definition:
sampler_library_mtl.h:19
impeller::BackendCast
Definition:
backend_cast.h:12
impeller::SamplerMTL
Definition:
sampler_mtl.h:17
impeller
Definition:
aiks_context.cc:10
impeller::SamplerMTL::GetMTLSamplerState
id< MTLSamplerState > GetMTLSamplerState() const
Definition:
sampler_mtl.mm:18
impeller
renderer
backend
metal
sampler_mtl.h
Generated by
1.8.17