]> 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 1e5106a50095b838488fd3c2a95980b5aba8b302..06c128af15ddbab4f5b3479eab6548a36268be96 100644 (file)
@@ -15,8 +15,6 @@ class OpenGLBuffer: public NonCopyable
 protected:
        unsigned id = 0;
 
-       static OpenGLBuffer *scratch_binding;
-
        OpenGLBuffer();
        OpenGLBuffer(OpenGLBuffer &&);
        ~OpenGLBuffer();
@@ -24,6 +22,9 @@ protected:
        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();