cudaError_t cudaD3D11GetDevice ( 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.

device - Returns the device corresponding to pAdapter
pAdapter - D3D11 adapter to get device for
cudaSuccess, cudaErrorInvalidValue, cudaErrorUnknown
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaGraphicsUnregisterResource, cudaGraphicsMapResources, cudaGraphicsSubResourceGetMappedArray, cudaGraphicsResourceGetMappedPointer

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA