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.29 Direct3D 10 Interoperability 193Returns: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_VALUE, <strong>CUDA</strong>_ERROR_INVALID_HANDLE,<strong>CUDA</strong>_ERROR_ALREADY_MAPPEDSee also:Note that this function may also return error codes from previous, asynchronous launches.cuD3D10CtxCreate, cuD3D10GetDevice, cuD3D10MapResources, cuD3D10RegisterResource,cuD3D10ResourceGetMappedArray, cuD3D10ResourceGetMappedPitch, cuD3D10ResourceGetMappedPointer,cuD3D10ResourceGetMappedSize, cuD3D10ResourceGetSurfaceDimensions, cuD3D10UnmapResources,cuD3D10UnregisterResource3.29.2.11 CUresult cuD3D10UnmapResources (unsigned int count, ID3D10Resource ∗∗ ppResources)Unmaps the count Direct3D resources in ppResources.This function provides the synchronization guarantee that any <strong>CUDA</strong> kernels issued beforecuD3D10UnmapResources() will complete before any Direct3D calls issued after cuD3D10UnmapResources()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_VALUE, <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.cuD3D10CtxCreate, cuD3D10GetDevice, cuD3D10MapResources, cuD3D10RegisterResource,cuD3D10ResourceGetMappedArray, cuD3D10ResourceGetMappedPitch, cuD3D10ResourceGetMappedPointer,cuD3D10ResourceGetMappedSize, cuD3D10ResourceGetSurfaceDimensions, cuD3D10ResourceSetMapFlags,cuD3D10UnregisterResource3.29.2.12 CUresult cuD3D10UnregisterResource (ID3D10Resource ∗ 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.Generated 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!