From 51ced5a191078ce4ef08d57e343e91db007f556f Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 27 Oct 2021 19:30:06 +0800 Subject: *misc --- Runtime/Graphics/VertexBuffer.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Runtime/Graphics/VertexBuffer.h') diff --git a/Runtime/Graphics/VertexBuffer.h b/Runtime/Graphics/VertexBuffer.h index 9179e0d..cf33cc5 100644 --- a/Runtime/Graphics/VertexBuffer.h +++ b/Runtime/Graphics/VertexBuffer.h @@ -7,7 +7,7 @@ #include "../Shaders/ShaderChannel.h" #include "OpenGL.h" -#include "GpuDataBuffer.h" +#include "GPUDataBuffers.h" enum VertexAttr { @@ -62,7 +62,8 @@ public: private: VertexBufferType m_Type; - GPU::DataBuffer *m_VB, *m_IB;// vertex buffer and index buffer + VBO *m_VB; + IBO *m_IB;// vertex buffer and index buffer }; @@ -87,7 +88,8 @@ private: enum { DataBufferThreshold = 1024 }; // shared vbo and ibo - GPU::DataBuffer *m_CurVB, *m_CurIB; + VBO *m_CurVB; + IBO *m_CurIB; // restore vbo and ibo data if not using pinned memory mapping std::vector m_CurVBData; -- cgit v1.1-26-g67d0