readBuffer method

void readBuffer(
  1. GLenum src
)

The WebGL2RenderingContext.readBuffer() method of the WebGL 2 API selects a color buffer as the source for pixels for subsequent calls to WebGLRenderingContext.copyTexImage2D, WebGLRenderingContext.copyTexSubImage2D, WebGL2RenderingContext.copyTexSubImage3D or WebGLRenderingContext.readPixels.

Implementation

external void readBuffer(GLenum src);