[Webkit-unassigned] [Bug 262084] New: [WGSL] 2D texture read() function expects unsigned values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 25 16:44:14 PDT 2023


            Bug ID: 262084
           Summary: [WGSL] 2D texture read() function expects unsigned
           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

The WGSL specification for https://www.w3.org/TR/WGSL/#textureload allows for signed and unsigned values, but Metal only allows for unsigned values.

This results in the following error opening https://webgpu.github.io/webgpu-samples/samples/reversedZ -

MSL compilation error: Error Domain=MTLLibraryErrorDomain Code=3 "program_source:12:27: error: no matching member function for call to 'read'
    float local1 = local0.read(vec<int, 2>(floor(parameter0.xy)), 0);

if 'vec<int, 2>' was 'vec<uint, 2>' then it would compile

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/20230925/480ea92d/attachment-0001.htm>

More information about the webkit-unassigned mailing list