CUDA Runtime API (PDF) - CUDA Toolkit v5.5 (older) - Last updated May 11, 2013 - Send Feedback

2.17. Direct3D 11 Interoperability [DEPRECATED]

This section describes deprecated Direct3D 11 interoperability functions.

Functions

cudaError_t cudaD3D11GetDirect3DDevice ( ID3D11Device** ppD3D11Device )
Gets the Direct3D device against which the current CUDA context was created.
cudaError_t cudaD3D11SetDirect3DDevice ( ID3D11Device* pD3D11Device, int  device = -1 )
Sets the Direct3D 11 device to use for interoperability with a CUDA device.

Functions

cudaError_t cudaD3D11GetDirect3DDevice ( ID3D11Device** ppD3D11Device )

Gets the Direct3D device against which the current CUDA context was created. DeprecatedThis function is deprecated as of CUDA 5.0.This function is deprecated and should no longer be used. It is no longer necessary to associate a CUDA device with a D3D11 device in order to achieve maximum interoperability performance.

Note:

Note that this function may also return error codes from previous, asynchronous launches.

See also:

cudaD3D11SetDirect3DDevice

Parameters
ppD3D11Device
- Returns the Direct3D device for this thread
cudaError_t cudaD3D11SetDirect3DDevice ( ID3D11Device* pD3D11Device, int  device = -1 )

Sets the Direct3D 11 device to use for interoperability with a CUDA device. DeprecatedThis function is deprecated as of CUDA 5.0.This function is deprecated and should no longer be used. It is no longer necessary to associate a CUDA device with a D3D11 device in order to achieve maximum interoperability performance.

Note:

Note that this function may also return error codes from previous, asynchronous launches.

See also:

cudaD3D11GetDevice, cudaGraphicsD3D11RegisterResource, cudaDeviceReset

Parameters
pD3D11Device
- Direct3D device to use for interoperability
device
- The CUDA device to use. This device must be among the devices returned when querying cudaD3D11DeviceListAll from cudaD3D11GetDevices, may be set to -1 to automatically select an appropriate CUDA device.

CUDA Runtime API (PDF) - CUDA Toolkit v5.5 (older) - Last updated May 11, 2013 - Send Feedback