Bug 200252

Summary: [WHLSL] The sign function in the stdlib should always return an int.
Product: WebKit Reporter: Robin Morisset <rmorisset>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Robin Morisset
Reported 2019-07-29 15:55:06 PDT
Currently it always return something of the type of its argument.. which can be float or unsigned. Myles verified that sign(-42.0) is -1, not -1.0 in HLSL.
Attachments
Myles C. Maxfield
Comment 1 2020-05-05 00:42:46 PDT
WHLSL is no longer relevant.
Note You need to log in before you can comment on or make changes to this bug.