9 #include "flutter/fml/macros.h"
10 #include "flutter/fml/trace_event.h"
23 std::weak_ptr<Context> context,
25 VmaAllocationInfo info);
37 VmaAllocationInfo info = {};
42 : buffer(
std::move(p_buffer)), info(p_info) {}
45 std::swap(o.buffer, buffer);
46 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,
61 size_t offset)
override;
64 bool SetLabel(
const std::string& label)
override;
67 bool SetLabel(
const std::string& label, Range range)
override;