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

Primitive restart does not work with D3D12

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.1
    • Qt RHI
    • None

    Description

      It seems that indexed rendering of triangle strips with primitive restart does not work with D3D12.

      I wrote a simple test program that demonstrates the problem. It renders 4 quads.
      With OpenGL, Vulkan and D3D11 I get 4 quads as expected (Image1.png).
      But with D3D12 I get a mess (Image2.png).
      All testing was done with Windows 11, Visual Studio 2022, Qt 6.9.1.
      I tested both with an NVIDIA GeForce and an Intel Iris GPU; the results where the same.

      The program can be downloaded from
      https://github.com/jrade/DrawIndexedIssue.git
      It is a Visual Studio 2022 project.
      Bake the shaders with Resources/BakeShaders.bat.
      Select the RHI backend in Main.cpp.

      Attachments

        1. Image1.png
          18 kB
          Johan Råde
        2. Image2.png
          51 kB
          Johan Råde
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            jrade Johan Råde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes