]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/buffer_backend.h
Multiplex streaming buffer contents on Vulkan
[libs/gl.git] / source / backends / opengl / buffer_backend.h
index f435e868f7c929aac6af96d71302a0c8a79b7cfa..06c128af15ddbab4f5b3479eab6548a36268be96 100644 (file)
@@ -15,14 +15,16 @@ class OpenGLBuffer: public NonCopyable
 protected:
        unsigned id = 0;
 
-       static OpenGLBuffer *scratch_binding;
-
        OpenGLBuffer();
+       OpenGLBuffer(OpenGLBuffer &&);
        ~OpenGLBuffer();
 
        void allocate();
        void sub_data(size_t, size_t, const void *);
 
+       unsigned get_multiplicity() const { return 1; }
+
+       bool can_map() const { return true; }
        void *map();
        bool unmap();