Bug 201831 - [WHLSL] modf should not do a cast from float to uint
Summary: [WHLSL] modf should not do a cast from float to uint
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-16 13:04 PDT by Robin Morisset
Modified: 2020-05-05 00:42 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Morisset 2019-09-16 13:04:46 PDT
It is undefined behavior for both floats that are too large to represent, and for negative ones.
We should instead do a proper truncate.
Comment 1 Myles C. Maxfield 2020-05-05 00:42:44 PDT
WHLSL is no longer relevant.