diff options
| author | kaizhangNV <149626564+kaizhangNV@users.noreply.github.com> | 2024-11-05 13:40:08 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-05 11:40:08 -0800 |
| commit | 0336a3a8db7f50dcbb21b11a94fb1e4f31d946eb (patch) | |
| tree | 81f433a0d86ddfab9137e9052e7f299e5ce2235c /tools | |
| parent | fc7de92000aa378da32c830ad0999eb46729ad43 (diff) | |
Fix issue of infinity float literal (#5489)
* Fix issue of infinity float literal
* add parameters for the test
* Correct the way to construct inf and nan
In WGSL, expression of "1.0/0.0" is not allowed, it will report compile error,
so to construct infinity or nan, we have to assign the float literal to a variable
and then use it to bypass the compile error.
By doing so, we add getInfinity and getNan functions to the builtin
prelude to wgsl.
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
