5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_BUFFER_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_BUFFER_VK_H_
21 std::weak_ptr<Context> context,
23 VmaAllocationInfo info);
35 VmaAllocationInfo info = {};
40 : buffer(
std::move(p_buffer)), info(p_info) {}
43 std::swap(o.buffer, buffer);
44 std::swap(o.info, info);
52 std::weak_ptr<Context> context_;
53 UniqueResourceVKT<BufferResource> resource_;
56 uint8_t* OnGetContents()
const override;
59 bool OnCopyHostBuffer(
const uint8_t* source,
64 bool SetLabel(
const std::string& label)
override;
67 bool SetLabel(
const std::string& label, Range range)
override;
70 void Flush(std::optional<Range> range)
const override;
73 void Invalidate(std::optional<Range> range)
const override;
82 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_BUFFER_VK_H_