Bug 200256
| Summary: | [WHLSL] When called with its second argument greater than its third, clamp should return its third argument | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Robin Morisset <rmorisset> |
| Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Robin Morisset
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)".
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Robin Morisset
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.
Myles C. Maxfield
WHLSL is no longer relevant.