Bug 245181 - [Unity] Internal error compiling shader with Metal backend
Summary: [Unity] Internal error compiling shader with Metal backend
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 15
Hardware: Mac (Intel) macOS 12
: P2 Blocker
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-14 08:00 PDT by s.sadariya
Modified: 2022-10-20 08:21 PDT (History)
4 users (show)

See Also:


Attachments
Full Shader File which is failing to compile (142.90 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-09-14 08:00 PDT, s.sadariya
no flags Details
Shader text from docx (419.50 KB, text/plain)
2022-09-14 10:23 PDT, Kenneth Russell
no flags Details
Unity Build for isolated testcase (15.47 MB, application/x-zip-compressed)
2022-09-28 09:21 PDT, s.sadariya
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.