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.28 Direct3D 9 Interoperability 183See also:cuD3D9CtxCreate, cuD3D9GetDevice, cuD3D9GetDirect3DDevice, cuD3D9MapResources,cuD3D9RegisterResource, cuD3D9ResourceGetMappedArray, cuD3D9ResourceGetMappedPitch,cuD3D9ResourceGetMappedPointer, cuD3D9ResourceGetMappedSize, cuD3D9ResourceGetSurfaceDimensions,cuD3D9UnmapResources, cuD3D9UnregisterResource3.28.2.12 CUresult cuD3D9UnmapResources (unsigned int count, IDirect3DResource9 ∗∗ ppResources)Unmaps the count Direct3D resources in ppResources.This function provides the synchronization guarantee that any <strong>CUDA</strong> kernels issued beforecuD3D9UnmapResources() will complete before any Direct3D calls issued after cuD3D9UnmapResources()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 not presently mappedfor access by <strong>CUDA</strong>, then <strong>CUDA</strong>_ERROR_NOT_MAPPED is returned.Parameters:count - Number of resources to unmap for <strong>CUDA</strong>ppResources - Resources to unmap for <strong>CUDA</strong>Returns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_HANDLE, <strong>CUDA</strong>_ERROR_NOT_MAPPED,<strong>CUDA</strong>_ERROR_UNKNOWNSee also:Note that this function may also return error codes from previous, asynchronous launches.cuD3D9CtxCreate, cuD3D9GetDevice, cuD3D9GetDirect3DDevice, cuD3D9MapResources,cuD3D9RegisterResource, cuD3D9ResourceGetMappedArray, cuD3D9ResourceGetMappedPitch,cuD3D9ResourceGetMappedPointer, cuD3D9ResourceGetMappedSize, cuD3D9ResourceGetSurfaceDimensions,cuD3D9ResourceSetMapFlags, cuD3D9UnregisterResource3.28.2.13 CUresult cuD3D9UnregisterResource (IDirect3DResource9 ∗ pResource)Unregisters the Direct3D resource pResource so it is not accessible by <strong>CUDA</strong> unless registered again.If pResource is not registered, then <strong>CUDA</strong>_ERROR_INVALID_HANDLE is returned.Parameters:pResource - Resource to unregisterReturns:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_HANDLE, <strong>CUDA</strong>_ERROR_UNKNOWNGenerated 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!