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

swizzling assignment #64

Open
mighdoll opened this issue Jan 14, 2025 · 0 comments
Open

swizzling assignment #64

mighdoll opened this issue Jan 14, 2025 · 0 comments

Comments

@mighdoll
Copy link
Contributor

swizzing assignment for WGSL or WESL has been mentioned several times on various discussion boards:

v.xz = rotate(v.xz);

(Here's a recent request on matrix.)

Could we support those in WESL and lower them to WGSL? e.g.

// v.xz = rotate(v.xz);
{
  let temp = rotate(v.xz);
  v.x = temp[0];
  v.z = temp[1];
}
@mighdoll mighdoll added this to the M1 milestone Jan 14, 2025
@mighdoll mighdoll removed this from the M1 milestone Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant