Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
graphite
vk
VulkanSampler.h
Go to the documentation of this file.
1
/*
2
* Copyright 2023 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_VulkanSampler_DEFINED
9
#define skgpu_graphite_VulkanSampler_DEFINED
10
11
#include "
src/gpu/graphite/Sampler.h
"
12
#include "
src/gpu/graphite/vk/VulkanSharedContext.h
"
13
#include "
src/gpu/graphite/vk/VulkanYcbcrConversion.h
"
14
15
#include "
include/core/SkRefCnt.h
"
16
#include "
include/core/SkTileMode.h
"
17
18
struct
SkSamplingOptions
;
19
20
namespace
skgpu::graphite
{
21
22
class
VulkanSampler
:
public
Sampler
{
23
public
:
24
static
sk_sp<VulkanSampler>
Make
(
const
VulkanSharedContext
*,
25
const
SkSamplingOptions
&,
26
SkTileMode
xTileMode,
27
SkTileMode
yTileMode,
28
sk_sp<VulkanYcbcrConversion>
ycbcrConversion
=
nullptr
);
29
30
~VulkanSampler
()
override
{}
31
32
VkSampler
vkSampler
()
const
{
return
fSampler; }
33
34
const
VulkanYcbcrConversion
*
ycbcrConversion
()
const
{
return
fYcbcrConversion.get(); }
35
36
private
:
37
VulkanSampler
(
const
VulkanSharedContext
*, VkSampler,
sk_sp<VulkanYcbcrConversion>
);
38
39
void
freeGpuData()
override
;
40
41
VkSampler fSampler;
42
sk_sp<VulkanYcbcrConversion>
fYcbcrConversion;
43
};
44
45
}
// namepsace skgpu::graphite
46
47
#endif
// skgpu_graphite_VulkanSampler_DEFINED
Sampler.h
SkRefCnt.h
SkTileMode.h
SkTileMode
SkTileMode
Definition:
SkTileMode.h:13
VulkanSharedContext.h
VulkanYcbcrConversion.h
sk_sp
Definition:
SkRefCnt.h:220
skgpu::graphite::Sampler
Definition:
Sampler.h:15
skgpu::graphite::VulkanSampler
Definition:
VulkanSampler.h:22
skgpu::graphite::VulkanSampler::~VulkanSampler
~VulkanSampler() override
Definition:
VulkanSampler.h:30
skgpu::graphite::VulkanSampler::ycbcrConversion
const VulkanYcbcrConversion * ycbcrConversion() const
Definition:
VulkanSampler.h:34
skgpu::graphite::VulkanSampler::Make
static sk_sp< VulkanSampler > Make(const VulkanSharedContext *, const SkSamplingOptions &, SkTileMode xTileMode, SkTileMode yTileMode, sk_sp< VulkanYcbcrConversion > ycbcrConversion=nullptr)
Definition:
VulkanSampler.cpp:37
skgpu::graphite::VulkanSampler::vkSampler
VkSampler vkSampler() const
Definition:
VulkanSampler.h:32
skgpu::graphite::VulkanSharedContext
Definition:
VulkanSharedContext.h:28
skgpu::graphite::VulkanYcbcrConversion
Definition:
VulkanYcbcrConversion.h:26
skgpu::graphite
Definition:
BoundsManagerBench.cpp:27
SkSamplingOptions
Definition:
SkSamplingOptions.h:58
Generated on Sun Jun 23 2024 21:56:28 for Flutter Engine by
1.9.4