Bug 245181

Summary: [Unity] Internal error compiling shader with Metal backend
Product: WebKit Reporter: s.sadariya
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Blocker CC: dino, kbr, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Mac (Intel)   
OS: macOS 12   
See Also: https://bugs.webkit.org/show_bug.cgi?id=237658
Attachments:
Description Flags
Full Shader File which is failing to compile
none
Shader text from docx
none
Unity Build for isolated testcase none

Description s.sadariya 2022-09-14 08:00:52 PDT
Created attachment 462335 [details]
Full Shader File which is failing to compile

Shader in unity webgl build is failing to compile and object becomes invisible in game
i found few resources with solution of replacing all ternary operators with if else 
it worked and mesh/object was visible again but shader was still giving console error.
Comment 1 Kenneth Russell 2022-09-14 10:23:06 PDT
Created attachment 462336 [details]
Shader text from docx

Extracted shader text from original docx attachment
Comment 2 Kenneth Russell 2022-09-14 10:23:49 PDT
Submitter: we don't have a way to translate this shader into something executable in WebGL so I doubt we'll be able to triage your report. A self-contained test case is needed.
Comment 3 s.sadariya 2022-09-19 11:36:42 PDT
I will be soon uploading a self contained test case sorry for late reply
Comment 4 Radar WebKit Bug Importer 2022-09-21 08:01:17 PDT
<rdar://problem/100224259>
Comment 5 s.sadariya 2022-09-28 09:21:09 PDT
Created attachment 462684 [details]
Unity Build for isolated testcase

Isolated Test case 

I was reliably able to reproduce an issue mentioned above
Comment 6 s.sadariya 2022-09-28 09:24:27 PDT
Please go to https://play.unity.com/mg/other/testcasebuild 
to test a build 

I tested on safari 15.4 on mac os 12.6 and got the error ------- GLSL link error: Internal error compiling shader with Metal backend.
Comment 7 s.sadariya 2022-10-20 08:21:52 PDT
Hello ! 

I have Uploaded new build to https://play.unity.com/mg/other/testcasebuild 


Please let me know if you need anything else from my side.