code: function(opts) {
        log('texture2D', opts)
        opts.target = gl.TEXTURE_2D
        return this.resource(createTexture(this, opts))
      }
docs: texture2D({ data: TypedArray, width: Int, height: Int, format: PixelFormat, flipY: Boolean })