11.01.2014 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

70 Module Documentation<br />

4.12.2 Function Documentation<br />

4.12.2.1 cudaError_t cudaD3D9GetDirect3DDevice (IDirect3DDevice9 ∗∗ ppD3D9Device)<br />

Deprecated<br />

This function is deprecated as of Cuda 3.0.<br />

Returns in ∗ppD3D9Device the Direct3D device against which this <strong>CUDA</strong> context was created in cudaD3D9SetDirect3DDevice().<br />

Parameters:<br />

ppD3D9Device - Returns the Direct3D device for this thread<br />

Returns:<br />

Note:<br />

See also:<br />

cudaSuccess, cudaErrorUnknown<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

cudaD3D9SetDirect3DDevice<br />

4.12.2.2 cudaError_t cudaD3D9MapResources (int count, IDirect3DResource9 ∗∗ ppResources)<br />

Deprecated<br />

This function is deprecated as of Cuda 3.0.<br />

Maps the count Direct3D resources in ppResources for access by <strong>CUDA</strong>.<br />

The resources in ppResources may be accessed in <strong>CUDA</strong> kernels until they are unmapped. Direct3D should not<br />

access any resources while they are mapped by <strong>CUDA</strong>. If an application does so, the results are undefined.<br />

This function provides the synchronization guarantee that any Direct3D calls issued before cudaD3D9MapResources()<br />

will complete before any <strong>CUDA</strong> kernels issued after cudaD3D9MapResources() begin.<br />

If any of ppResources have not been registered for use with <strong>CUDA</strong> or if ppResources contains any duplicate<br />

entries then cudaErrorInvalidResourceHandle is returned. If any of ppResources are presently mapped for access<br />

by <strong>CUDA</strong> then cudaErrorUnknown is returned.<br />

Parameters:<br />

count - Number of resources to map for <strong>CUDA</strong><br />

ppResources - Resources to map for <strong>CUDA</strong><br />

Returns:<br />

Note:<br />

See also:<br />

cudaSuccess, cudaErrorInvalidResourceHandle, cudaErrorUnknown<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

cudaGraphicsMapResources<br />

Generated for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!