directx - Find out which display belongs to which adapter? -


i'm working on slimdx apps works multiple display. apps occupy selected display, , it's selection input via commandline, int. use system.windows.forms.screen.allscreens[selection] find out bound, , display apps "fullscreen" on display.

now, optimize performance, need select gpu adapter initialize direct3d's device. how find out gpu adapter powering selected display?

since each gpu adapter might have 1 2 display connected, can't use display number.

i'm utilizing direct3d10. don't mind solution in direct3d9.

worse case let user select display , adapter via commandline, prefer fool prove method.

thanks

both d3d10 , d3d11 use dxgi managing details this. factory interface create lets list of adapters installed on system. each adapter can have 1 or more outputs, can enumerate adapter interface.

this list of output interfaces, have description property contains, among other things, rectangle of output's bounds intptr handle monitor on running.

i don't think winforms screen class exposes underlying native pointer, why provide slimdx.windows.displaymonitor class serve replacement screen class. can use determine particular details of display , choose right adapter needs.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -