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

wgsl: float to int conversion: now maps to a value in original type #4189

Open
dneto0 opened this issue Feb 18, 2025 · 0 comments
Open

wgsl: float to int conversion: now maps to a value in original type #4189

dneto0 opened this issue Feb 18, 2025 · 0 comments

Comments

@dneto0
Copy link
Contributor

dneto0 commented Feb 18, 2025

This is a change of existing behaviour in the WGSL spec.
See gpuweb/gpuweb#5073

The differences are:

  • too-high float to u32 maps to 4294967040 instead of 4294967295
  • too-high float to i32 maps to 2147483520 instead of 2147483647
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