framebufferTexture2D

abstract fun framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture?, level: GLint)(source)

MDN Reference