+ TestGraphicsBuffer(TraceCallStack& callStack, TestGlAbstraction& glAbstraction, uint32_t size, Graphics::BufferUsageFlags usage);
+ void Bind();
+ void Unbind();
+ void Upload(uint32_t offset, uint32_t size);
+ GLenum GetTarget();
+
+ bool IsCPUAllocated() const
+ {
+ return true;
+ }
+
+ void BindAsUniformBuffer(const TestGraphicsProgram* program) const;
+
+ TraceCallStack& mCallStack;
+ TestGlAbstraction& mGl;
+ std::vector<uint8_t> memory;
+ Graphics::BufferUsageFlags mUsage;
+ GLuint mId{0};
+ bool mCreated{false};