Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL2RenderingContext: uniform[1234][uif][v]() method doesn't mention typed arrays for f or i variants #36208

Open
ixchow opened this issue Oct 5, 2024 · 0 comments
Labels
area: WebGL Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@ixchow
Copy link

ixchow commented Oct 5, 2024

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]() method

What information was incorrect, unhelpful, or incomplete?

The data parameter is documented as only supporting Number (for non-v variants) or Uint32Array (for uv 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 for fv variants and Int32Array for iv 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
@ixchow ixchow added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 5, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label Oct 5, 2024
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! area: WebGL and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: WebGL Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

2 participants