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

Fix WGSL frexp and modf that returns a struct #5096

Merged

Conversation

jkwak-work
Copy link
Collaborator

Two WGSL functions have little different behavior compared to other shader languages: frexp and modf. They return a struct to return two values.

For more details, see:
https://www.w3.org/TR/WGSL/#frexp-builtin
https://www.w3.org/TR/WGSL/#modf-builtin

Two WGSL functions have little different behavior compared to other
shader languages: frexp and modf.  They return a struct to return
two values.
@jkwak-work jkwak-work added the pr: non-breaking PRs without breaking changes label Sep 17, 2024
@jkwak-work jkwak-work self-assigned this Sep 17, 2024
@jkwak-work
Copy link
Collaborator Author

There might be a better way to implement this.
If you have any suggestions, please let me know.

@jkwak-work jkwak-work merged commit 2f455d3 into shader-slang:master Sep 18, 2024
13 checks passed
@jkwak-work jkwak-work deleted the fix/wgsl_intrinsic_frexp_modf branch September 18, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants