WebGL2RenderingContext: uniform[1234][uif][v]() method doesn't mention typed arrays for f or i variants #36208
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/uniform
What specific section or headline is this issue about?
WebGL2RenderingContext: uniform[1234][uif][v]()
methodWhat information was incorrect, unhelpful, or incomplete?
The
data
parameter is documented as only supportingNumber
(for non-v
variants) orUint32Array
(foruv
variants). This appears incomplete.What did you expect to see?
My expectation (and the apparent behavior of the function in practice) is that it also accepts
Float32Array
forfv
variants andInt32Array
foriv
variants.Do you have any supporting links, references, or citations?
The WebGL variant of the function includes the extra array types: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/webgl2renderingcontext/uniform
The text was updated successfully, but these errors were encountered: