Hi,
trying to redeclare the built-in gl_LastFragData to change its precision in PVRShaderEditor 2.6 (SDK build 3.5@3523712) using the G6x00 compiler causes a compilation error.
[pre]
#version 100
#extension GL_EXT_shader_framebuffer_fetch: require
lowp vec4 gl_LastFragData[gl_MaxDrawBuffers];
…
[/pre]
This gives the error [blockquote]0:123: ‘gl_LastFragData’ : cannot redeclare this built-in[/blockquote]
GL_EXT_shader_framebuffer_fetchHowever the description of explicitly allows the redeclaration of gl_LastFragData. See question 3 “What is the precision of gl_LastFragData in practice?” with the resolution “Allow redeclaration of gl_LastFragData in order to change its precision.”.