- Home /
Is the Mesh class a wrapped Vertex Buffer Object?
I think I may be slightly confused by this I've been reading a lot of white papers recently and they all refer to Vertex Buffer Objects.
I was wondering, in Unity, is the Mesh class just a wrapped VBO?
Cheers, C.
Answer by Owen-Reynolds · Dec 19, 2012 at 04:20 PM
Mesh is implemented to draw your meshes as quickly as possible, on whichever target machine, using current techniques. The whole point is not to care how. You're trusting Unity Corp.
But, it probably uses Vertex Buffers. Getting the mesh array feels like getting a local copy, since changing it does nothing until mesh=
, which probably triggers a write to the graphics card.
I'd rather say "the implementation uses Vertex buffers." For example, Mesh.Optimize is turning all your tris into tristrips, and so on, which is a whole other thing. Wrapper usually means that you just prettied up some things, with all functions 1 line long. Like Stack is a wrapper around Dequeue.