1 #ifndef MSP_GL_BUFFER_BACKEND_H_
2 #define MSP_GL_BUFFER_BACKEND_H_
4 #include <msp/core/noncopyable.h>
9 class OpenGLBuffer: public NonCopyable
11 friend class OpenGLPipelineState;
12 friend class OpenGLTexture2D;
13 friend class OpenGLVertexSetup;
18 static OpenGLBuffer *scratch_binding;
24 void sub_data(size_t, size_t, const void *);
29 void set_debug_name(const std::string &);
32 static void unbind_scratch();
35 using BufferBackend = OpenGLBuffer;