12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

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

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

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

176 Module DocumentationReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_UNKNOWNSee also:Note that this function may also return error codes from previous, asynchronous launches.cuD3D9CtxCreate, cuD3D9GetDirect3DDevice, cuD3D9MapResources, cuD3D9RegisterResource,cuD3D9ResourceGetMappedArray, cuD3D9ResourceGetMappedPitch, cuD3D9ResourceGetMappedPointer,cuD3D9ResourceGetMappedSize, cuD3D9ResourceGetSurfaceDimensions, cuD3D9ResourceSetMapFlags,cuD3D9UnmapResources, cuD3D9UnregisterResource3.28.2.3 CUresult cuD3D9GetDirect3DDevice (IDirect3DDevice9 ∗∗ ppDxDevice)Returns in ∗ppDxDevice the Direct3D device against which this <strong>CUDA</strong> context was created in cuD3D9CtxCreate().Parameters:ppDxDevice - Returned Direct3D device corresponding to <strong>CUDA</strong> contextReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXTSee also:Note that this function may also return error codes from previous, asynchronous launches.cuD3D9CtxCreate, cuD3D9GetDevice, cuD3D9MapResources, cuD3D9RegisterResource,cuD3D9ResourceGetMappedArray, cuD3D9ResourceGetMappedPitch, cuD3D9ResourceGetMappedPointer,cuD3D9ResourceGetMappedSize, cuD3D9ResourceGetSurfaceDimensions, cuD3D9ResourceSetMapFlags,cuD3D9UnmapResources, cuD3D9UnregisterResource3.28.2.4 CUresult cuD3D9MapResources (unsigned int count, IDirect3DResource9 ∗∗ ppResources)Maps the count Direct3D resources in ppResources for access by <strong>CUDA</strong>.The resources in ppResources may be accessed in <strong>CUDA</strong> kernels until they are unmapped. Direct3D should notaccess any resources while they are mapped by <strong>CUDA</strong>. If an application does so the results are undefined.This function provides the synchronization guarantee that any Direct3D calls issued before cuD3D9MapResources()will complete before any <strong>CUDA</strong> kernels issued after cuD3D9MapResources() begin.If any of ppResources have not been registered for use with <strong>CUDA</strong> or if ppResources contains any duplicateentries, then <strong>CUDA</strong>_ERROR_INVALID_HANDLE is returned. If any of ppResources are presently mapped foraccess by <strong>CUDA</strong>, then <strong>CUDA</strong>_ERROR_ALREADY_MAPPED is returned.Parameters:count - Number of resources in ppResourcesGenerated 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!