XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Fix Version/s: 6.0
    • Component/s: Build tools: Other, Qt RHI
    • Labels:
      None

      Description

      Both Qt Quick and application could benefit from a way to do shader processing (running the qsb tool) at build time.

      This should involve listing the shaders (.vert and .frag files), together with options (which variants to generate) in the CMakeLists, which then under the hood leads to invoking qsb, and also generating a resource file list so that the generated .qsb files end up in the resource system. So basically an automated way of what we achieve today by the compile.bat scripts and checking in and listing the .qsb files in the resources.
       
      A smart solution should also add arguments like -c or -t to the qsb invocation automatically, if the platform is the right one. (on Windows, -c leads qsb to call fxc.exe, and store pre-compiled bytecode in the .qsb file instead of HLSL source)

      Also: to be synchronized with Quick3D's offline shader efforts.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-78590
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              lagocs Laszlo Agocs
              Reporter:
              lagocs Laszlo Agocs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes