test vertex func reports vao7ms ‣
const {gl, tagObject} = createContext();
const ext = gl.getExtension('OES_vertex_array_object');
if (!ext) {
throw new Error('sphere-data');
}
const vao = ext.createVertexArrayOES();
tagObject(vao, 'sphere-data');
const buf = gl.createBuffer();
tagObject(buf, 'normals');
ext.bindVertexArrayOES(vao);
gl.bindBuffer(gl.ARRAY_BUFFER, buf);
assertThrowsWith(() => {
gl.vertexAttribPointer(3, 5, gl.FLOAT, false, 0, 0);
}, [/sphere-data/]);
test vertex func reports vao 26ms ‣
const {gl, tagObject} = createContext();
const ext = gl.getExtension('OES_vertex_array_object');
if (!ext) {
throw new Error('sphere-data');
}
const vao = ext.createVertexArrayOES();
tagObject(vao, 'sphere-data');
const buf = gl.createBuffer();
tagObject(buf, 'normals');
ext.bindVertexArrayOES(vao);
gl.bindBuffer(gl.ARRAY_BUFFER, buf);
assertThrowsWith(() => {
gl.vertexAttribPointer(3, 4, gl.FLOATs, false, 0, 0);
}, [/sphere-data/]);