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.

190 Module DocumentationFor usage requirements of the SubResource parameter, see cuD3D10ResourceGetMappedPointer().Parameters:pPitch - Returned pitch of subresourcepPitchSlice - Returned Z-slice pitch of subresourcepResource - Mapped resource to accessSubResource - Subresource of pResource to accessReturns: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_MAPPEDSee also:Note that this function may also return error codes from previous, asynchronous launches.cuD3D10CtxCreate, cuD3D10GetDevice, cuD3D10MapResources, cuD3D10RegisterResource,cuD3D10ResourceGetMappedArray, cuD3D10ResourceGetMappedPointer, cuD3D10ResourceGetMappedSize,cuD3D10ResourceGetSurfaceDimensions, cuD3D10ResourceSetMapFlags, cuD3D10UnmapResources,cuD3D10UnregisterResource3.29.2.7 CUresult cuD3D10ResourceGetMappedPointer (CUdeviceptr ∗ pDevPtr, ID3D10Resource ∗pResource, U32 SubResource)Returns in ∗pDevPtr the base pointer of the subresource of the mapped Direct3D resource pResource, whichcorresponds to SubResource. The value set in pDevPtr may change every time that pResource is mapped.If pResource is not registered, then <strong>CUDA</strong>_ERROR_INVALID_HANDLE is returned. If pResource was notregistered with usage flags CU_D3D10_REGISTER_FLAGS_NONE, then <strong>CUDA</strong>_ERROR_INVALID_HANDLE isreturned. If pResource is not mapped, then <strong>CUDA</strong>_ERROR_NOT_MAPPED 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:pDevPtr - Returned pointer corresponding to subresourcepResource - Mapped resource to accessSubResource - Subresource of pResource to accessReturns: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_MAPPEDNote that this function may also return error codes from previous, asynchronous launches.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!