Bug 200256 - [WHLSL] When called with its second argument greater than its third, clamp should return its third argument
Summary: [WHLSL] When called with its second argument greater than its third, clamp sh...
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-07-29 16:13 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-07-29 16:13:05 PDT
For compatibility with HLSL (and with the spec now that I've specified HLSL behavior).
In other words, "max(min(upper, x), lower)" must become "min(max(x, lower), upper)".
Comment 1 Robin Morisset 2019-08-01 11:40:14 PDT
I've changed the spec to follow SPIR-V behavior (undefined value returned in that case), so this is no longer a "bug", but it would still be slightly nicer for portability to follow HLSL.
Comment 2 Myles C. Maxfield 2020-05-05 00:42:30 PDT
WHLSL is no longer relevant.