Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
third_party
skia
src
gpu
graphite
mtl
MtlSampler.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022 Google LLC
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef skgpu_graphite_MtlSampler_DEFINED
9
#define skgpu_graphite_MtlSampler_DEFINED
10
11
#include "
src/gpu/graphite/Sampler.h
"
12
13
#include "
include/core/SkRefCnt.h
"
14
#include "
include/core/SkTileMode.h
"
15
#include "
include/ports/SkCFObject.h
"
16
17
#import <Metal/Metal.h>
18
19
struct
SkSamplingOptions
;
20
21
namespace
skgpu::graphite
{
22
23
class
MtlSharedContext;
24
25
class
MtlSampler
:
public
Sampler
{
26
public
:
27
static
sk_sp<MtlSampler>
Make
(
const
MtlSharedContext
*,
28
const
SkSamplingOptions
& samplingOptions,
29
SkTileMode
xTileMode,
30
SkTileMode
yTileMode);
31
32
~MtlSampler
()
override
{}
33
34
id<MTLSamplerState>
mtlSamplerState
()
const
{
return
fSamplerState.get(); }
35
36
private
:
37
MtlSampler
(
const
MtlSharedContext
*
sharedContext
,
38
sk_cfp<id<MTLSamplerState>>);
39
40
void
freeGpuData()
override
;
41
42
sk_cfp<id<MTLSamplerState>> fSamplerState;
43
};
44
45
}
// namepsace skgpu::graphite
46
47
#endif
// skgpu_graphite_MtlSampler_DEFINED
Sampler.h
SkCFObject.h
SkRefCnt.h
SkTileMode.h
SkTileMode
SkTileMode
Definition:
SkTileMode.h:13
sk_sp
Definition:
SkRefCnt.h:220
skgpu::graphite::MtlSampler
Definition:
MtlSampler.h:25
skgpu::graphite::MtlSampler::Make
static sk_sp< MtlSampler > Make(const MtlSharedContext *, const SkSamplingOptions &samplingOptions, SkTileMode xTileMode, SkTileMode yTileMode)
Definition:
MtlSampler.mm:47
skgpu::graphite::MtlSampler::mtlSamplerState
id< MTLSamplerState > mtlSamplerState() const
Definition:
MtlSampler.h:34
skgpu::graphite::MtlSampler::~MtlSampler
~MtlSampler() override
Definition:
MtlSampler.h:32
skgpu::graphite::MtlSharedContext
Definition:
MtlSharedContext.h:27
skgpu::graphite::Resource::sharedContext
const SharedContext * sharedContext() const
Definition:
Resource.h:189
skgpu::graphite::Sampler
Definition:
Sampler.h:15
skgpu::graphite
Definition:
BoundsManagerBench.cpp:27
SkSamplingOptions
Definition:
SkSamplingOptions.h:58
Generated on Sun Jun 23 2024 21:56:27 for Flutter Engine by
1.9.4