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 @@

Texture objects

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. + +

+ [throws] undefined texElementImage2D(GLenum target, GLint level, GLint internalformat, GLenum format, GLenum type, + Element element); +
+
+

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 FormatFormatType
RGBRGBUNSIGNED_BYTE
RGBARGBAUNSIGNED_BYTE
RGB16FRGBHALF_FLOAT
FLOAT
RGB32FRGBFLOAT
RGBA16FRGBAHALF_FLOAT
FLOAT
RGBA32FRGBAFLOAT
+

+ If pixel store parameter constraints are not met, + generates an INVALID_OPERATION error. +

+
+ +
+ [throws] undefined texElementImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, + GLenum format, GLenum type, Element element); +
+
+

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. +

+
+

Programs and Shaders

diff --git a/specs/latest/2.0/webgl2.idl b/specs/latest/2.0/webgl2.idl index c810cbf62..9b6f0feb3 100644 --- a/specs/latest/2.0/webgl2.idl +++ b/specs/latest/2.0/webgl2.idl @@ -558,6 +558,11 @@ interface mixin WebGL2RenderingContextOverloads optional unsigned long long srcOffset = 0, optional GLuint srcLengthOverride = 0); + undefined texElementImage2D(GLenum target, GLint level, GLint internalformat, GLenum format, GLenum type, + Element element); + undefined texElementImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, + GLenum format, GLenum type, Element element); + undefined uniform1fv(WebGLUniformLocation? location, Float32List data, optional unsigned long long srcOffset = 0, optional GLuint srcLength = 0); undefined uniform2fv(WebGLUniformLocation? location, Float32List data, optional unsigned long long srcOffset = 0,