21 std::weak_ptr<Context> context,
23 VmaAllocationInfo
info);
35 VmaAllocationInfo info = {};
40 : buffer(
std::move(p_buffer)), info(p_info) {}
42 BufferResource(BufferResource&& o) {
43 std::swap(o.buffer, buffer);
44 std::swap(o.info, info);
52 std::weak_ptr<Context> context_;
53 UniqueResourceVKT<BufferResource> resource_;
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;
static const uint8_t buffer[]