sourCEntral - mobile manpages

pdf

Direct3D_11_Interoperability_[DEPRECATED]

NAME

Direct3D 11 Interoperability [DEPRECATED] −

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.

Detailed Description

This section describes deprecated Direct3D 11 interoperability functions.

Function Documentation

cudaError_t cudaD3D11GetDirect3DDevice (ID3D11Device ** ppD3D11Device)
Deprecated

This 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.

Parameters:

ppD3D11Device - Returns the Direct3D device for this thread

Returns:

cudaSuccess, cudaErrorUnknown

Note:

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

See also:

cudaD3D11SetDirect3DDevice

cudaError_t cudaD3D11SetDirect3DDevice (ID3D11Device * pD3D11Device, int device = -1)
Deprecated

This 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.

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.

Returns:

cudaSuccess, cudaErrorInitializationError, cudaErrorInvalidValue, cudaErrorSetOnActiveProcess

Note:

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

See also:

cudaD3D11GetDevice, cudaGraphicsD3D11RegisterResource, cudaDeviceReset

Author

Generated automatically by Doxygen from the source code.

pdf