summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/VertexBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/VertexBuffer.h')
-rw-r--r--Runtime/Graphics/VertexBuffer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Runtime/Graphics/VertexBuffer.h b/Runtime/Graphics/VertexBuffer.h
index 382ca39..5e4fdf2 100644
--- a/Runtime/Graphics/VertexBuffer.h
+++ b/Runtime/Graphics/VertexBuffer.h
@@ -12,6 +12,8 @@
#include "CustomVertexLayout.h"
#include "Primitive.h"
+// 实际使用过程中,通常是一个VBO和一个IBO一起,submesh对应的是IBO中的不同的段,而不是不同的IBO
+
class VertexBuffer
{
public:
@@ -29,9 +31,8 @@ public:
private:
VertexBufferType m_Type;
- GPU::DataBuffer *m_VB;
- GPU::DataBuffer *m_IB;// vertex buffer and index buffer
-
+ GPU::DataBuffer* m_VB;
+ GPU::DataBuffer* m_IB;
};
#endif \ No newline at end of file