mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Enable (when available) and improve performance of persistently mapped buffer path for the vertex/index buffers used with automatic batching.
--HG-- branch : minor
This commit is contained in:
@@ -54,10 +54,13 @@ public:
|
||||
size_t getSize() const { return bufferSize; }
|
||||
BufferType getMode() const { return mode; }
|
||||
|
||||
virtual size_t getUsableSize() const = 0;
|
||||
virtual MapInfo map(size_t minsize) = 0;
|
||||
virtual size_t unmap(size_t usedsize) = 0;
|
||||
virtual void markUsed(size_t usedsize) = 0;
|
||||
|
||||
virtual void nextFrame() {}
|
||||
|
||||
virtual ptrdiff_t getHandle() const = 0;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user