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.

180 Module DocumentationNote:Note that this function may also return error codes from previous, asynchronous launches.See also:cuD3D9CtxCreate, cuD3D9GetDevice, cuD3D9GetDirect3DDevice, cuD3D9MapResources,cuD3D9RegisterResource, cuD3D9ResourceGetMappedArray, cuD3D9ResourceGetMappedPointer,cuD3D9ResourceGetMappedSize, cuD3D9ResourceGetSurfaceDimensions, cuD3D9ResourceSetMapFlags,cuD3D9UnmapResources, cuD3D9UnregisterResource3.28.2.8 CUresult cuD3D9ResourceGetMappedPointer (CUdeviceptr ∗ pDevPtr, IDirect3DResource9 ∗pResource, U32 face, U32 level)Returns in ∗pDevPtr the base pointer of the subresource of the mapped Direct3D resource pResource, whichcorresponds to face and level. 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_D3D9_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 IDirect3DCubeTexture9, then face must one of the values enumerated by typeD3DCUBEMAP_FACES. For all other types face must be 0. If face is invalid, then <strong>CUDA</strong>_ERROR_INVALID_-VALUE is returned.If pResource is of type IDirect3DBaseTexture9, then level must correspond to a valid mipmap level. At presentonly mipmap level 0 is supported. For all other types level must be 0. If level is invalid, then <strong>CUDA</strong>_ERROR_-INVALID_VALUE is returned.Parameters:pDevPtr - Returned pointer corresponding to subresourcepResource - Mapped resource to accessface - Face of resource to accesslevel - Level of resource 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.See also:cuD3D9CtxCreate, cuD3D9GetDevice, cuD3D9GetDirect3DDevice, cuD3D9MapResources,cuD3D9RegisterResource, cuD3D9ResourceGetMappedArray, cuD3D9ResourceGetMappedPitch,cuD3D9ResourceGetMappedSize, cuD3D9ResourceGetSurfaceDimensions, cuD3D9ResourceSetMapFlags,cuD3D9UnmapResources, cuD3D9UnregisterResourceGenerated 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!