]> git.tdb.fi Git - gldbg.git/blobdiff - flavors/gl/source/bufferstate.h
Track uniform buffer bindings
[gldbg.git] / flavors / gl / source / bufferstate.h
index bf0e1ec1050b9eb77bb396323537b8e3ef0eae3d..18013a77dfb29445ee20271ada9543eaa6ca42f0 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <string>
 #include <vector>
+#include "autoconstptr.h"
 #include "opengl.h"
 
 struct ArrayState;
@@ -46,4 +47,13 @@ struct BufferState
        std::string describe() const;
 };
 
+struct BufferBindingState
+{
+       AutoConstPtr<BufferState> buffer;
+       unsigned offset;
+       unsigned size;
+
+       BufferBindingState();
+};
+
 #endif