Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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::freeGpuData
void freeGpuData() override
Definition
MtlSampler.mm:115
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:187
skgpu::graphite::Sampler
Definition
Sampler.h:15
skgpu::graphite
Definition
BoundsManagerBench.cpp:27
SkSamplingOptions
Definition
SkSamplingOptions.h:58
Generated on Fri Apr 26 2024 06:17:18 for Flutter Engine by
1.9.8