Skip to content

Commit a19fa1e

Browse files
authored
Update D3D12MeshletRender.cpp
Choose the most powerful adapter when there are multiple in the device configuration. This is needed on laptops where Integrated graphics exist but there is also a seperate GPU that supports Mesh Shader fully.
1 parent 58b6bb1 commit a19fa1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Samples/Desktop/D3D12MeshShaders/src/MeshletRender/D3D12MeshletRender.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void D3D12MeshletRender::LoadPipeline()
7777
else
7878
{
7979
ComPtr<IDXGIAdapter1> hardwareAdapter;
80-
GetHardwareAdapter(factory.Get(), &hardwareAdapter);
80+
GetHardwareAdapter(factory.Get(), &hardwareAdapter, true);
8181

8282
ThrowIfFailed(D3D12CreateDevice(
8383
hardwareAdapter.Get(),

0 commit comments

Comments
 (0)