Flutter Engine
The Flutter Engine
vulkan
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
12
namespace
vulkan
{
13
14
class
VulkanProcTable;
15
class
VulkanCommandBuffer;
16
17
class
VulkanImage
{
18
public
:
19
explicit
VulkanImage
(
VulkanHandle<VkImage>
image
);
20
21
~VulkanImage
();
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
:
33
VulkanHandle<VkImage>
handle_;
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_
vulkan::VulkanCommandBuffer
Definition:
vulkan_command_buffer.h:16
vulkan::VulkanHandle< VkImage >
vulkan::VulkanImage
Definition:
vulkan_image.h:17
vulkan::VulkanImage::IsValid
bool IsValid() const
Definition:
vulkan_image.cc:26
vulkan::VulkanImage::~VulkanImage
~VulkanImage()
vulkan::VulkanImage::InsertImageMemoryBarrier
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
vulkan::VulkanImage::VulkanImage
VulkanImage(VulkanHandle< VkImage > image)
Definition:
vulkan_image.cc:12
SkRecords::image
sk_sp< const SkImage > image
Definition:
SkRecords.h:269
vulkan
Definition:
vulkan_handle.cc:7
VkImageLayout
VkImageLayout
Definition:
vulkan_core.h:1330
VkAccessFlags
VkFlags VkAccessFlags
Definition:
vulkan_core.h:2235
VkPipelineStageFlagBits
VkPipelineStageFlagBits
Definition:
vulkan_core.h:2434
Generated on Sun Jun 23 2024 21:56:54 for Flutter Engine by
1.9.4