|
cudaError_t cudaD3D10GetDevice |
( |
int * |
device, |
|
|
IDXGIAdapter * |
pAdapter | |
|
) |
| | |
Returns in *device the CUDA-compatible device corresponding to the adapter pAdapter obtained from IDXGIFactory::EnumAdapters. This call will succeed only if a device on adapter pAdapter is Cuda-compatible.
- Parameters:
-
| device | - Returns the device corresponding to pAdapter |
| pAdapter | - D3D10 adapter to get device for |
- Returns:
- cudaSuccess, cudaErrorInvalidValue, cudaErrorUnknown
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cudaD3D10SetDirect3DDevice, cudaGraphicsD3D10RegisterResource,
|