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

D3D11 debug layer warning is printed when having a vertex shader with no inputs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.1.2, 6.2.0 Alpha
    • 6.1, 6.2
    • Qt RHI, Quick: 3D
    • None
    • 347310eb21facbd03d2168d67d83fdbfd6f6888c (qt/qtbase/dev) 4aae624836871c315d81078c5ae78b082a26bd49 (qt/qtbase/6.1)
    • Qt Quick 3D - 2021 Week 21/22

    Description

      Not having any inputs in a vertex shader is perfectly valid, as is exercised by Quick 3D particles now. With D3D11 creating an input layout object with 0 elements leads to a STATE_CREATION WARNING #420 debug layer warning, when enabled (i.e. when running with QSG_RHI_DEBUG_LAYER=1). This should be handled in QRhi's D3D11 backend by skipping the input layout object creation as appropriate, and rather calling IASetInputLayout with nullptr if there are no inputs.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            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