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

D3D11 Error using QGeometryRenderer to draw line strip

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.3, 6.5.0
    • Qt3D
    • None
    • Windows 10 (attempted on multiple machines)
    • Windows

    Description

      I am attempting to draw a linestrip using QGeometryView and QGeometryRender.

       

      I followed along with this post for QT5 which I was successfully able to build and run their solution using Qt 5.15.2 ( https://stackoverflow.com/questions/73485430/how-to-draw-a-lot-of-lines-with-qt3d-without-the-render-crashing ). See main.cpp's attached just copied into Qt3D simple-cpp example.

       

      I adapted that code for Qt 6.4.3/Qt 6.5 by shifting QBuffer, QAttribute, and QGeometry to Qt3DCore, then routing the geometry through QGeometryView then QGeometryRenderer.

       

      The modifications compile fine but when I attempt to run no lines are drawn and the application outputs:

      NVD3DREL: GR-805 : DX9 Overlay is DISABLED
      NVD3DREL: 
      GR-805 : DX9 Overlay is DISABLED
      Qt3D.Renderer.RHI.Backend: Initializing RHI with DirectX backend
      D3D11 ERROR: ID3D11Device::CreateInputLayout: The provided input signature expects to read an element with SemanticName/Index: 'TEXCOORD'/1, but the declaration doesn't provide a matching name. [ STATE_CREATION ERROR #163: CREATEINPUTLAYOUT_MISSINGELEMENT]
      Failed to create input layout: COM error 0x80070057: The parameter is incorrect.
      Qt3D.Renderer.RHI.Backend: Failed to build graphics pipeline: Creation Failed

      Attachments

        1. main_workingQt5.cpp
          7 kB
          Daniel Miller
        2. main_brokenQt6.cpp
          7 kB
          Daniel Miller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            millerd4 Daniel Miller
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes