I have ported the contents of OpenGL (webGL) to Metal and have a question. When doing the following in OpenGL (webGL),
-I want to bind and render the framebuffer in OpenGL (webGL).
gl.bindFramebuffer(gl.FLAMEBUFFER, buffer[0].framebuffer)
gl.useProgram(…)
gl.enableAttribute(VBO, Location, attStride)
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, IBO)
gl.uniform2fv....
gi.drawElement(gl.TRAIANGLES,..., gl.UNSIGNED_SHORT, 0)
What if you want to do the same with Metal? It's a rudimentary question, but I'd be happy if you could tell me.