code: function updateRenderbuffer(ctx, renderbuffer, opts) {
    Object.assign(renderbuffer, opts)
  
    const gl = ctx.gl
  
    assert(
      renderbuffer.pixelFormat === ctx.PixelFormat.Depth16,
      'Only PixelFormat.Depth16 is supported for renderbuffers'
    )
    renderbuffer.format = gl.DEPTH_COMPONENT16
  
    gl.bindRenderbuffer(renderbuffer.target, renderbuffer.handle)
    gl.renderbufferStorage(
      renderbuffer.target,
      renderbuffer.format,
      renderbuffer.width,
      renderbuffer.height
    )
    gl.bindRenderbuffer(renderbuffer.target, null)
  }
docs: opts = { width: int, height: int, pixelFormat: PixelFormat }