question

$$ANON_USER$$ avatar image
1 Vote"
$$ANON_USER$$ asked ·

Select GPU for UWP app programatically

I know I can select the default cpu in windows 10 graphics settings for an uwp app. This for example affects which gpu is used by the xaml ui and the media capture api-s. I have an issue with an app which uses direct3d + xaml + media capture to overlay 3d rendered content on video captured in a xaml app. The issue is caused by having the 3d rendering and the media capture shared surface being done on different display adapters. I would like to be able to set the default gpu for the app at startup after reading in the settings, so my users can avoid setting it in windows settings.

windows-uwp-xaml
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I searched about how to set the default GPU programatically, but didn't find related methods can achieve it in UWP. So you still need to set it in windows settings.

1 Vote 1 · ·

Ok. Thanks anyway!

0 Votes 0 · ·

0 Answers