Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
14th March 2009, 04:17 | #11 | Link |
Registered User
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
|
gpD3D->GetAdapterCount() returns the number of video adapters in the machine.
gpD3D->GetAdapterIdentifier() fills out a D3DADAPTER_IDENTIFIER9 struct for a specific adapter. cuD3D9GetDevice checks if a given device supports CUDA. Basically the code iterates through each video adapter in the system until it finds one that supports CUDA. Then uses the given adapter number as the first parameter when calling gpD3D->CreateDevice instead of D3DADAPTER_DEFAULT. |
Thread Tools | Search this Thread |
Display Modes | |
|
|