compressedTexSubImage2D method
void
compressedTexSubImage2D()
The WebGLRenderingContext.compressedTexSubImage2D()
method of the
WebGL API
specifies a
two-dimensional sub-rectangle for a texture image in a compressed format.
Compressed image formats must be enabled by WebGL extensions before using this method or a WebGL2RenderingContext must be used.
Implementation
external void compressedTexSubImage2D(
GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
ArrayBufferView data,
);