Skip to content

Commit 6bd2eb8

Browse files
authored
Update D3D12MeshletInstancing.cpp
Choose the most powerful hardware adapter - dual GPU systems can default to the wrong, non Mesh Shader supporting device otherwise.
1 parent a19fa1e commit 6bd2eb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Samples/Desktop/D3D12MeshShaders/src/MeshletInstancing/D3D12MeshletInstancing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void D3D12MeshletInstancing::LoadPipeline()
105105
else
106106
{
107107
ComPtr<IDXGIAdapter1> hardwareAdapter;
108-
GetHardwareAdapter(factory.Get(), &hardwareAdapter);
108+
GetHardwareAdapter(factory.Get(), &hardwareAdapter, true);
109109

110110
ThrowIfFailed(D3D12CreateDevice(
111111
hardwareAdapter.Get(),

0 commit comments

Comments
 (0)