6.23. Direct3D 11 互操作性 [已弃用]

本节介绍已弃用的Direct3D 11互操作性函数。

Functions

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

Functions

__host__cudaError_t cudaD3D11GetDirect3DDevice ( ID3D11Device** ppD3D11Device )
获取当前CUDA上下文所关联的Direct3D设备。
参数
ppD3D11Device
- Returns the Direct3D device for this thread
已弃用

该函数自CUDA 5.0起已弃用。

描述

此函数已弃用,不应再使用。为了实现最佳的互操作性性能,不再需要将CUDA设备与D3D11设备关联。

Note:

请注意,此函数也可能返回之前异步启动的错误代码。

另请参阅:

cudaD3D11SetDirect3DDevice

__host__cudaError_t cudaD3D11SetDirect3DDevice ( ID3D11Device* pD3D11Device, int  device = -1 )
设置用于与CUDA设备互操作的Direct3D 11设备。
参数
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 5.0起已弃用。

描述

此函数已弃用,不应再使用。为了获得最佳的互操作性性能,不再需要将CUDA设备与D3D11设备关联。

如果需要,此函数将立即在device上初始化主上下文。

Note:

请注意,此函数也可能返回之前异步启动的错误代码。

另请参阅:

cudaD3D11GetDevice, cudaGraphicsD3D11RegisterResource, cudaDeviceReset