#include <vulkan_image.h>
Definition at line 17 of file vulkan_image.h.
◆ VulkanImage()
vulkan::VulkanImage::VulkanImage |
( |
VulkanHandle< VkImage > |
image | ) |
|
|
explicit |
Definition at line 12 of file vulkan_image.cc.
13 : handle_(std::move(
image)),
15 access_flags_(0),
16 valid_(false) {
17 if (!handle_) {
18 return;
19 }
20
21 valid_ = true;
22}
sk_sp< const SkImage > image
@ VK_IMAGE_LAYOUT_UNDEFINED
◆ ~VulkanImage()
vulkan::VulkanImage::~VulkanImage |
( |
| ) |
|
|
default |
◆ InsertImageMemoryBarrier()
Definition at line 30 of file vulkan_image.cc.
35 {
38 .pNext = nullptr,
39 .srcAccessMask = access_flags_,
40 .dstAccessMask = dest_access_flags,
41 .oldLayout = layout_,
42 .newLayout = dest_layout,
45 .image = handle_,
47 };
48
49 bool success = command_buffer.InsertPipelineBarrier(
50 src_pipline_bits,
51 dest_pipline_bits,
52 0,
53 0,
54 nullptr,
55 0,
56 nullptr,
57 1,
58 &image_memory_barrier
59 );
60
61 if (success) {
62 access_flags_ = dest_access_flags;
63 layout_ = dest_layout;
64 }
65
66 return success;
67}
@ VK_IMAGE_ASPECT_COLOR_BIT
#define VK_QUEUE_FAMILY_IGNORED
@ VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER
◆ IsValid()
bool vulkan::VulkanImage::IsValid |
( |
| ) |
const |
The documentation for this class was generated from the following files: