[Webkit-unassigned] [Bug 261901] New: [WGSL] Support Synchronization Built-in Functions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 21 12:36:51 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=261901

            Bug ID: 261901
           Summary: [WGSL] Support Synchronization Built-in Functions
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mwyrzykowski at apple.com

[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;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230921/19de4230/attachment.htm>


More information about the webkit-unassigned mailing list