Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
VulkanSamplerYcbcrConversion.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google Inc.
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_VulkanSamplerYcbcrConversion_DEFINED
9#define skgpu_graphite_VulkanSamplerYcbcrConversion_DEFINED
10
12
14#include "src/core/SkChecksum.h"
15
16#include <cinttypes>
17
18namespace skgpu {
19struct VulkanYcbcrConversionInfo;
20}
21
22namespace skgpu::graphite {
23
24class VulkanSharedContext;
25
27public:
32
33 VkSamplerYcbcrConversion ycbcrConversion() const { return fYcbcrConversion; }
34
35 const char* getResourceType() const override { return "Vulkan Sampler YCbCr Conversion"; }
36
37
38private:
39 VulkanSamplerYcbcrConversion(const VulkanSharedContext*, VkSamplerYcbcrConversion);
40
41 void freeGpuData() override;
42
43 VkSamplerYcbcrConversion fYcbcrConversion;
44};
45} // namespace skgpu::graphite
46
47#endif // skgpu_graphite_VulkanSamplerYcbcrConversion_DEFINED
48
static GraphiteResourceKey MakeYcbcrConversionKey(const VulkanSharedContext *, const VulkanYcbcrConversionInfo &)
static sk_sp< VulkanSamplerYcbcrConversion > Make(const VulkanSharedContext *, const VulkanYcbcrConversionInfo &)