在 javascript 中,我有以下用于 CPU 缓冲区的数组:
var nVerts = this.m_countVertices;
this.m_bindPositions = new Float32Array(nVerts * 3);
this.m_bindNormals = new Float32Array(nVerts * 3);
this.m_deformedPositions = new Float32Array(nVerts * 3);
你推荐在objective-c中使用什么,而不是Float32Array。一个 NSArray 就足够了吗?
谢谢