Bug 264384 - [WGSL] countLeadingZeros, countOneBits, countTrailingZeros, reverseBits, extractBits, faceForward, insertBits are unimplemented
Summary: [WGSL] countLeadingZeros, countOneBits, countTrailingZeros, reverseBits, extr...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tadeu Zagallo
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-07 22:05 PST by Mike Wyrzykowski
Modified: 2023-11-09 00:11 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Wyrzykowski 2023-11-07 22:05:26 PST
maybe obvious but here are the WGSL -> MSL translations:

countLeadingZeros -> clz
countOneBits -> popcount
countTrailingZeros -> ctz
reverseBits -> reverse_bits
extractBits -> extract_bits
faceForward -> faceforward
insertBits -> insert_bits
Comment 1 Radar WebKit Bug Importer 2023-11-07 22:05:43 PST
<rdar://problem/118098831>
Comment 2 Tadeu Zagallo 2023-11-08 07:25:22 PST
Pull request: https://github.com/WebKit/WebKit/pull/20163
Comment 3 EWS 2023-11-09 00:11:05 PST
Committed 270427@main (e5c11b80e43b): <https://commits.webkit.org/270427@main>

Reviewed commits have been landed. Closing PR #20163 and removing active labels.