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.

70 Module DocumentationParameters:pPitch - Returned pitch of subresourcepPitchSlice - Returned Z-slice pitch of subresourcepResource - Mapped resource to accesssubResource - Subresource of pResource to accessReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle, cudaErrorUnknownNote that this function may also return error codes from previous, asynchronous launches.cudaD3D10GetDevice, cudaD3D10SetDirect3DDevice, cudaD3D10RegisterResource, cudaD3D10UnregisterResource,cudaD3D10MapResources, cudaD3D10UnmapResources,cudaD3D10ResourceGetSurfaceDimensions, cudaD3D10ResourceSetMapFlags, cudaD3D10ResourceGetMappedArray,cudaD3D10ResourceGetMappedPointer, cudaD3D10ResourceGetMappedSize3.11.3.6 cudaError_t cudaD3D10ResourceGetMappedPointer (void ∗∗ pPointer, ID3D10Resource ∗pResource, unsigned int subResource)Returns in ∗pPointer the base pointer of the subresource of the mapped Direct3D resource pResource whichcorresponds to subResource. The value set in pPointer may change every time that pResource is mapped.If pResource is not registered, then cudaErrorInvalidResourceHandle is returned. If pResource was not registeredwith usage flags cudaD3D9RegisterFlagsNone, then cudaErrorInvalidResourceHandle is returned. If pResource isnot mapped then cudaErrorUnknown is returned.If pResource is of type ID3D10Buffer then subResource must be 0. If pResource is of any other type, thenthe value of subResource must come from the subresource calculation in D3D10CalcSubResource().Parameters:pPointer - Returned pointer corresponding to subresourcepResource - Mapped resource to accesssubResource - Subresource of pResource to accessReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle, cudaErrorUnknownNote that this function may also return error codes from previous, asynchronous launches.cudaD3D10GetDevice, cudaD3D10SetDirect3DDevice, cudaD3D10RegisterResource, cudaD3D10UnregisterResource,cudaD3D10MapResources, cudaD3D10UnmapResources,cudaD3D10ResourceGetSurfaceDimensions, cudaD3D10ResourceSetMapFlags, cudaD3D10ResourceGetMappedArray,cudaD3D10ResourceGetMappedSize, cudaD3D10ResourceGetMappedPitchGenerated 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!