gl_LastFragData cannot be respecified in PVRShaderEditor

This topic contains 1 reply, has 2 voices, and was last updated by  PaulL 2 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49013

    Miro
    Member

    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.

    #version 100
    #extension GL_EXT_shader_framebuffer_fetch: require
    lowp vec4 gl_LastFragData[gl_MaxDrawBuffers];
    …
    

    This gives the error

    0:123: ‘gl_LastFragData’ : cannot redeclare this built-in

    However the description of GL_EXT_shader_framebuffer_fetch 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.”.

    #49199

    PaulL
    Admin

    Thanks for you feedback. This looks like it is a GLSL compiler issue, I’ve filed a ticket on our internal issue tracker as RDI5039.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.