framebufferTextureLayer method
void
framebufferTextureLayer(
- GLenum target,
- GLenum attachment,
- WebGLTexture? texture,
- GLint level,
- 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,
);