framebufferTextureLayer method

void framebufferTextureLayer(
  1. GLenum target,
  2. GLenum attachment,
  3. WebGLTexture? texture,
  4. GLint level,
  5. GLint layer,
)

The WebGL2RenderingContext.framebufferTextureLayer() method of the WebGL 2 API attaches a single layer of a texture to a framebuffer.

This method is similar to WebGLRenderingContext.framebufferTexture2D, but only a given single layer of the texture level is attached to the attachment point.

Implementation

external void framebufferTextureLayer(
  GLenum target,
  GLenum attachment,
  WebGLTexture? texture,
  GLint level,
  GLint layer,
);