WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
261901
[WGSL] Support Synchronization Built-in Functions
https://bugs.webkit.org/show_bug.cgi?id=261901
Summary
[WGSL] Support Synchronization Built-in Functions
Mike Wyrzykowski
Reported
2023-09-21 12:36:51 PDT
[WGSL] Support Synchronization Built-in Functions -
https://www.w3.org/TR/WGSL/#sync-builtin-functions
First two are easy: [WGSL] => [MSL] mapping * storageBarrier => threadgroup_barrier(mem_flags::mem_device) * workgroupBarrier => threadgroup_barrier(mem_flags::mem_threadgroup) Last one expands to this I think * workgroupUniformLoad => uint metalWorkgroupUniformLoad(threadgroup T* const p) { threadgroup_barrier(mem_flags::mem_threadgroup); const T result = *p; threadgroup_barrier(mem_flags::mem_threadgroup); return result; }
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-09-21 12:37:10 PDT
<
rdar://problem/115855666
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug