-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WGSL] Texture read needs unsigned coordinates
https://bugs.webkit.org/show_bug.cgi?id=261885 rdar://115843632 Reviewed by Dan Glastonbury. We convert textureLoad(texture, coordinate) into texture.read(coordinate), but the problem is that texture load allows either signed or unsigned values in the coordinate argument, but metal only allows unsigned values. * Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp: (WGSL::Metal::FunctionDefinitionWriter::visit): Canonical link: https://commits.webkit.org/268388@main
- Loading branch information
1 parent
2a66767
commit 88ae5ff
Showing
2 changed files
with
59 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters