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.

60 Module DocumentationSee also:cudaD3D9GetDevice, cudaD3D9SetDirect3DDevice, cudaD3D9GetDirect3DDevice, cudaD3D9RegisterResource,cudaD3D9UnregisterResource, cudaD3D9MapResources, cudaD3D9UnmapResources,cudaD3D9ResourceGetSurfaceDimensions, cudaD3D9ResourceSetMapFlags,cudaD3D9ResourceGetMappedArray, cudaD3D9ResourceGetMappedPointer, cudaD3D9ResourceGetMappedSize3.10.3.7 cudaError_t cudaD3D9ResourceGetMappedPointer (void ∗∗ pPointer, IDirect3DResource9 ∗pResource, unsigned int face, unsigned int level)Returns in ∗pPointer the base pointer of the subresource of the mapped Direct3D resource pResource, whichcorresponds to face and level. 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 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 cudaErrorInvalidValue isreturned.If pResource is of type IDirect3DBaseTexture9, then level must correspond to a valid mipmap level. Onlymipmap level 0 is supported for now. For all other types level must be 0. If level is invalid, then cudaErrorInvalidValueis returned.Parameters:pPointer - Returned pointer corresponding to subresourcepResource - Mapped resource to accessface - Face of resource to accesslevel - Level of resource to accessReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle, cudaErrorUnknownNote that this function may also return error codes from previous, asynchronous launches.cudaD3D9GetDevice, cudaD3D9SetDirect3DDevice, cudaD3D9GetDirect3DDevice, cudaD3D9RegisterResource,cudaD3D9UnregisterResource, cudaD3D9MapResources, cudaD3D9UnmapResources,cudaD3D9ResourceGetSurfaceDimensions, cudaD3D9ResourceSetMapFlags, cudaD3D9ResourceGetMappedArray,cudaD3D9ResourceGetMappedSize, cudaD3D9ResourceGetMappedPitch3.10.3.8 cudaError_t cudaD3D9ResourceGetMappedSize (size_t ∗ pSize, IDirect3DResource9 ∗ pResource,unsigned int face, unsigned int level)Returns in ∗pSize the size of the subresource of the mapped Direct3D resource pResource, which corresponds toface and level. The value set in pSize may change every time that pResource is mapped.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!