|
cudaError_t cudaD3D10SetDirect3DDevice |
( |
ID3D10Device * |
pDxDevice |
) |
|
Records pDxDevice as the Direct3D device to use for Direct3D interoperability on this host thread. In order to use Direct3D interoperability, this call must be made before any non-device management CUDA runtime calls on this thread. In that case, this call will return cudaErrorSetOnActiveProcess.
Successful context creation on pDxDevice will increase the internal reference count on pDxDevice . This reference count will be decremented upon destruction of this context through cudaThreadExit().
- Parameters:
-
| pDxDevice | - 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, cudaD3D10RegisterResource, cudaD3D10UnregisterResource, cudaD3D10MapResources, cudaD3D10UnmapResources, cudaD3D10ResourceGetSurfaceDimensions, cudaD3D10ResourceSetMapFlags, cudaD3D10ResourceGetMappedArray, cudaD3D10ResourceGetMappedPointer, cudaD3D10ResourceGetMappedSize, cudaD3D10ResourceGetMappedPitch
|