From d162d7711177c414e5ea9a3876dc6fa3414c937e Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 28 Oct 2021 09:50:44 +0800 Subject: *misc --- Runtime/Graphics/VertexBuffer.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Runtime/Graphics/VertexBuffer.h') 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 -- cgit v1.1-26-g67d0