diff --git a/specs/latest/2.0/index.html b/specs/latest/2.0/index.html index 17087d6d8..66c2b0f87 100644 --- a/specs/latest/2.0/index.html +++ b/specs/latest/2.0/index.html @@ -2210,8 +2210,52 @@
offset is the byte offset into the WebGLBuffer's data store; generates an INVALID_VALUE error if it's less than 0.
The ETC2 and EAC texture formats defined in OpenGL ES 3.0 are not available in WebGL 2.0. + +
Renders the given element to the currently bound WebGLTexture.
+The width and height of the texture are derived from the CSS borderbox of the element at the time of rendering. Add links to whatwg.
+TBD: define state of rendering + security. These will be more links to whatwg
+If this function is called with an HTMLElement that is not a direct descendant of the canvas of the current context, generates an INVALID_OPERATION error.
If a WebGLBuffer is bound to the PIXEL_UNPACK_BUFFER target, generates an INVALID_OPERATION error.
The combination of internalformat, format, and type must be listed in the following table:
+| Internal Format | Format | Type |
|---|---|---|
| RGB | RGB | UNSIGNED_BYTE |
| RGBA | RGBA | UNSIGNED_BYTE |
| RGB16F | RGB | HALF_FLOAT FLOAT |
| RGB32F | RGB | FLOAT |
| RGBA16F | RGBA | HALF_FLOAT FLOAT |
| RGBA32F | RGBA | FLOAT |
+ If pixel store parameter constraints are not met,
+ generates an INVALID_OPERATION error.
+
Renders the given element to the currently bound WebGLTexture.
+The texture is resized to width and height>. Add links to whatwg.
TBD: define state of rendering + security. These will be more links to whatwg
+If this function is called with an HTMLElement that is not a direct descendant of the canvas of the current context, generates an INVALID_OPERATION error.
If a WebGLBuffer is bound to the PIXEL_UNPACK_BUFFER target, generates an INVALID_OPERATION error.
See texElementImage2D for the interpretation of the internalformat, format and type arguments, and notes on the UNPACK_PREMULTIPLY_ALPHA_WEBGL pixel storage parameter.
+ If pixel store parameter constraints are not met,
+ generates an INVALID_OPERATION error.
+