Flutter Engine
The Flutter Engine
vulkan_image.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_IMAGE_H_
6#define FLUTTER_VULKAN_VULKAN_IMAGE_H_
7
8#include "flutter/fml/compiler_specific.h"
9#include "flutter/fml/macros.h"
10#include "flutter/vulkan/procs/vulkan_handle.h"
11
12namespace vulkan {
13
14class VulkanProcTable;
15class VulkanCommandBuffer;
16
18 public:
20
22
23 bool IsValid() const;
24
25 [[nodiscard]] bool InsertImageMemoryBarrier(
26 const VulkanCommandBuffer& command_buffer,
27 VkPipelineStageFlagBits src_pipline_bits,
28 VkPipelineStageFlagBits dest_pipline_bits,
29 VkAccessFlags dest_access_flags,
30 VkImageLayout dest_layout);
31
32 private:
34 VkImageLayout layout_;
35 uint32_t /* mask of VkAccessFlagBits */ access_flags_;
36 bool valid_;
37
38 FML_DISALLOW_COPY_AND_ASSIGN(VulkanImage);
39};
40
41} // namespace vulkan
42
43#endif // FLUTTER_VULKAN_VULKAN_IMAGE_H_
bool IsValid() const
Definition: vulkan_image.cc:26
bool InsertImageMemoryBarrier(const VulkanCommandBuffer &command_buffer, VkPipelineStageFlagBits src_pipline_bits, VkPipelineStageFlagBits dest_pipline_bits, VkAccessFlags dest_access_flags, VkImageLayout dest_layout)
Definition: vulkan_image.cc:30
VulkanImage(VulkanHandle< VkImage > image)
Definition: vulkan_image.cc:12
sk_sp< const SkImage > image
Definition: SkRecords.h:269
VkImageLayout
Definition: vulkan_core.h:1330
VkFlags VkAccessFlags
Definition: vulkan_core.h:2235
VkPipelineStageFlagBits
Definition: vulkan_core.h:2434