Flutter Engine
 
Loading...
Searching...
No Matches
vulkan_command_buffer.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_COMMAND_BUFFER_H_
6#define FLUTTER_VULKAN_VULKAN_COMMAND_BUFFER_H_
7
10
11namespace vulkan {
12
13class VulkanProcTable;
14
16 public:
19 const VulkanHandle<VkCommandPool>& pool);
20
22
23 bool IsValid() const;
24
25 VkCommandBuffer Handle() const;
26
27 [[nodiscard]] bool Begin() const;
28
29 [[nodiscard]] bool End() const;
30
31 [[nodiscard]] bool InsertPipelineBarrier(
32 VkPipelineStageFlagBits src_stage_flags,
33 VkPipelineStageFlagBits dest_stage_flags,
34 uint32_t /* mask of VkDependencyFlagBits */ dependency_flags,
35 uint32_t memory_barrier_count,
36 const VkMemoryBarrier* memory_barriers,
37 uint32_t buffer_memory_barrier_count,
38 const VkBufferMemoryBarrier* buffer_memory_barriers,
39 uint32_t image_memory_barrier_count,
40 const VkImageMemoryBarrier* image_memory_barriers) const;
41
42 private:
43 const VulkanProcTable& vk_;
44 const VulkanHandle<VkDevice>& device_;
45 const VulkanHandle<VkCommandPool>& pool_;
47 bool valid_;
48
50};
51
52} // namespace vulkan
53
54#endif // FLUTTER_VULKAN_VULKAN_COMMAND_BUFFER_H_
bool InsertPipelineBarrier(VkPipelineStageFlagBits src_stage_flags, VkPipelineStageFlagBits dest_stage_flags, uint32_t dependency_flags, uint32_t memory_barrier_count, const VkMemoryBarrier *memory_barriers, uint32_t buffer_memory_barrier_count, const VkBufferMemoryBarrier *buffer_memory_barriers, uint32_t image_memory_barrier_count, const VkImageMemoryBarrier *image_memory_barriers) const
VkDevice device
Definition main.cc:69
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27