Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24068

GLSL syntax highlighting : texture()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.14.0-beta1
    • Qt Creator 4.12.0, Qt Creator 4.12.1
    • Editors
    • None
    • All

    Description

      QTCreator has syntax higlighting for GLSL language, which is good, but when I use the texture() function, the whole line gets underlined with red color, with a tooltip saying expression too complex, whereas when I use texture2D() (or texture1D() or else), the line isn't underlined as shown in following pictures :

      texture*D() functions were deprecated in GLSL since v3.3 (see p99 : 3.30 GLSL spec), and should be replaced with texture() function which infers the texture dimension from the parameters it's given, but the texture() function is available since GLSL 1.30 (texture function documentation).

      It could be nice to accept theĀ texture() function, and to show the texture*D() functions as deprecation warnings (not errors since they probably won't ever be deleted from the api).

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-24068
        # Subject Branch Project Status CR V

        Activity

          People

            cstenger Christian Stenger
            atom42 Thomas Nemer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes