.net - Creating DirectX Device using Device.Device(Int32,DeviceType,Control,CreateFlags,PresentParameters[]) Constructor (Microsoft.DirectX.Direct3D) -
i new directx programming, have doubt directx device constructor. per microsoft's documentation can create device using
device.device(int32,devicetype,control,createflags,presentparameters[]) constructor (microsoft.directx.direct3d).
what 1st parameter means here? ms docs says
"adapter system.int32 ordinal number identifies physical device object represents. device 0 default device. highest value can used in parameter 1 less total number of physical devices."
what mean physical device here. referring monitors connected system? or else?
also, want application use particular graphic card, if there more 1 graphic cards. there way enumerate through graphic card list? can force our application use particular graphic card? if yes, how can that? have tried using adapterinformation class believe corresponds monitors connected not graphic cards.
any of great value.
thanks.
the first parameter number of display adapter. in cases adapter equivalent physical monitor connected computer.
you can display adapters iterating on manager.adapters. information property contains graphics card specific information. try , see, pieces of information useful identify graphics card. if have identified adapters of target card, can choose 1 of them.
Comments
Post a Comment