Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
14
17
19
20namespace skgpu::graphite {
21
22class VulkanSampler : public Sampler {
23public:
25 const SkSamplingOptions& samplingOptions,
26 SkTileMode xTileMode,
27 SkTileMode yTileMode);
28
29 ~VulkanSampler() override {}
30
31 VkSampler vkSampler() const { return fSampler; }
32
33private:
34 VulkanSampler(const VulkanSharedContext*, VkSampler);
35
36 void freeGpuData() override;
37
38 VkSampler fSampler;
39 // TODO: Add YCbCr conversion information to this class.
40 //sk_sp<VulkanSamplerYcbcrConversion> fYcbcrConversion;
41};
42
43} // namepsace skgpu::graphite
44
45#endif // skgpu_graphite_VulkanSampler_DEFINED
SkTileMode
Definition SkTileMode.h:13
static sk_sp< VulkanSampler > Make(const VulkanSharedContext *, const SkSamplingOptions &samplingOptions, SkTileMode xTileMode, SkTileMode yTileMode)