Bug 264384

Summary: [WGSL] countLeadingZeros, countOneBits, countTrailingZeros, reverseBits, extractBits, faceForward, insertBits are unimplemented
Product: WebKit Reporter: Mike Wyrzykowski <mwyrzykowski>
Component: WebGPUAssignee: Tadeu Zagallo <tzagallo>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

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.