OVR_multiview2: framebufferTextureMultiviewOVR() method

The OVR_multiview2.framebufferTextureMultiviewOVR() method of the WebGL API attaches a multiview texture to a WebGLFramebuffer.

Syntax

js
framebufferTextureMultiviewOVR(target, attachment, texture, level, baseViewIndex, numViews)

Parameters

target

A GLenum specifying the binding point (target). Possible values:

gl.FRAMEBUFFER

Collection buffer data storage of color, alpha, depth and stencil buffers used to render an image.

gl.DRAW_FRAMEBUFFER

Equivalent to gl.FRAMEBUFFER. Used as a destination for drawing, rendering, clearing, and writing operations.

gl.READ_FRAMEBUFFER

Used as a source for reading operations.

attachment

A GLenum specifying the attachment point for the texture. Possible values:

When using the WEBGL_depth_texture extension:

texture

A WebGLTexture object whose image to attach.

level

A GLint specifying the mipmap level of the texture image to be attached. Must be 0.

baseViewIndex

A GLint specifying the base view index of the framebuffer object attachment.

numViews

A GLsizei specifying the number of views of the framebuffer object attachment.

Return value

None (undefined).

Exceptions

Examples

js
ext.framebufferTextureMultiviewOVR(
  gl.DRAW_FRAMEBUFFER,
  gl.COLOR_ATTACHMENT0,
  colorTex,
  0,
  0,
  2,
);

Specifications

See also