WebGL2RenderingContext»texSubImage3D page: List of valid "format" parameter values does not match WebGL2 spec #19610
Labels
area: WebGL
Content:WebAPI
Web API docs
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D
What specific section or headline is this issue about?
Parameters
What information was incorrect, unhelpful, or incomplete?
The "Parameters" section of the
WebGL2RenderingContext.texSubImage3D()
documentation appears to list values that do not agree with the documentation provided by Khronos. They also do not seem to agree with the values linked via the "WebGL 2.0 Specification 3.7.6" link under the "Specifications" section.For example, Tables 1 & 2 of the
glTexImage3D()
method (indicated as the authoritative source of information regarding the legal combinations of theformat
andtype
parameters for WebGL2'stexSubImage3D()
method) includeformat
values of e.g.GL_RED
andGL_RED_INTEGER
that are not listed in the MDN documentation for this method.Furthermore, the MDN documentation claims that
gl.R8
,gl.R16F
,gl.R32F
etc are validformat
parameters - but these values are not listed as validformat
parameters by Khronos. Indeed, trying to usegl.R8
as aformat
parameter with atype
parameter ofgl.UNSIGNED_BYTE
anduint8
source data produced the following error in Chrome:... but using
gl.RED_INTEGER
(as per the Khronos specifications) fixed that error message.What did you expect to see?
Values for
format
that agree with the Khronos documentation for this method.Do you have any supporting links, references, or citations?
Khronos documentation for
texSubImage3D
: https://registry.khronos.org/webgl/specs/latest/2.0/#3.7.6The documentation above links to the Khronos documentation for Tables 1 & 2 of the
glTexImage3D()
documentation:https://registry.khronos.org/OpenGL-Refpages/es3.0/html/glTexImage3D.xhtml
These tables contain the "valid" values (and their combinations) for the
format
andtype
parameters oftexSubImage3D()
.Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/webgl2renderingcontext/texsubimage3d
The text was updated successfully, but these errors were encountered: