Fix memory::Buffer move constructor

This commit is contained in:
Billy Laws 2022-09-29 21:51:56 +01:00
parent ef0ae30667
commit 7861968c05

View File

@ -27,7 +27,8 @@ namespace skyline::gpu::memory {
constexpr Buffer(Buffer &&other)
: vmaAllocator(std::exchange(other.vmaAllocator, nullptr)),
vmaAllocation(std::exchange(other.vmaAllocation, nullptr)),
vkBuffer(std::exchange(other.vkBuffer, {})) {}
vkBuffer(std::exchange(other.vkBuffer, {})),
span(other) {}
Buffer &operator=(const Buffer &) = delete;