WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
262084
[WGSL] 1D/2D/3D texture read() function expects unsigned values
https://bugs.webkit.org/show_bug.cgi?id=262084
Summary
[WGSL] 1D/2D/3D texture read() function expects unsigned values
Mike Wyrzykowski
Reported
2023-09-25 16:44:14 PDT
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
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-09-25 16:44:30 PDT
<
rdar://problem/116023220
>
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