WebGPU bugreport: problem with uniform buffer

Hi,

in this WebGPU example: https://skal65535.github.io/curl/index_bug_safari.html the lighting is wrong compared to Chrome's reference version.

I narrowed the problem to the uniform value 'params.specular' at line 515 not being equal to the expected value 1.2f. The value is set a line at line 1078 in the uniform buffer.

Platform: MacBook M1 Pro Sonoma 14.4.1 (23E224) Safari Technology Preview: Release 194 (Safari 17.4, WebKit 19619.1.11.111.2)

Works ok with Chrome 124.0.6367.156 (Official Build) (arm64).

Hi, thanks for reporting this issue. I've filed https://bugs.webkit.org/show_bug.cgi?id=274174 to track this in WebKit / Safari

I believe https://bug-274174-attachments.webkit.org/attachment.cgi?id=471404 and https://bug-274174-attachments.webkit.org/attachment.cgi?id=471403 appear correct, yes?

Yes, they are indeed correct.

Oh great, we will have a fix for this in a future version of Safari Technology Preview or you are welcome to build WebKit if so inclined.

Thanks a lot for the prompt fix!

I have another version live right now, that is showing another a similar problem: https://skal65535.github.io/curl/index.html of discoloration. Chrome is fine.

Same versions.

I'll wait for the future fixed version of Safari Technology Preview to test that further.

Thanks again! skal/

Thank you for reporting the issues. It appears the bug fix also fixes that issue:

We very much appreciate any continued reports of issues you may find, thanks again!

WebGPU bugreport: problem with uniform buffer
 
 
Q