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

Substituting metal shaders uses wrong entrypoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.1
    • Qt Shader Tools
    • None
    • macOS

    Description

      A bit of background: I'm trying to use a shader with "dual-source" blending mode. The MSL code as produced by QSB is not correct, because Metal expects color(0), index(1) for the second output, instead of color(1). I suppose this is an upstream issue with SPIRV-cross.  Apparently, my shader was written wrong. The issue described below is still valid though.

      I wanted to replace the autogenerated MSL shader with a corrected version (as described in the manual). When replacement shaders are provided, QSB uses a hardcoded "main" entrypoint, which isn't compatible with Metal.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            anszom Andrzej Szombierski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes