Bug 233405

Summary: Link Error: Internal error…Metal backend
Product: WebKit Reporter: Garett Bass <garettbass>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: dino, jonlee, kbr, kkinnunen, kpiddington, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: iOS 15   
URL: http://donw.io/post/sphere-indexing-2/

Description Garett Bass 2021-11-20 22:10:00 PST
http://donw.io/post/sphere-indexing-2/

The above site displays the following message instead of rendering WebGL:

“Status: Errors
Link Error: Internal error compiling shader with Metal backend.
Please submit this shader or website as a bug to https://bugs.webkit.org”

iOS 15.1 iPad Pro (11-inch) (2nd generation)
Comment 1 Radar WebKit Bug Importer 2021-11-22 18:10:37 PST
<rdar://problem/85687082>
Comment 2 Kimmo Kinnunen 2021-11-22 23:58:37 PST
Thanks for the report.
You can most likely work around this by changing the function name "and" to something else, like "myand":

bool and(int x, int y)
{
	return mod(float(x), exp2(float(y))) != 0.0;
}

The fix will be shipped in a future update.

*** This bug has been marked as a duplicate of bug 229378 ***