A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texStorage3D below:

WebGL2RenderingContext: texStorage3D() method - Web APIs

WebGL2RenderingContext: texStorage3D() method

Baseline Widely available

Note: This feature is available in Web Workers.

The WebGL2RenderingContext.texStorage3D() method of the WebGL API specifies all levels of a three-dimensional texture or two-dimensional array texture.

Syntax
texStorage3D(target, levels, internalformat, width, height, depth)
Parameters
target

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

level

A GLint specifying the number of texture levels.

internalformat

A GLenum specifying the texture store format. Possible values:

In addition if the WEBGL_compressed_texture_etc extension is supported, the following values are also possible:

width

A GLsizei specifying the width of the texture.

height

A GLsizei specifying the height of the texture.

depth

A GLsizei specifying the depth of the texture.

Return value

None (undefined).

Examples
gl.texStorage3D(gl.TEXTURE_3D, 1, gl.RGB8, 256, 256, 256);
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3