Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.12.0, Qt Creator 4.12.1
-
None
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).