microsoft / DirectX-Graphics-Samples

This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.
MIT License
5.89k stars 2k forks source link

D3D12 errors in D3D12 Meshlet Culling sample #823

Open bioglaze opened 1 year ago

bioglaze commented 1 year ago

When I run D3D12MeshletCull project, I get these D3D12 errors: D3D12 ERROR: ID3D12Device1::CreateMeshShader_TopologyMismatch: Since the mesh shader specifies output topology of line, if the PSO desc ALSO specifies a primitive topology (even though not necessary to do), it must be D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE to match the mesh shader. Since the topologies don't match, behavior is undefined. Earlier runtimes didn't validate this, so this error isn't explicitly failing PSO create. But this really should be considered an application error. [ MISCELLANEOUS ERROR #1323: CREATEMESHSHADER_TOPOLOGY_MISMATCH]

D3D12 ERROR: ID3D12Device1::CreateMeshShader_TopologyMismatch: Since the mesh shader specifies output topology of line, if the PSO desc ALSO specifies a primitive topology (even though not necessary to do), it must be D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE to match the mesh shader. Since the topologies don't match, behavior is undefined. Earlier runtimes didn't validate this, so this error isn't explicitly failing PSO create. But this really should be considered an application error. [ MISCELLANEOUS ERROR #1323: CREATEMESHSHADER_TOPOLOGY_MISMATCH]

OS: Windows 11 22H2 Visual Studio 17.5.4 GPU: Radeon RX 7900 XT, driver 23.4.1

walbourn commented 4 months ago

This is a known issue in the debug layer. The sample should be updated to suppress that warning for now.