Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115972

"flat varying" variables don't get parsed correctly into shaders

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.8.0 FF
    • 6.5
    • Qt Shader Tools, Quick: 3D
    • None
    • Confirmed in Windows 11, Qt 6.5, Qt Creator 10.0.2
    • Windows
    • c3dbb5b6f (dev)

    Description

      Summary: Flat variables don't get parsed correctly

      Parsed shaders can be output by setting the 
      QT_RHI_SHADER_DEBUG=1 runtime
      flag!

      Input

      flat varying out vec4 myVar1;
      varying flat out vec4 myVar2;

       

      Current Output after compilation

      layout(location=7) out vec4 myVar1;
      layout(location=8) out vec4 myVar2;
      flat
      flat

       

      Expected Output after compilation

      layout(location=7) flat out vec4 myVar1; 
      layout(location=8) flat out vec4 myVar2;

      Notes: 
      Code and output written from memory. I did not confirm if the issue affects both IN and OUT variables.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            mairtin.s Mairtin Steinkamp
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes