mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Common and VideoCommon: Change texture data from std::vector to Common::UniqueBuffer.
This commit is contained in:
@ -40,6 +40,10 @@ public:
|
||||
|
||||
void assign(PtrType ptr, size_type new_size) { BufferBase{std::move(ptr), new_size}.swap(*this); }
|
||||
void reset(size_type new_size = 0) { BufferBase{new_size}.swap(*this); }
|
||||
void clear() { reset(); }
|
||||
|
||||
// Resize is purposely not provided as it often unnecessarily copies data about to be overwritten.
|
||||
void resize(std::size_t) = delete;
|
||||
|
||||
std::pair<PtrType, size_type> extract()
|
||||
{
|
||||
|
Reference in New Issue
Block a user