Mesh:getVertexBuffer

Edit

Returns the Buffer object that holds the data for the vertices in the Mesh.

If a Mesh uses the cpu storage mode, the vertex buffer is internal to the Mesh and this function will return nil. This ensures that the CPU data for the Mesh does not get out of sync with the GPU data in the Buffer.

buffer = Mesh:getVertexBuffer()

Arguments

None

Returns

NameTypeDescription
bufferBuffer The vertex buffer.

See also