|
cudaError_t cudaD3D9SetDirect3DDevice |
( |
IDirect3DDevice9 * |
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 this thread |
- Returns:
- cudaSuccess, cudaErrorInitializationError, cudaErrorInvalidValue, cudaErrorSetOnActiveProcess
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cudaD3D9GetDevice, cudaD3D9GetDirect3DDevice, cudaD3D9RegisterResource, cudaD3D9UnregisterResource, cudaD3D9MapResources, cudaD3D9UnmapResources, cudaD3D9ResourceGetSurfaceDimensions, cudaD3D9ResourceSetMapFlags, cudaD3D9ResourceGetMappedArray, cudaD3D9ResourceGetMappedPointer, cudaD3D9ResourceGetMappedSize, cudaD3D9ResourceGetMappedPitch
|