NEW262084
[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
Radar WebKit Bug Importer
Comment 1 2023-09-25 16:44:30 PDT
Note You need to log in before you can comment on or make changes to this bug.