Flutter Engine
The Flutter Engine
VulkanFramebuffer.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_VulkanFramebuffer_DEFINED
9#define skgpu_graphite_VulkanFramebuffer_DEFINED
10
12
14
15namespace skgpu::graphite {
16
17class VulkanSharedContext;
18
19/**
20 * Resource wrapper for VkFramebuffer
21*/
23public:
26
27 VkFramebuffer framebuffer() {
28 return fFramebuffer;
29 }
30
31 const char* getResourceType() const override { return "Vulkan Framebuffer"; }
32
33private:
34 VulkanFramebuffer(const VulkanSharedContext*, VkFramebuffer);
35 void freeGpuData() override;
36
37 const VulkanSharedContext* fSharedContext;
38 VkFramebuffer fFramebuffer;
39};
40} // namespace skgpu::graphite
41
42#endif // skgpu_graphite_VulkanFramebuffer_DEFINED
const char * getResourceType() const override
static sk_sp< VulkanFramebuffer > Make(const VulkanSharedContext *, const VkFramebufferCreateInfo &)