[Webkit-unassigned] [Bug 241728] New: WebGL Internal error compiling shader with Metal backend.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 17 14:34:05 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=241728
Bug ID: 241728
Summary: WebGL Internal error compiling shader with Metal
backend.
Product: WebKit
Version: Safari 15
Hardware: Mac (Intel)
OS: macOS 12
Status: NEW
Severity: Normal
Priority: P2
Component: WebGL
Assignee: webkit-unassigned at lists.webkit.org
Reporter: cdyk-bugzilla at protonmail.com
CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com
On Safari 15 (both MacOs 12 and iOS 15.5), my shaders have started to fail linking with the message "Internal error compiling shader with Metal backend". They work fine on chrome and firefox.
I have reduced one shader to the following repro case (https://jsfiddle.net/cdyk1/12whq53t/11/):
const canvas = document.getElementById("foo");
const gl = canvas.getContext("webgl2")
const vs = gl.createShader(gl.VERTEX_SHADER);
gl.shaderSource(vs, `#version 300 es
precision highp float;
in vec3 a_POSITION0;
void main()
{
gl_Position = vec4(a_POSITION0, 1.0);
}
`);
gl.compileShader(vs);
console.log(gl.getShaderInfoLog(vs));
const fs = gl.createShader(gl.FRAGMENT_SHADER);
gl.shaderSource(fs, `#version 300 es
precision highp float;
uniform MaterialParameters {
float specularPower;
};
layout(location=0) out vec4 fragColor;
void main()
{
fragColor = vec4(specularPower != 0.0 ? specularPower : 80.0);
}
`
);
gl.compileShader(fs);
console.log(gl.getShaderInfoLog(fs));
const prog = gl.createProgram();
gl.attachShader(prog, vs);
gl.attachShader(prog, fs);
gl.linkProgram(prog);
console.log(gl.getProgramInfoLog(prog)); // Outputs "Internal error compiling shader with Metal backend."
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220617/db71f8fb/attachment.htm>
More information about the webkit-unassigned
mailing list