setVertices method
Binds an already-uploaded vertex buffer view as this geometry's vertex source.
Use this when the caller manages its own gpu.DeviceBuffer (for
example, when packing many meshes into a single buffer). For a
turn-key path that allocates and uploads in one step, see
uploadVertexData.
Implementation
void setVertices(gpu.BufferView vertices, int vertexCount) {
_vertices = vertices;
_vertexCount = vertexCount;
}