Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
vulkan_backbuffer.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_VULKAN_VULKAN_BACKBUFFER_H_
6#define FLUTTER_VULKAN_VULKAN_BACKBUFFER_H_
7
8#include <array>
9
10#include "flutter/fml/compiler_specific.h"
11#include "flutter/fml/macros.h"
12#include "flutter/vulkan/procs/vulkan_handle.h"
16
17namespace vulkan {
18
20 public:
24
26
27 bool IsValid() const;
28
29 [[nodiscard]] bool WaitFences();
30
31 [[nodiscard]] bool ResetFences();
32
34
36
38
40
42
44
45 private:
46 const VulkanProcTable& vk_;
47 const VulkanHandle<VkDevice>& device_;
48 std::array<VulkanHandle<VkSemaphore>, 2> semaphores_;
49 std::array<VulkanHandle<VkFence>, 2> use_fences_;
50 VulkanCommandBuffer usage_command_buffer_;
51 VulkanCommandBuffer render_command_buffer_;
52 bool valid_;
53
54 bool CreateSemaphores();
55
56 bool CreateFences();
57
59};
60
61} // namespace vulkan
62
63#endif // FLUTTER_VULKAN_VULKAN_BACKBUFFER_H_
AutoreleasePool pool
VulkanCommandBuffer & GetUsageCommandBuffer()
const VulkanHandle< VkSemaphore > & GetUsageSemaphore() const
const VulkanHandle< VkFence > & GetUsageFence() const
const VulkanHandle< VkSemaphore > & GetRenderSemaphore() const
VulkanCommandBuffer & GetRenderCommandBuffer()
const VulkanHandle< VkFence > & GetRenderFence() const
VkDevice device
Definition main.cc:53
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27