readPixels method
      
void
readPixels()
      
     
    
    
Implementation
void readPixels(int x, int y, int width, int height, int format, int type, NativeArray? pixels) {
  startCheck('readPixels');
  gl.glReadPixels(x, y, width, height, format, type,pixels?.data ?? nullptr);
  checkError('readPixels');
}