Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9.1
-
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.