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.

56 Module DocumentationpszAdapterName - D3D9 adapter to get device forReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorUnknownNote that this function may also return error codes from previous, asynchronous launches.cudaD3D9SetDirect3DDevice, cudaD3D9GetDirect3DDevice, cudaD3D9RegisterResource,cudaD3D9UnregisterResource, cudaD3D9MapResources, cudaD3D9UnmapResources,cudaD3D9ResourceGetSurfaceDimensions, cudaD3D9ResourceSetMapFlags, cudaD3D9ResourceGetMappedArray,cudaD3D9ResourceGetMappedPointer, cudaD3D9ResourceGetMappedSize,cudaD3D9ResourceGetMappedPitch3.10.3.2 cudaError_t cudaD3D9GetDirect3DDevice (IDirect3DDevice9 ∗∗ ppDxDevice)Returns in ∗ppDxDevice the Direct3D device against which this <strong>CUDA</strong> context was created in cudaD3D9SetDirect3DDevice().Parameters:ppDxDevice - Returns the Direct3D device for this threadReturns:Note:See also:cudaSuccess, cudaErrorUnknownNote that this function may also return error codes from previous, asynchronous launches.cudaD3D9GetDevice, cudaD3D9SetDirect3DDevice, cudaD3D9RegisterResource, cudaD3D9UnregisterResource,cudaD3D9MapResources, cudaD3D9UnmapResources,cudaD3D9ResourceGetSurfaceDimensions, cudaD3D9ResourceSetMapFlags, cudaD3D9ResourceGetMappedArray,cudaD3D9ResourceGetMappedPointer, cudaD3D9ResourceGetMappedSize,cudaD3D9ResourceGetMappedPitch3.10.3.3 cudaError_t cudaD3D9MapResources (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 cudaD3D9MapResources()will complete before any <strong>CUDA</strong> kernels issued after cudaD3D9MapResources() begin.If any of ppResources have not been registered for use with <strong>CUDA</strong> or if ppResources contains any duplicateentries then cudaErrorInvalidResourceHandle is returned. If any of ppResources are presently mapped for accessby <strong>CUDA</strong> then cudaErrorUnknown 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!