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

Minor but confusing typos in an example on the WGSL page #179

Open
tomholcomb opened this issue Oct 14, 2024 · 0 comments
Open

Minor but confusing typos in an example on the WGSL page #179

tomholcomb opened this issue Oct 14, 2024 · 0 comments

Comments

@tomholcomb
Copy link
Contributor

The example code under the vector construction heading on the WGSL page has three minor typos that I'd like to fix:

The sample says:

let a = vec4f(1, 2, 3, 4);
let b = vec2f(2, 3);
let c = vec4f(1, b, 4);
let d = vec2f(1, a.yz, 4);
let e = vec2f(a.xyz, 4);
let f = vec2f(1, a.yzw);

and I believe it should say:

let a = vec4f(1, 2, 3, 4);
let b = vec2f(2, 3);
let c = vec4f(1, b, 4);
let d = vec4f(1, a.yz, 4);
let e = vec4f(a.xyz, 4);
let f = vec4f(1, a.yzw);

In others words, d, e, and f are vec4fs, not vec2fs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant