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:
Alex Szpakowski
2017-09-03 18:23:54 -03:00
parent 9bb105711a
commit b4f8f08b70
8 changed files with 230 additions and 77 deletions
+3
View File
@@ -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: