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

Consistent shader order for qsb

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 6.5.0 Beta1
    • 6.3
    • Qt Shader Tools
    • None
    • 9dced35b41 (qt/qtbase/dev) 9dced35b41 (qt/tqtc-qtbase/dev)

    Description

      Currently when qbs (QShaderBaker) creates the baked shader, the shader variants are in random order.

      What I would like is:

      > qsb [constant parameters] -o shader.frag.qsb shader.frag
      > qsb [constant parameters] -o shader2.frag.qsb shader.frag
      > diff shader2.frag.qsb shader.frag.qsb
      -> prints nothing

      Reasoning:

      • When the qsb files the are in git, it would be good to see when they actually change even when you re-bake the shaders, have some automatic baking script etc. And even though qsb files are small, keep git changes at minimum.
      • When someone has updated .qsb file and you want to see what changed, qsb dump both version and compare easily.
      • Similarly if you get .frag.qsb and .qsb files and want to know if second was actually created with the first, bake, dump and diff.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            kagro Kaj Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes