blitFramebuffer method

void blitFramebuffer(
  1. GLint srcX0,
  2. GLint srcY0,
  3. GLint srcX1,
  4. GLint srcY1,
  5. GLint dstX0,
  6. GLint dstY0,
  7. GLint dstX1,
  8. GLint dstY1,
  9. GLbitfield mask,
  10. GLenum filter,
)

The WebGL2RenderingContext.blitFramebuffer() method of the WebGL 2 API transfers a block of pixels from the read framebuffer to the draw framebuffer. Read and draw framebuffers are bound using WebGLRenderingContext.bindFramebuffer.

Implementation

external void blitFramebuffer(
  GLint srcX0,
  GLint srcY0,
  GLint srcX1,
  GLint srcY1,
  GLint dstX0,
  GLint dstY0,
  GLint dstX1,
  GLint dstY1,
  GLbitfield mask,
  GLenum filter,
);