Skip to content

Commit

Permalink
Merge pull request #704 from kevgee/master
Browse files Browse the repository at this point in the history
Changes to select the correct GPU (most powerful \ capable) in a multi-GPU configuration such as laptops
  • Loading branch information
sebmerry authored Mar 26, 2021
2 parents 58b6bb1 + 1e6a089 commit e5ea2ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void D3D12DynamicLOD::LoadPipeline()
else
{
ComPtr<IDXGIAdapter1> hardwareAdapter;
GetHardwareAdapter(factory.Get(), &hardwareAdapter);
GetHardwareAdapter(factory.Get(), &hardwareAdapter, true);

ThrowIfFailed(D3D12CreateDevice(
hardwareAdapter.Get(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void D3D12MeshletCull::LoadPipeline()
else
{
ComPtr<IDXGIAdapter1> hardwareAdapter;
GetHardwareAdapter(factory.Get(), &hardwareAdapter);
GetHardwareAdapter(factory.Get(), &hardwareAdapter, true);

ThrowIfFailed(D3D12CreateDevice(
hardwareAdapter.Get(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void D3D12MeshletInstancing::LoadPipeline()
else
{
ComPtr<IDXGIAdapter1> hardwareAdapter;
GetHardwareAdapter(factory.Get(), &hardwareAdapter);
GetHardwareAdapter(factory.Get(), &hardwareAdapter, true);

ThrowIfFailed(D3D12CreateDevice(
hardwareAdapter.Get(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void D3D12MeshletRender::LoadPipeline()
else
{
ComPtr<IDXGIAdapter1> hardwareAdapter;
GetHardwareAdapter(factory.Get(), &hardwareAdapter);
GetHardwareAdapter(factory.Get(), &hardwareAdapter, true);

ThrowIfFailed(D3D12CreateDevice(
hardwareAdapter.Get(),
Expand Down

0 comments on commit e5ea2ac

Please sign in to comment.