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

GLSL syntax highlighting : texture()

    XMLWordPrintable

    Details

    • Platform/s:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            cstenger Christian Stenger
            Reporter:
            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