|
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, cudaD3D10RegisterResource, cudaD3D10UnregisterResource, cudaD3D10MapResources, cudaD3D10UnmapResources, cudaD3D10ResourceGetSurfaceDimensions, cudaD3D10ResourceSetMapFlags, cudaD3D10ResourceGetMappedArray, cudaD3D10ResourceGetMappedPointer, cudaD3D10ResourceGetMappedSize, cudaD3D10ResourceGetMappedPitch
|