cudaError_t cudaD3D10SetDirect3DDevice ( ID3D10Device *  pD3D10Device  ) 

Records pD3D10Device as the Direct3D 10 device to use for Direct3D 10 interoperability on this host thread. If the host thread has already initialized the CUDA runtime by calling non-device management runtime functions or if there exists a CUDA driver context active on the host thread, then this call returns cudaErrorSetOnActiveProcess.

Successful context creation on pD3D10Device will increase the internal reference count on pD3D10Device. This reference count will be decremented upon destruction of this context through cudaThreadExit().

Parameters:
pD3D10Device - Direct3D device to use for interoperability
Returns:
cudaSuccess, cudaErrorInitializationError, cudaErrorInvalidValue, cudaErrorSetOnActiveProcess
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaD3D10GetDevice, cudaGraphicsD3D10RegisterResource,


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA