12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.10 Direct3D 9 Interoperability 55• cudaError_t cudaD3D9ResourceSetMapFlags (IDirect3DResource9 ∗pResource, unsigned int flags)Set usage flags for mapping a Direct3D resource.• cudaError_t cudaD3D9SetDirect3DDevice (IDirect3DDevice9 ∗pDxDevice)Sets the Direct3D device to use for interoperability in this thread.• cudaError_t cudaD3D9UnmapResources (int count, IDirect3DResource9 ∗∗ppResources)Unmap Direct3D resources for access by <strong>CUDA</strong>.• cudaError_t cudaD3D9UnregisterResource (IDirect3DResource9 ∗pResource)Unregisters a Direct3D resource for access by <strong>CUDA</strong>.3.10.1 Detailed DescriptionThis section describes the Direct3D 9 interoperability functions of the <strong>CUDA</strong> runtime application programming interface.3.10.2 Enumeration Type Documentation3.10.2.1 enum cudaD3D9MapFlags<strong>CUDA</strong> D3D9 Map FlagsEnumerator:cudaD3D9MapFlagsNone Default; Assume resource can be read/written.cudaD3D9MapFlagsReadOnly <strong>CUDA</strong> kernels will not write to this resource.cudaD3D9MapFlagsWriteDiscard <strong>CUDA</strong> kernels will only write to and will not read from this resource.3.10.2.2 enum cudaD3D9RegisterFlags<strong>CUDA</strong> D3D9 Register FlagsEnumerator:cudaD3D9RegisterFlagsNone Default; Resource can be accessed througa void∗.cudaD3D9RegisterFlagsArray Resource can be accessed through a CUarray∗.3.10.3 Function Documentation3.10.3.1 cudaError_t cudaD3D9GetDevice (int ∗ device, const char ∗ pszAdapterName)Returns in ∗device the <strong>CUDA</strong>-compatible device corresponding to the adapter name pszAdapterName obtainedfrom EnumDisplayDevices or IDirect3D9::GetAdapterIdentifier(). If no device on the adapter with namepszAdapterName is <strong>CUDA</strong>-compatible then the call will fail.Parameters:device - Returns the device corresponding to pszAdapterNameGenerated on Wed Apr 1 16:11:42 2009 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!