You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/latest/2.0/index.html
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2217,10 +2217,10 @@ <h4>Texture objects</h4>
2217
2217
</dt>
2218
2218
<dd>
2219
2219
<p>Renders the given element to the currently bound WebGLTexture.</p>
2220
-
<p>The width and height of the texture are derived from the CSS width and height of the element at the time of rendering. Add links to whatwg.</p>
2220
+
<p>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.</p>
2221
2221
<p>TBD: define state of rendering + security. These will be more links to whatwg</p><p></p>
2222
-
<p>If no WebGLBuffer is bound to the<code>PIXEL_PACK_BUFFER</code>target, generates an
2223
-
<code>INVALID_OPERATION</code> error.</p>
2222
+
<p>If this function is called with an<code>HTMLElement</code>that is not a direct descendant of the <ahref="#context-canvas">canvas</a> of the current context, generates an<code>INVALID_OPERATION</code> error.</p>
2223
+
<p>If a WebGLBuffer is bound to the <code>PIXEL_UNPACK_BUFFER</code> target, generates an<code>INVALID_OPERATION</code> error.</p>
2224
2224
<p>The combination of <em>internalformat</em>, <em>format</em>, and <em>type</em> must be listed in the following table:</p>
<p>Renders the given element to the currently bound WebGLTexture.</p>
2246
+
<p>The texture is resized to <code>width</code> and <code>height</code>>. Add links to whatwg.</p>
2247
+
<p>TBD: define state of rendering + security. These will be more links to whatwg</p><p></p>
2248
+
<p>If this function is called with an <code>HTMLElement</code> that is not a direct descendant of the <ahref="#context-canvas">canvas</a> of the current context, generates an <code>INVALID_OPERATION</code> error.</p>
2249
+
<p>If a WebGLBuffer is bound to the <code>PIXEL_UNPACK_BUFFER</code> target, generates an <code>INVALID_OPERATION</code> error.</p>
2250
+
<p>See <ahref="../1.0/index.html#TEXTURE_TYPES_FORMATS_FROM_DOM_ELEMENTS_TABLE_2">texElementImage2D</a> for the interpretation of the <em>internalformat</em>, <em>format</em> and <em>type</em> arguments, and notes on the <code>UNPACK_PREMULTIPLY_ALPHA_WEBGL</code> pixel storage parameter. </p>
2251
+
<p>
2252
+
If <ahref="#PIXEL_STORE_PARAM_CONSTRAINTS">pixel store parameter constraints</a> are not met,
2253
+
generates an <code>INVALID_OPERATION</code> error.
0 commit comments