I want to read back the data stored in the GL.bufferData array in JavaScript.
Here is my code
var TRIANGLE_VERTEX = geometryNode["triangle_buffer"];
GL.bindBuffer(GL.ARRAY_BUFFER, TRIANGLE_VERTEX);
GL.bufferData(GL.ARRAY_BUFFER,new Float32Array(vertices),GL.STATIC_DRAW);`
Is it possible in WebGL to read back the buffer data in GPU? If possible then please explain me with a sample code.
How to know the memory size (filled and free) of the GPU in WebGL at run time and how to debug the shader code and data in GPU in WebGL.