Imagination PowerVR SDK Blog

gl_FragDepth not available on GLES 3.0 Windows Emulator


#1

Hello,

As far as the specification say, gl_FragDepth should be supported on 3.0:

https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/gl_FragDepth.xhtml

But I got this error:

scode lang="{language}" The shader failed OpenGL ES shader validation. Call glGetShaderInfoLog to retrieve the shader info log.
Failed to compile pixel shader: Compile failed.
ERROR: 0:153: ‘gl_FragDepth’ : undeclared identifier
ERROR: 1 compilation errors. No code generated.[/scode]

Could be a plan to support it or am I doing something wrong?

Thanks!


#2

Hi Daniel,

gl_FragDepth is supported in GLSL 300 es and up, could you post (or attach) the fragment shader that is failing.

Thanks,
Shaun